Interview Prep/DevSecOps/DAST, runtime detection and compliance scans

An active DAST scan against staging created 12,000 junk records and sent password-reset emails to real customer addresses copied from prod

IntermediateTroubleshootingDAST, runtime detection and compliance scans
Answer

Likely causes → The active scanner submits every form and fuzzes every endpoint. Staging held real PII and had live email delivery.

Diagnose → Match the scan window to the app's write logs and the email provider's send log.

Fix → Stop the scan, purge the generated data, and notify through your privacy process if real customers were emailed. Exclude destructive or side-effect paths (/password-reset, /invite, payment webhooks) in the ZAP context.

Prevent → No production PII in staging. Use a sandbox SMTP (Mailpit or a provider sandbox), give the scanner a dedicated test tenant, and run active scans against ephemeral environments that are destroyed afterwards.

All DevSecOps questions Roadmap: Policy as code

More on DAST, runtime detection and compliance scans