OWASP Zed Attack Proxy โ open-source web application security scanner for finding vulnerabilities in web applications and APIs.
zap -daemon -port {port} -host {host} ๐ port โ 8080 ๐ host โ 127.0.0.1 zap -daemon -port {port} -host {host} Sandbox: execFile · Timeout: 3600s
web.proxy.intercept web.scan.active web.scan.passive web.fuzzing web.spider web.api.scan web.session.handling | Name | Type | Required | Default | Description | Aliases |
|---|---|---|---|---|---|
daemon | boolean | No | - | Run ZAP in daemon mode (headless) | -daemon |
port | integer | No | 8080 | Port to listen on (default 8080) | -port |
host | string | No | 127.0.0.1 | Host address to bind to (default 127.0.0.1) | -host |
config | string | No | - | Configuration key=value pairs | -config |
cmd | boolean | No | - | Run ZAP in command-line mode without GUI | -cmd |
suppressinfo | boolean | No | - | Suppress informational messages in output | -suppressinfo |
newsession | string | No | - | Create new session at specified path | -newsession |
session | string | No | - | Open existing session file | -session |
h | boolean | No | - | Show this help message | -h, -help |
| Type | Description | MIME | Schema | Trust |
|---|---|---|---|---|
web.scan.report | ZAP scan report in HTML or JSON | text/html | - | verified |
web.scan.session | ZAP session file | application/octet-stream | - | verified |
Inputs
web.target.url Target application URL to scan
web.target.context Context definition for authenticated scanning
Outputs
web.scan.report HTML or JSON scan report
web.scan.alerts Security alerts found during scan
network_trafficnetwork_traffic Produces
web.scan.reportweb.scan.alertsConsumes
web.target.urlweb.target.context| Resource | Value |
|---|---|
| CPU | high |
| Memory | 512 MB |
| Network | medium |
| Disk I/O | low |
Start ZAP in daemon mode on default port
zap -daemon -port 8080 Run ZAP in command-line mode with config
zap -cmd -config api.disablekey=true Start daemon with custom host binding
zap -daemon -host 0.0.0.0 -port 9090 Load existing session and suppress info messages
zap -session session.session -suppressinfo Create new session in daemon mode
zap -daemon -newsession /tmp/zap-session Full automated scan using zap-cli
zap-cli --port 8080 quick-scan --self-contained -r report.html https://target.com OWASP ZAP (Zed Attack Proxy) is one of the world's most popular free web application security scanners. It helps automatically find security vulnerabilities in web applications and APIs.
| Mode | Command | Description |
|---|---|---|
| GUI | zap |
Standard graphical interface |
| Daemon | zap -daemon |
Headless mode (API accessible) |
| Command-line | zap -cmd |
CLI mode for scripting |
# Start daemon mode for automated scanning
zap -daemon -port 8080
# Use zap-cli for headless scanning
zap-cli --port 8080 quick-scan -r report.html https://target.com
# Run with custom configuration
zap -cmd -config api.disablekey=true -config scanner.attackOnStart=true
api.disablekey=true for local-only API access-host 127.0.0.1 to bind to localhost only