---
name: "owasp-zap-automated-pentest"
description: "Execute automated dynamic application security testing (DAST) with OWASP ZAP."
metadata:
  author: "ZAP Project"
  version: "1.0.0"
  runtime_compatibility:
    - "codex"
    - "claude-code"
    - "cursor"
    - "windsurf"
triggers:
  - "run owasp zap scan"
  - "dast scan web application"
  - "automate zap in github actions"
permissions:
  fs_read: true
  fs_write: "workspace"
  shell_exec: false
  net_access: false
---

# OWASP ZAP Automated Web App Pentest

Performs dynamic web vulnerability scans using OWASP Zed Attack Proxy (ZAP): passive traffic inspection, active attack spiders, AJAX spiders, and automated baseline CI scans.

## When to Invoke
Invoke this skill whenever you need to:
- run owasp zap scan
- dast scan web application
- automate zap in github actions

## Execution SOP & Rules
1. Run zap-baseline.py -t https://staging.example.com -g gen.conf -r report.html in Docker.
2. Use the AJAX Spider when scanning client-side rendered Single Page Applications.
3. Configure authentication context in ZAP to test protected dashboard endpoints.
4. Review identified alerts and remediate critical XSS and header vulnerabilities.

## Verification Checklist
- Run local linting, syntax validation, and type-checks before reporting completion.
- Ensure all created or modified files adhere to workspace boundaries and avoid uncommitted secrets.
- Verify tests or build commands exit cleanly with return code 0.
