Why shouldn't you run a ZAP active/full scan against production?
IntermediateConceptOWASP ZAP
Answer
Short answer
An active scan sends real attack payloads — thousands of requests with SQL injection, XSS and other inputs. It can create junk data (submitting forms, creating accounts, placing orders), trigger emails/payments, lock accounts, fill logs and alerts, and slow down or crash the app. Run it against an isolated test environment with test data.
What can go wrong in prod
- Thousands of fake orders/sign-ups and notification emails to customers.
- WAF/IDS alerts and blocked IPs; the security team thinks you're under attack.
- Database load and degraded performance for real users.
- Deleting data if the app exposes destructive endpoints.
Safe approach
| Environment | Scan |
|---|---|
| Production | Passive baseline only (and only if agreed), or none |
| Staging / dedicated DAST env | Baseline on each deploy |
| Isolated test env with seeded data | Full / API active scans |
Always get written approval for any scanning of shared or production systems.
What to say in the interview
"Active scans send attack payloads that create data, trigger workflows and add load, so they belong in an isolated environment with test data. Production gets at most an agreed passive baseline."
More on OWASP ZAP
What is OWASP ZAP and how do you run a DAST scan?BeginnerWhat is the difference between SAST and DAST?BeginnerWhat is OWASP ZAP?BeginnerWhat is the difference between a ZAP baseline scan and a full scan?BeginnerHow do you run a ZAP baseline scan with Docker?BeginnerHow do you read a ZAP report?Beginner