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

  1. Group by rule (plugin ID) — 200 alerts are often 8 rules.
  2. Reproduce — e.g. curl -sI https://staging.shop.example.com | grep -i content-security to confirm a missing header.
  3. 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
  4. Encode in .zap/rules.tsv or Automation Framework alertFilters, reviewed by security.
  5. 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."

All Security Tools questions Roadmap: OWASP ZAP — dynamic testing (DAST)

More on OWASP ZAP