Skip to content

Run an OWASP ZAP Passive Baseline in an Isolated Lab

Admin
October 4, 2026
8 min read
Intermediate
๐Ÿ’ป Target OS: Ubuntu 24.04+ / Windows Server 2025

Before you begin

  • Applies to:An OWASP ZAP passive baseline in an isolated lab or against an application you own and are authorized to assess.
  • Where to start:Start in the isolated lab and confirm the test application's address before using the baseline.
  • What you need:Have a disposable test application or approved assessment scope and a suitable location for the report.
Guide tools
Guide tools
0/0 Steps (0%)

OWASP ZAPโ€™s baseline scan performs passive analysis of HTTP traffic. This lab runs it against OWASP Juice Shop inside a Docker network that is not published to the host, then saves a report for review.

Use the lab for training or against an application you own and are authorized to assess. A passive baseline is useful for finding common web security signals, but it is not a penetration test or a complete security assessment.


01

Prepare an Isolated Lab Network

Lab Setup

Confirm Docker is available and create a dedicated bridge network. The application container will not publish a port on the host; the scanner can reach it by its container name over this network.

Terminal window
docker --version
if docker network inspect configcorner-zap-lab >/dev/null 2>&1; then
echo 'configcorner-zap-lab already exists; choose a fresh lab name.' >&2
exit 1
fi
if docker container inspect configcorner-juice-shop >/dev/null 2>&1; then
echo 'configcorner-juice-shop already exists; choose a fresh lab name.' >&2
exit 1
fi
mkdir -m 0700 zap-reports || { echo 'zap-reports already exists; choose a fresh output directory.' >&2; exit 1; }
docker network create --internal configcorner-zap-lab || exit 1
โฏ Illustrative Output (Results Vary)
Docker version ...
<network-id>

02

Run Juice Shop Without Publishing a Host Port

Training Target

Start the official Juice Shop container on the private lab network. No host port is published, so Docker does not expose the application through a published host port; the internal network also blocks external connectivity.

Terminal window
docker run -d --name configcorner-juice-shop --network configcorner-zap-lab \
bkimminich/juice-shop || exit 1
docker ps --filter name=configcorner-juice-shop
โฏ Illustrative Output (Results Vary)
CONTAINER ID IMAGE STATUS
... bkimminich/juice-shop Up ...

03

Generate a Baseline Report

Passive Review

Run the official stable ZAP container on the same network and mount only the report directory. The baseline script spiders the target and reports passive findings; it does not perform active attack scans.

Terminal window
docker run --rm --network configcorner-zap-lab \
-v "$PWD/zap-reports:/zap/wrk/:rw" \
zaproxy/zap-stable \
zap-baseline.py -t http://configcorner-juice-shop:3000 -r baseline.html || exit 1
โฏ Illustrative Output (Results Vary)
PASS: The target appears to be available
WARN-NEW: ...
Report generated at: /zap/wrk/baseline.html

04

Review Evidence and Remove Containers

Closeout

Open the HTML report, validate each alert in context, and record which findings are real, false positives, or accepted risks. Keep the report access-controlled if it contains application details. Remove the lab when finished.

Terminal window
ls -lh zap-reports/baseline.html
docker stop configcorner-juice-shop && docker rm configcorner-juice-shop || exit 1
docker network rm configcorner-zap-lab || exit 1
โฏ Illustrative Output (Results Vary)
baseline.html ...K
configcorner-juice-shop
configcorner-zap-lab
OWASP ZAP Alerts tab showing passive response-header findings for Juice Shop

Figure 1: ZAPโ€™s Alerts view lists passive response-header findings for the isolated Juice Shop target.

Comments