Interview Prep/DevSecOps/Application Security Testing (SAST, DAST, SCA, Secrets)

What is OWASP ZAP and what are its scan modes?

BeginnerConceptApplication Security Testing (SAST, DAST, SCA, Secrets)
Answer

ZAP is an open-source DAST proxy and scanner. Modes in CI: baseline (spider plus passive checks only, safe for most environments), full scan (spider plus active attacks, only against disposable environments), and API scan (imports OpenAPI, GraphQL or SOAP definitions).

docker run --rm -v $(pwd):/zap/wrk -t ghcr.io/zaproxy/zaproxy:stable \
  zap-baseline.py -t https://staging.example.com -r zap-report.html
All DevSecOps questions Roadmap: Security in the pipeline

More on Application Security Testing (SAST, DAST, SCA, Secrets)