So correct me if this is the wrong way of going about this, but I've been trying to use a custom scan policy in order to reduce the scan time of zap2docker full scans by stripping away rules I don't need, such as External Redirect.
First I'm putting my policy into the container like so:
docker create --name owasp -t owasp/zap2docker-live
docker start owasp
docker cp 'policy/
ScanPolicy.policy' owasp:/home/zap/.ZAP_D/policies/
Then I'm running the container with this:
docker exec owasp zap-full-scan.py -I -t [target] -d -r zap_report.html
-z "-config scanner.defaultPolicy=ScanPolicy.policy\"
As you can see, I'm explicitly telling zap to use my custom policy, but when it comes time to scan I'm getting:
Active Scan [target] with policy Default Policy
What am I misunderstanding here?
Thanks!