WAF Attack Signature Detection, Confidence Levels, and Security Rules
How attack signature detection records WAF matches without blocking, how confidence relates to Managed Rules, and how to scope mitigation with Security Rules.
This page summarises Cloudflare documentation on Attack Signature Detection: a WAF traffic detection that records signature matches as metadata so you can investigate in analytics before you block or challenge traffic with Security Rules. During Early Access, Cloudflare Managed Rules remain the recommended baseline protection; detection does not replace them.
Attack Signature Detection: observe matches without automatic blocking
Section titled “Attack Signature Detection: observe matches without automatic blocking”Attack Signature Detection evaluates HTTP requests against the same attack signature catalog as Cloudflare Managed Rules, but it does not apply a mitigation action by itself.
Attack Signature Detection evaluates requests against Cloudflare attack signatures. It records match metadata without applying an action by itself.
— Cloudflare, Attack Signature Detection
Traditional WAF setups often tie detection and blocking together in managed rulesets. That can make false positives costly. Attack Signature Detection separates the steps: matches populate fields you review in Security Analytics; Security Rules provide the mitigation layer when you are ready.
A signature match does not mean Cloudflare blocked the request. Always inspect the request outcome and your deployed rules to see what action actually ran.
Request lifecycle: from signature match to Security Rule action
Section titled “Request lifecycle: from signature match to Security Rule action”Attack Signature Detection follows a fixed evaluation path on each request.
Cloudflare evaluates a request against attack signatures. Matching signatures populate confidence, category, and Ref fields. The match data becomes available in Security Analytics. A Security Rule can evaluate these fields and apply its action.
— Cloudflare, Attack Signature Detection
Important limits from the same documentation:
- Detection does not inherit your Managed Rules deployment configuration. Managed Rules actions, overrides, and deployment settings do not create Security Rules from detection fields.
- When no Security Rule references an Attack Signature Detection field, detection does not add request latency.
- When a rule does reference a detection field, detection runs inline; inline detection should have latency similar to Managed Rules evaluation.
- Attack Signature Detection and Managed Rules have no special interaction beyond normal phase and terminating-action behavior.
Cloudflare releases each new signature to Attack Signature Detection and Managed Rules at the same time (changelog announcement).
Detection fields: categories, confidence, and signature Ref
Section titled “Detection fields: categories, confidence, and signature Ref”When signatures match, Cloudflare populates three request fields (available in Security Analytics and Security Rules):
| Field | Type | Meaning |
|---|---|---|
cf.waf.signature.request.categories |
Array<String> | Categories for all matching signatures (a signature can have more than one). |
cf.waf.signature.request.confidence |
Array<String> | Confidence for matches; supported values are high and low. |
cf.waf.signature.request.refs |
Array<String> | Signature Refs (up to 10 per request); each Ref matches the corresponding Managed Rule public Rule ID. |
Example values from Fields:
cf.waf.signature.request.categories→["sqli", "cve-2025-55182"]cf.waf.signature.request.confidence→["high"]cf.waf.signature.request.refs→["d68f8101f6e14e25aefcaea69c530a29"]
In the Rules language, use any() to test array elements, for example:
any(cf.waf.signature.request.categories[*] eq "sqli")any(cf.waf.signature.request.confidence[*] eq "high")any(cf.waf.signature.request.refs[*] eq "d68f8101f6e14e25aefcaea69c530a29")For rollout patterns, see Use attack signatures in Security Rules.
Confidence levels: high vs low and false-positive risk
Section titled “Confidence levels: high vs low and false-positive risk”Confidence describes the expected false-positive characteristics of a signature. It does not prove that a request is malicious.
| Confidence | Meaning | Comparison with Managed Rules | Recommended analysis |
|---|---|---|---|
high |
Targets a high true-positive and low false-positive rate. | Same signatures as the default Managed Rules deployment enables. | Confirm affected traffic and current mitigation before applying a broad action. |
low |
Greater risk of matching legitimate application traffic. | Signatures that Managed Rules disables by default. | Review requests and scope mitigation to the affected application surface. |
— adapted from Cloudflare, Analyze attack signatures
Use Security Analytics > Attack Analysis to investigate signature matches before you change mitigation (Analyze attack signatures).
Attack Signature Detection vs Cloudflare Managed Rules
Section titled “Attack Signature Detection vs Cloudflare Managed Rules”Both products share one signature catalog, but they differ in what they produce and how you mitigate.
| Area | Attack Signature Detection | Cloudflare Managed Rules |
|---|---|---|
| Signatures | Same catalog as Managed Rules. | Same catalog as Attack Signature Detection. |
| Primary result | confidence, category, and Ref metadata on the request. |
Actions from the deployed managed ruleset. |
| Mitigation | Requires a Security Rule that references a detection field. | Uses Managed Rules actions, overrides, and deployment configuration. |
| Analysis | Signature-oriented data in Security Analytics > Attack Analysis. | Events from your deployed managed ruleset configuration. |
| Identifier | Signature Ref = Managed Rule public Rule ID. | Public Rule ID = signature Ref. |
Equivalent signatures do not produce equivalent behavior. Attack Signature Detection produces metadata, while Managed Rules apply configured actions.
— Cloudflare, Attack Signature Detection
How to reconcile detection with Managed Rules blocking
Section titled “How to reconcile detection with Managed Rules blocking”Each signature Ref matches the corresponding Managed Rule public Rule ID. Use that identifier to find the managed rule and compare detection with your deployment (Analyze attack signatures).
Before you assume Managed Rules blocked a match, check the request outcome and Security Events. Managed Rules actions and overrides determine behavior—not the mere presence of a detection field.
Within the broader Traffic detections model, detections stay on once enabled even if no rule uses them yet; Attack Signature Detection is one detection that exposes match metadata independently from mitigation.
Security Rules: scoped mitigation after review
Section titled “Security Rules: scoped mitigation after review”Attack Signature Detection fields let Security Rules act on matching traffic; the fields do not apply actions by themselves (Use attack signatures in Security Rules).
You can match confidence, category, or signature Ref, and combine those with request properties such as hostname, path, and HTTP method (Attack Signature Detection).
Mitigation workflow people follow in practice
Section titled “Mitigation workflow people follow in practice”- Review historical matches in Security Analytics > Attack Analysis.
- Choose whether to match confidence, category, or signature Ref.
- Scope the rule to the intended hostname, path, method, or endpoint.
- Select an action appropriate for the reviewed traffic.
- Monitor the result and adjust the expression if legitimate traffic is affected.
Guidance from Cloudflare:
Start with the narrowest application scope that meets your security objective. Treat low-confidence signatures as candidates for application-specific review instead of broad blocking.
— Cloudflare, Use attack signatures in Security Rules
Create rules in the dashboard or via the API; the detection docs point to custom rule creation flows on the same pages.
Common mistakes
Section titled “Common mistakes”- Blocking on
lowconfidence zone-wide without reviewing samples—low confidence aligns with signatures disabled by default in Managed Rules because they match legitimate traffic more often. - Assuming a detection match equals a block—check outcome and Security Events.
- Expecting Managed Rules overrides to drive Security Rules—detection does not inherit Managed Rules configuration; you must author Security Rules explicitly.
- Broad rules before Attack Analysis—Cloudflare recommends confirming affected traffic and existing mitigation for high-confidence signatures before wide actions.
How Attack Signature Detection fits other WAF detections
Section titled “How Attack Signature Detection fits other WAF detections”Traffic detections score or classify requests by populating fields for filters and rule expressions. WAF attack score (machine learning, 1–99) complements signature-based Managed Rules by catching modified payloads that miss exact signatures (WAF attack score). Cloudflare recommends using both Managed Rules and attack score for broad protection; Attack Signature Detection adds a review-then-mitigate path on the same signatures as Managed Rules, not a replacement during Early Access.
Enterprise operators tuning Managed Rules diagnostics may also use WAF Payload Logging (Enterprise), which logs targeted matched portions of requests with UI highlighting (Improved Payload Logging); that is separate from Attack Signature Detection fields but useful when correlating rule IDs and refs in logs.
How to check this on your site
Section titled “How to check this on your site”- Confirm Early Access for Attack Signature Detection with your Cloudflare account team, then open Security Analytics > Attack Analysis as described in Analyze attack signatures.
- Trigger or sample traffic that should match a known category (for example SQLi) and verify
cf.waf.signature.request.categories,confidence, andrefsappear in analytics per Fields. - For a matching Ref, look up the same value as the Managed Rule public Rule ID and compare behavior with Security Events and your Managed Rules deployment (Analyze attack signatures).
- After creating a scoped Security Rule, re-test the same request and confirm the outcome reflects the rule action—not detection alone (Use attack signatures in Security Rules).
- You can check automatically in Answerwell (our tool): https://answerwell.org/workspace
Report an error or ask a question
Section titled “Report an error or ask a question”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.