Heuristics and Rules: Why We Built a New Old WAF

This post details the rationale and technical approach behind augmenting Cloudflare's heuristic-based Web Application Firewall (WAF) with a traditional, rules-based WAF. It explains the historical limitations of rules-based systems (like SpamAssassin and ModSecurity) and the advantages of heuristic-based approaches. However, it acknowledges the need for rules-based systems for testing, compliance (e.g., PCI), and rapid response to new attack vectors. The new WAF was designed to be user-configurable, accept ModSecurity rule sets, add less than 1ms of latency, update globally within 30 seconds, provide feedback on triggered rules, and scale to handle billions of requests. The post also mentions rearchitecting some security systems for more visibility and flexibility.
More from the Website Security & Threat Management trail
- We tested our own WAF with frontier AI models. Here’s what we found
- When scanners miss the attack: how Cloudflare Client-Side Security protects storefronts
- Introducing automatic remediation policies with Cloudflare CASB
- Introducing context-aware vulnerability discovery and remediation with Cloudflare Managed Defense and OpenAI Daybreak Models
- Introducing Adaptive Intelligence: undermining the economics of every bot attack