What is the ZAP Automation Framework?

IntermediateConceptOWASP ZAP
Answer

Short answer

The Automation Framework lets you describe an entire ZAP run in a YAML plan — environment and contexts, authentication, spiders, passive/active scans, alert filters and reports — and run it headlessly with one command. It's the modern, repeatable way to use ZAP in CI, replacing long command-line options.

Example plan

env:
  contexts:
    - name: shop
      urls: ["https://staging.shop.example.com"]
      excludePaths: ["https://staging.shop.example.com/logout.*"]
jobs:
  - type: spider
    parameters: { context: shop, maxDuration: 5 }
  - type: spiderAjax
    parameters: { context: shop, maxDuration: 5 }
  - type: passiveScan-wait
  - type: activeScan
    parameters: { context: shop, maxScanDurationInMins: 30 }
  - type: report
    parameters: { template: traditional-html, reportDir: /zap/wrk, reportFile: zap-report }
docker run --rm -v $(pwd):/zap/wrk ghcr.io/zaproxy/zaproxy:stable zap.sh -cmd -autorun /zap/wrk/zap-plan.yaml

Benefits

Version-controlled scan config in the app repo, consistent runs across environments, easy to review and reuse.

What to say in the interview

"The Automation Framework defines contexts, authentication, spiders, scans, filters and reports in a YAML plan run with zap.sh -autorun. We keep the plan in the repo so DAST configuration is versioned and reviewed like code."

All Security Tools questions Roadmap: OWASP ZAP — dynamic testing (DAST)

More on OWASP ZAP