ZAP reports many alerts and developers say they're false positives. How do you handle it?
IntermediateScenarioOWASP ZAP
Answer
Short answer
Verify a sample of alerts manually (reproduce with curl or the browser), classify each rule as real, accepted risk or false positive, encode decisions in a rules file (IGNORE/WARN/FAIL per rule ID) or alert filters with comments, and gate only on confirmed high-value rules so the scan stays trusted.
Process
- Group by rule (plugin ID) — 200 alerts are often 8 rules.
- Reproduce — e.g.
curl -sI https://staging.shop.example.com | grep -i content-securityto confirm a missing header. - Decide per rule
Decision Action Real issue Fix; keep rule at FAIL Low value / accepted WARN or IGNORE with comment + ticket False positive on specific URLs Alert filter scoped to those URLs - Encode in
.zap/rules.tsvor Automation FrameworkalertFilters, reviewed by security. - Re-run and confirm the noise is gone.
Alert filter example
- type: alertFilter
parameters: { deleteGlobalAlerts: false }
alertFilters:
- ruleId: 10096 # Timestamp Disclosure
newRisk: False Positive
url: "https://staging.shop.example.com/static/.*"
urlRegex: true
What to say in the interview
"I group alerts by rule, reproduce samples, and record decisions as IGNORE, WARN or FAIL in a reviewed rules file or scoped alert filters. The gate fails only on confirmed, high-value rules, so developers trust the results."
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