0
votes

We have a suite of automated regression tests driven using Selenium for an Angular app with a .NET Core WEB API backend.

The intention is to include some automated security testing as part of our overnight build/test run.

From reading so far it looks like running ZAP as an intercepting proxy between Selenium and our web application is the way to go (see 'Proxy Regression/Unit Tests' in https://www.zaproxy.org/docs/api/#exploring-the-app) but I'm struggling to find clear documentation/examples.

What is the simplest way to achieve this using OWASP ZAP, and are there any definitive articles/examples available?

1

1 Answers

1
votes

Start with the packaged full scan: https://www.zaproxy.org/docs/docker/full-scan/

Set the port and then proxy your selenium tests through ZAP. Use the -D parameter to pause ZAP until your tests have finished. For more ZAP automation options see https://www.zaproxy.org/docs/automate/