java - OWASP ZAP: Active Scanner in Continuos Integration -


trying use zap (2.4.3) in continuos integration (ci) setting. can run zap daemon, run selenium tests (in java) using zap proxy, , being able use rest api calling htmlreport final report of passive scanner. works fine, use active scanner.

using active scanner in ci mentioned several times in zap's documentation, haven't found working example or tutorial it... exist?

what achieve like: run active scanner on pages visited selenium regression suite, once finished run.

trying @ zap's rest api, undocumented:

https://github.com/zaproxy/zaproxy/wiki/apigen_index

ideally, great have like:

  • start active scan asynchronously on visited urls
  • poll check if active scan run completed

in rest api seems there related, but:

  • ascan/scan needs url input. call core/urls see selenium tests have visited, how set right authentication (logging credential)? if order in urls visited important? if page accessable specific credential?
  • there ascan/scanasuser, unclear how contextid , userid can retrieved zap. cumbersome workaround modify selenium tests write on disk urls visit , logging/password credentials using, , then, once tests finished, read disk such info call zap. there simpler way?

ok, theres lot of questions here:)

zap typically scans hierarchies of urls, eg under https://www.example.com/app top level url of application. kind of assume know ;)

authentication non trivial handle, see https://github.com/zaproxy/zaproxy/wiki/faqformauth

the ascan/status call returns completed %

you may find zap user group http://groups.google.com/group/zaproxy-users better these sort of questions. yes, need improve api documentation :/

cheers,

simon (zap project lead)


Comments

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

css - Can I use the :after pseudo-element on an input field? -