Skip to content
AnswerWell geo Documentation

Research · 10 min read · Answerwell

False Positive Troubleshooting, Rule Tuning, and Security Event Analysis

How to find which security rule blocked legitimate traffic, tune WAF and DDoS settings, and verify fixes using analytics and event logs.

This page summarises Cloudflare documentation on false positives: when legitimate users, APIs, email, or network flows are incorrectly flagged as attacks and blocked, challenged, or dropped. The same dashboards and workflows also help you spot false negatives (abuse that still reaches your origin) and tune protection without turning security off site-wide.

False positives and false negatives: what operators mean

Section titled “False positives and false negatives: what operators mean”

A false positive is an incorrect identification—legitimate traffic treated as malicious. In DDoS protection, that means real clients mistaken for attack traffic, which can cause outages if mitigation actions run against them.

A false positive is an incorrect identification. In the case of DDoS protection, there is a false positive when legitimate traffic is mistakenly classified as attack traffic.

— Cloudflare, HTTP DDoS override examples

For the WAF, the same idea applies to HTTP requests:

False positives: Legitimate requests detected and mitigated as malicious.

— Cloudflare, Troubleshoot managed rules

A false negative is the opposite: attack or automated traffic that should have been stopped but was not. Bot scoring, DDoS volume thresholds, and disabled or skipped rules are common reasons. Reporting false negatives (for example via the bot feedback loop) helps Cloudflare improve detection; you can also add explicit blocks or rate limits using IP, JA3, ASN, or user-agent after confirming identifiers in Bot Analytics.

Security Events: which product blocked a request

Section titled “Security Events: which product blocked a request”

For HTTP traffic behind the CDN/WAF, Security Events is the usual starting point. Sampled logs show the action, the triggering rule, client details, and—critically—which product took the action.

Use Security Events to identify the feature that blocked a request:

In the Cloudflare dashboard, go to the Analytics page.

Go to Analytics ↗

Select the Events tab.

Find the blocked request in the log.

Check the Service field to determine which product took the action. This field tells you which feature to adjust.

— Cloudflare, Security features interoperability

All customers can correlate a request with a Ray ID and fields such as IP address, user agent, and ASN in Security Events. Add filters for a specific Ray ID or action (for example Block). Logs may be sampled for performance; use a shorter timeframe if filters miss events you expect.

Security Events filters for APIs, forms, and admin paths

Section titled “Security Events filters for APIs, forms, and admin paths”
Situation Practical filter What to look for
REST or GraphQL APIs URI Path starts with your prefix (e.g. /api/) Blocks on known partner IPs, valid API keys, or monitoring user-agents
Form endpoints Path filter on form URLs High block/challenge volume; single IP dominating events
Account login or takeover rules Action = block or challenge Payment processors or uptime monitors in blocked events

After deploying rules, Cloudflare recommends reviewing results to tune thresholds for both false positives and false negatives—see Discover and secure API endpoints and Protect your forms from spam and abuse.

When legitimate users are challenged, narrow the rule expression or choose a less aggressive action (for example log or a lighter challenge) rather than disabling entire rulesets.

Network Analytics: dropped packets and DDoS systems

Section titled “Network Analytics: dropped packets and DDoS systems”

For L3/L4, Magic Transit, Spectrum, or when HTTP issues sit in DDoS managed rulesets, use Network Analytics. Traffic is evaluated in sequence; an early drop never reaches later systems.

Network-layer DDoS protection: This layer manages DDoS rulesets. Advanced TCP protection: Cloudflare carries a stateful TCP inspection known as (flowtrackd ↗︎). Network Firewall: Your custom and managed firewall rules.

Each system operates independently. Traffic blocked by an earlier system never reaches later systems for evaluation.

— Cloudflare, Diagnose traffic decisions

  1. Open Network analytics → All Traffic → Add filter → Action equals Drop → Apply, and narrow the time range to the incident.

  2. In the Packet Summary graph, open the menu (three dots) → Mitigation system to see whether DDoS Managed Ruleset, Firewall Policy, Advanced TCP Protection, or another layer dropped the traffic.

  3. If the system is DDoS Managed Ruleset, switch to the DDoS managed rules tab, note Rule ID and Rule Name, and use the graph menu → Rule to see which rules acted on the traffic.

  4. If the system is Firewall Policy, open the Firewall tab and use the same Rule breakdown on the packet summary graph.

Log and monitoring mode (detected but not dropped)

Section titled “Log and monitoring mode (detected but not dropped)”

DDoS managed rules and Advanced DDoS Protection can run in modes that log or monitor without dropping. In Network Analytics → DDoS managed rules, filter Verdict equals drop and Action equals pass to find traffic that was marked as detection but not dropped—useful before enabling block actions.

By setting verdict to drop and outcome as pass, we are filtering for traffic that was marked as a detection (that is, verdict was drop) but was not dropped (for example, outcome was pass).

— Cloudflare, Adjust the displayed data

For HTTP Adaptive DDoS Protection, use Security Analytics → Events, filter Service equals HTTP DDoS and by rule ID; for L3/4 adaptive rules, filter by rule ID on the same Events view. You may also use Logpush or the GraphQL API. If nothing appears, widen the time range—adaptive rules need enough volume to build a traffic profile.

WAF managed rules: fix false positives without disabling everything

Section titled “WAF managed rules: fix false positives without disabling everything”

Managed rulesets aim to be compatible with most sites, but signature matches can hit legitimate rich input (HTML in CMS or support tools). Cloudflare’s guidance is to scope fixes, not blanket-disable protection.

Legitimate rich-text input can match a generic cross-site scripting signature. For example, a content management or support application may accept HTML.

Filter the analysis to that hostname, path, and method. Review representative requests to distinguish expected content from attacks. Then create a scoped rule or exception instead of changing protection for the entire application.

— Cloudflare, Analyze attack signatures

Recommended remedies, in order of preference:

  1. WAF exception — Skip specific managed rules or rulesets for matching requests (hostname, path, method). Validate expressions in the rule builder; see Use attack signatures in Security Rules and Troubleshoot managed rules.

  2. Disable or set individual rules to Log — Only the offending rule ID, not the whole ruleset. OWASP rule 949110 (Inbound Anomaly Score Exceeded) often points to OWASP Core Ruleset tuning.

  3. Payload logging (Enterprise) — Records the string that triggered the rule (encrypted with your key) to confirm whether a match is benign.

  4. Admin or upload paths — Exceptions such as http.host eq "example.com" and starts_with(http.request.uri.path, "/admin"); for file uploads, prefer Malicious uploads detection instead of relying on managed rules alone. For Zaraz, skip OWASP for starts_with(http.request.uri.path, "/cdn-cgi/zaraz/").

When a decision still looks wrong, review phase interactions: IP Access rules, custom Skip rules, and whether a managed rule ran after a custom match. Use Trace when available—see Rule phase interactions.

For client-side security rules, if a production change blocks legitimate resources, switch the action back to Log, review violations, update the allowlist, then re-validate before Allow—see Deploy content security rules in production.

DDoS managed rules: sensitivity, overrides, and adaptive rules

Section titled “DDoS managed rules: sensitivity, overrides, and adaptive rules”

When legitimate traffic is mistaken for a DDoS attack, reduce sensitivity, use Log (where your plan allows), or add expression filters to exclude known-good flows—especially for VPN/NAT or third-party egress above ~100 Mbps; see Third-party services and DDoS protection.

Remedy workflow (WAF/CDN zones):

  1. Security → Analytics → Events → filter Service equals HTTP DDoS (or use Network Analytics for Magic Transit/Spectrum).

  2. Identify the rule in Top events by source → copy the rule name.

  3. Security → Security rules → DDoS protection → Create override → browse rules, paste the name, lower Sensitivity to Essentially Off or set Action to Log if supported.

  4. Save; overrides typically apply within one or two minutes—confirm in analytics.

Full narrative and Magic Transit steps are in HTTP DDoS override examples.

When reviewing adaptive rules, compare logged traffic to what legitimate clients look like (user agent, country, headers, query string for HTTP; protocols and ports for L3/4). If only attack traffic is flagged, enable the rule with Managed Challenge or Block via override; if legitimate traffic is flagged, lower sensitivity until it is not, then enable mitigation.

Some rules belong to the read-only category and cannot have their sensitivity level or action adjusted via override. If you are unable to modify the rule causing the false positive, contact Cloudflare Support for assistance.

— Cloudflare, HTTP DDoS override examples

Adaptive rules use a seven-day rolling window; after advertising a new prefix, review adaptive logs about seven days later before setting override actions such as DDoS Dynamic or Block—see Post prefix advertisement monitoring.

Incomplete mitigation (attack gets through but is partially mitigated): for high-confidence attacks you may need to change the rule Action to Block via the same override path described in HTTP DDoS override examples.

Bots, email, CASB, and DLP false positives

Section titled “Bots, email, CASB, and DLP false positives”
Product Symptom Documented fix
Bot Management / Bot Fight Mode Browser or app traffic scored as automated Submit false positive feedback; Super Bot Fight Mode allows Skip via custom rules; Bot Fight Mode (Free) cannot be skipped except by turning it off or upgrading—see Stop malicious bots
Email Security Legitimate mail marked malicious Investigation → Submit for reclassification → disposition Clean; add sender to Acceptable Senders—Email Security troubleshooting
CASB Benign SaaS finding Report to Support with finding ID—Troubleshoot CASB
DLP Request flagged without sensitive data Report DLP false positive on the log entry—DLP policies

For bots, a low challenge solve rate on Managed Challenge rules often means the rule is filtering automation rather than humans—but aggressive modes (Bot Fight Mode, Super Bot Fight Mode) expect initial false positives; tune exceptions on Pro+.

  • Page Rules or rules that disable security — WordPress and CMS hardening notes checking that DNS is proxied and no rule sets Disable Security before tuning WAF; see Improving web security for CMS like WordPress.

  • Query String Sort — Alphabetical reordering of query parameters can break script load order (for example WordPress load-scripts.php); symptoms are JavaScript errors in the browser console—Query String Sort.

  • Rule order — An earlier matching rule wins; “new rule not working” often needs priority or expression refinement—Diagnose traffic decisions common scenarios table.

  • Advanced TCP Protection in Monitoring — Attacks not blocked may mean mode is Monitoring, not Mitigation; check sensitivities and filters that bypass mitigation—Troubleshooting Advanced TCP Protection.

  • False negatives checklist — Proxied DNS, deployed rulesets, exceptions not too broad, direct-to-origin IP bypass, empty user-agent rules disabled if you need them—Troubleshoot managed rules false negatives section.

  • Spectrum drops — Mitigation reason in Network Analytics explains drops (blocked, rate limited, connection limited, unexpected, not found)—DDoS Protection for Spectrum.

Reporting to Support: for WAF rule behaviour verification, Cloudflare may ask for a HAR file for the specific request; CASB and some SaaS findings need the finding ID.

  1. Reproduce or locate the affected request; note time, path, source IP, and Ray ID if shown to the client.
  2. In Security Events, filter by path, action, or Ray ID and read the Service and rule name; for packet drops, use Network Analytics with Action = Drop and Mitigation system.
  3. Apply the narrowest fix (exception, override sensitivity, or Log mode), wait one to two minutes for DDoS overrides, and re-test the same client flow.
  4. For WAF changes after upgrades, scan sampled logs for new blocks and temporarily set offending rules to Log—WAF managed rules upgrade.
  5. You can check automatically in Answerwell (our tool): https://answerwell.org/workspace

If something on this page is wrong or unclear, email yimasynthetic@gmail.com with the page URL and the exact statement you are asking about, and we will correct or clarify it.