Improving the accuracy of our machine learning WAF using data augmentation and sampling
Sep 5, 2022Vikram Grover

Summary
This post details the challenges in acquiring high-quality labeled data for machine learning-based WAFs, including privacy constraints, heterogeneity of samples, sample difficulty, and noisy labels. It introduces data augmentation as a strategy to overcome these challenges, focusing on generating heterogeneous negative samples by mutating benign content and creating pseudo-random noise samples with increasing complexity. This approach aims to reduce false positives and improve the robustness and overall properties of the ML WAF.
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