QA
Senior LevelWeb Security & Cyber Defense

How do DAST scanners (OWASP ZAP) execute automated dynamic penetration testing in CI/CD?

❓ Interview Prompt: Explain DAST (Dynamic Application Security Testing), OWASP ZAP automated scanning, active vs passive scanning, and pipeline integration.

Dynamic Application Security Testing (DAST) tests running applications from the outside-in without access to source code:

OWASP ZAP Pipeline Integration:

1
Spidering: Automatically crawls application endpoints and forms.
2
Passive Scan: Inspects headers, cookies, and response structures for misconfigurations.
3
Active Scan: Injects malicious payloads (XSS, SQLi, Path Traversal) into forms and endpoints to detect active vulnerabilities, failing CI/CD builds on high-severity findings!

Code Implementation Example

bash
# Execute OWASP ZAP baseline DAST scan in Docker CI pipeline:
docker run -v $(pwd):/zap/wrk/:rw -t ghcr.io/zaproxy/zaproxy:stable zap-baseline.py \
  -t https://staging.example.com -g gen.conf -r testreport.html
💡Running an automated OWASP DAST security scan in Docker CI/CD.
🎯 Interview Key Takeaway

Integrate DAST scanners (OWASP ZAP) into staging CI/CD pipelines to catch runtime vulnerabilities before production deployment.

#DAST#OWASP ZAP#Penetration Testing#Senior
Back to all Web Security & Cyber Defense Questions→

More Web Security & Cyber Defense Interview Questions

Beginner LevelSecurity & Web Security

Explain OWASP Top 10 vulnerabilities (XSS, CSRF, SQL Injection) and their defenses.

Beginner LevelSecurity & Web Security

What are the 3 types of XSS (Stored, Reflected, DOM-based) and how do they differ?

Beginner LevelSecurity & Web Security

How do Parameterized Queries (Prepared Statements) prevent SQL Injection attacks?