Interview Prep/DevSecOps/Pipeline Security Scanning

You must introduce DAST against a staging web app that shares a database with other teams. How do you do it safely?

IntermediateScenarioPipeline Security Scanning
Answer

Situation read → Active scans send attack payloads and can create junk data or lock accounts. Shared data makes the blast radius bigger.

What I'd do →

  1. Start with passive baseline mode: docker run -t ghcr.io/zaproxy/zaproxy:stable zap-baseline.py -t https://staging.example.com -r report.html.
  2. Get a dedicated test environment or isolated schema for active scans.
  3. Use test accounts with an authentication script; exclude logout and destructive URLs.
  4. Run active scans (zap-full-scan.py) only in a window, with rate limits.
  5. Feed results into the same triage queue as SAST.

Why → Passive scans find missing headers and cookie flags at no risk. Active scans need a safe sandbox.

Interview tip → Say you always get written approval and a scope before active scanning.

All DevSecOps questions Roadmap: Security in the pipeline

More on Pipeline Security Scanning