What Is a Host-Based WAF? Where It Runs and Why It Matters
A host-based WAF runs inside the web server and filters HTTP requests locally. How it differs from a network WAF and why its blast radius is larger.
A host-based WAF is a web application firewall that runs on the same server as the web application, usually as a module loaded into Apache httpd, Nginx or IIS. It inspects each HTTP request inside the web server process before the application sees it. That placement makes it cheap and precise, but it also means a flaw in the WAF runs with the web server's privileges, as the exploited SiteGuard CVE-2026-106931 showed.
What is a host-based WAF?
A host-based WAF is software installed on the web server itself that filters HTTP traffic for attacks such as SQL injection and cross-site scripting. It works from inside the server process instead of from a separate network device or cloud service.
Typical examples are web server modules and agents: a rule engine loaded into Apache or Nginx, or an ISAPI filter on IIS. SiteGuard Server Edition, the product behind the October 2026 KEV entry, is one; its vendor ships separate builds for Apache httpd, Nginx and IIS.
How does a host-based WAF differ from a network WAF?
A network WAF sits in front of the servers as an appliance, reverse proxy or cloud service, while a host-based WAF sits inside each server. The difference decides what each one can see, what it costs and what happens when it is compromised.
Where it sees traffic. A network WAF sees requests before they reach your infrastructure. A host-based WAF sees them after TLS is terminated on the server, so it inspects decrypted traffic without needing a copy of your certificates elsewhere.
How it scales. A network WAF is one control point for many servers. A host-based WAF is installed, licensed and patched per server, which adds up across a large estate.
What it knows about the application. Running in the web server, a host-based WAF knows the virtual host, the local path and the server's configuration. That context makes rules easier to tune per site.
Blast radius. This is the difference most teams overlook. A compromised network WAF exposes traffic passing through it. A compromised host-based WAF exposes the host: files, keys, credentials and everything else the web server account or a privileged helper can reach.
Why does a host-based WAF need high privileges?
Many host-based WAFs need more than the web server's normal rights because they write logs, update signatures, build statistics and talk to a management interface. Those helper tasks often run as root on Linux or SYSTEM on Windows.
That is where trouble usually starts. The request filter itself may run with the web server's limited account, while a background component handles data produced from attacker-controlled requests. In the SiteGuard case, the vendor placed the command injection in the statistics function, and successful exploitation gave root or SYSTEM.
Where host-based WAFs fit in a defense plan
A host-based WAF is a useful layer, not a perimeter. Use it for:
- Virtual patching of known application flaws while a code fix is prepared.
- Per-site rules on shared hosting, where each virtual host needs its own tuning.
- Decrypted inspection on servers where TLS terminates locally and no network WAF is in the path.
Do not treat it as the only control. Keep the application patched, keep a network-level filter where you can, and log at the web server independently of the WAF so a WAF compromise does not also erase your evidence. If a host-based WAF ever is compromised, follow the steps in how to preserve evidence before patching a server before you update it.
How to manage a host-based WAF safely
Treat the WAF as privileged software on an internet-facing host, because that is what it is.
- Inventory it. Record which servers run which WAF build. Host-based products are easy to forget because they do not show up as separate devices on a network scan.
- Subscribe to the vendor's advisories. Contract customers of SiteGuard heard about CVE-2026-106931 two weeks before the public alert. Our piece on why vendor security advisory subscriptions matter explains how to make sure your team is on that list.
- Turn off what you do not use. Statistics, reporting and management features enabled by default add code that processes request data. If no one reads the reports, disable the feature.
- Restrict the management interface. Bind it to localhost or a management network, never the public internet.
- Patch on the same clock as the web server. A WAF update is a security update, not an optional signature refresh.
Common questions
Is a host-based WAF the same as a RASP?
No. Runtime application self-protection (RASP) instruments the application code itself, while a host-based WAF filters HTTP requests in the web server before they reach the application. Both run on the host, so both share the larger blast radius described above.
Does a host-based WAF replace secure coding?
No. A WAF blocks known attack patterns in requests; it does not fix the underlying flaw. Use it to buy time and reduce noise, and fix the code.