EnvironmentStart Juice Shop via Docker on macOS
docker run -d --name js --rm -p 3000:3000 bkimminich/juice-shop
Start ZAP via Docker
docker run --rm -d --name zaproxy -u zap -v /path/to/zap:/home/zap -p 8080:8080 -i
ghcr.io/zaproxy/zaproxy:stable zap-webswing.sh
Steps in ZAP1. Create an automation pipeline (see full yaml below)
2. Create scan policy with single activated policy: "Cross Site Scriting (Dom Based)"
3. Start Client Spider on
http://host.docker.internal:30004. Start Active Scan on starting point
http://host.docker.internal:3000 ...
2025-12-31 16:21:55,798 [ZAP-Automation] INFO CommandLine - Job spiderClient finished, time taken: 00:00:26
2025-12-31 16:21:55,799 [ZAP-Automation] INFO CommandLine - Job activeScan started
2025-12-31 16:21:55,801 [ZAP-Automation] INFO CommandLine - Job activeScan set default strength to MEDIUM
2025-12-31 16:21:55,801 [ZAP-Automation] INFO CommandLine - Job activeScan set default threshold to OFF
2025-12-31 16:21:55,801 [ZAP-Automation] INFO CommandLine - Job activeScan set rule 40026 strength to HIGH
2025-12-31 16:21:55,801 [ZAP-Automation] INFO CommandLine - Job activeScan set rule 40026 threshold to HIGH
2025-12-31 16:21:55,801 [ZAP-Automation] INFO Scanner - scanner with ID 0 started
2025-12-31 16:21:55,934 [ZAP-Scanner-0] INFO HostProcess - Scanning 125 node(s) from
http://host.docker.internal:30002025-12-31 16:21:55,934 [ZAP-Scanner-0] INFO HostProcess - start host
http://host.docker.internal:3000 | DomXssScanRule strength HIGH threshold HIGH
2025-12-31 16:21:57,175 [Thread-5104] INFO DomXssScanRule - Reaper thread starting
2025-12-31 16:24:25,872 [ZAP-Scanner-0] INFO HostProcess - completed host/plugin
http://host.docker.internal:3000 | DomXssScanRule in 149.938s with 0 message(s) sent and 0 alert(s) raised.
2025-12-31 16:24:27,537 [ZAP-DomXssReaper] INFO DomXssScanRule - Reaper thread exiting 0
2025-12-31 16:24:30,054 [ZAP-Scanner-0] INFO HostProcess - completed host
http://host.docker.internal:3000 in 154.251s with 0 alert(s) raised.
2025-12-31 16:24:30,054 [Thread-5048] INFO Scanner - scanner with ID 0 completed in 154.252s
2025-12-31 16:24:30,320 [ZAP-Automation] INFO CommandLine - Job activeScan finished, time taken: 00:02:34
...