# How we built ngrok's WAF with OWASP CRS and Coraza

DevFeed: [How we built ngrok's WAF with OWASP CRS and Coraza](<https://devfeed.tech/articles/how-we-built-ngrok-s-waf-with-owasp-crs-and-coraza-83303.md>)

Original publisher: [Read original article](<https://ngrok.com/blog/ngrok-waf-owasp-crs-coraza>)

Author: Ben Chan

Published: 2025-12-10T00:00:00Z

Content type: article

Language: en

Sources: [\[ngrok news\]](<https://devfeed.tech/sources/ngrok-news.md>)

Topics: [zero trust network access](<https://devfeed.tech/topics/zero-trust-network-access.md>), [service-mesh](<https://devfeed.tech/topics/service-mesh.md>), [rate-limiting](<https://devfeed.tech/topics/rate-limiting.md>)

Tags: [api-gateway](<https://devfeed.tech/tags/api-gateway.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [ngrok](<https://devfeed.tech/tags/ngrok.md>), [owasp](<https://devfeed.tech/tags/owasp.md>), [waf](<https://devfeed.tech/tags/waf.md>)

## AI overview

ngrok describes integrating OWASP CRS rules through the Coraza WAF engine into its Traffic Policy system. The post covers design choices for sharing Coraza instances across endpoints, limiting request-body buffering to manage memory and stability, and handling false positives through dry-run operation and configurable rule exclusions. ngrok reports that the WAF actions blocked about 1.2% of requests to ngrok.com during more than six months of operation.

## Source excerpt

We integrated Coraza into our Traffic Policy system, ran it against every request to ngrok.com, and blocked 1.2% of traffic. Here's how we designed it and what attack patterns we're seeing.