OWASP ZAP cheat sheet for vulnerability assessment and penetration testing
This OWASP ZAP cheat sheet provides comprehensive commands for web application security testing, from quick automated scans to advanced manual testing techniques used in professional penetration testing and vulnerability assessment workflows.
Installation & Setup
Installing ZAP across different platforms and initial configuration for security testing.
bash
# Install on Kali Linux
sudo apt update && sudo apt install zaproxy
# Install on Ubuntu/Debian
sudo apt install zaproxy
# Install via Docker (recommended for PT)
docker pull owasp/zap2docker-stable
docker run -u zap -p 8080:8080 -i owasp/zap2docker-stable zap.sh -daemon -host 0.0.0.0 -port 8080
# Install on macOS
brew install --cask owasp-zap
# Install on Windows
# Download from: https://www.zaproxy.org/download/
# Command line verification
zap.sh -version
zap.bat -version # Windows
# Update add-ons
zap.sh -addonupdateQuick Start & Basic Scanning
Rapid setup and initial automated scanning of web applications.
bash
Reconnaissance & Spidering Phase
Discovering application structure, endpoints, and hidden content.
bash
Automated Vulnerability Scanning
Running comprehensive automated tests for common web vulnerabilities.
bash
Manual Testing Assistance
Using ZAP as an intercepting proxy for manual penetration testing.
bash
Authentication & Session Management Testing
Testing authentication mechanisms, session handling, and access controls.
bash
Advanced Scanning Techniques
Custom scanning configurations and advanced testing scenarios.
bash
API & Headless Scanning
Automated scanning workflows for CI/CD and API security testing.
bash
Reporting & Analysis
Generating comprehensive reports and analyzing results.
bash
Integration with PT Workflow
Integrating ZAP into penetration testing methodologies and tools.
bash
Quick Reference - Common Scanners
bash
Common Configuration Parameters
bash
Last updated