SOC 2 Readiness
24/7 Security Monitoring
Canadian-Based SOC
Back to Glossary
Application Security

What Is Web Application Firewall (WAF)?

Definition

A Web Application Firewall (WAF) is a security solution that monitors, filters, and blocks HTTP/HTTPS traffic to and from web applications, protecting against attacks like SQL injection, XSS, and other OWASP Top 10 vulnerabilities.

People Also Ask

Common questions about Web Application Firewall (WAF) answered by our security experts.

Web Application Firewall (WAF) in Practice

A WAF sits in front of an application and inspects HTTP traffic, blocking what matches known attack patterns or deviates from expected behaviour. It is genuinely useful and it is routinely sold as something it is not: a substitute for fixing the application.

The honest framing is that a WAF buys time. It blocks opportunistic and automated attacks, and it can hold the line on a known vulnerability while a fix is developed and deployed. It does not make a vulnerable application safe.


What it catches, and what walks straight through

WAF coverage by attack typeAutomated probing and known payload patterns are blocked; authorisation flaws and business logic abuse pass through because each request is individually well-formed and legitimate.Automated scanning and opportunistic probingBlocked reliably — most of the noiseKnown injection payload patternsBlocked, until the payload is variedVirtual patching of a specific known flawGenuinely valuable while a fix shipsBroken authorisation between accountsInvisible — the request looks legitimateBusiness logic abuseInvisible — every request is individually validAttacks over encrypted or non-HTTP channelsOut of scope entirely
The bottom three are where serious breaches happen, and a WAF cannot see any of them.

The reason is structural. A request that reads another customer's record by changing an identifier is a perfectly valid HTTP request from an authenticated user. There is no payload to match and no anomaly to detect — the application is doing exactly what it was asked.


Running one well

  • Start in detection mode. Blocking from day one generates false positives that break legitimate traffic and destroy confidence in the control.
  • Tune against real traffic for several weeks before enforcing, and expect application-specific exceptions.
  • Log to the SIEM. A WAF is a rich detection source and is frequently deployed with nobody reading its output.
  • Use virtual patching deliberately — when a flaw is known and a fix is weeks away, a targeted rule is exactly the right tool.
  • Review exceptions periodically, because a broad exception added to unblock a release tends to become permanent.
Watch for the exception that disables the control
A common pattern: legitimate traffic gets blocked, an urgent exception is added, and it is written broadly to be certain it works. Six months later a large portion of traffic bypasses inspection and nobody remembers why. Exceptions need an owner, a reason and a review date.

Where it fits in the stack

A WAF is a compensating control, not a primary one. It belongs alongside secure development, not instead of it — and the compliance frameworks that reference one generally accept it as mitigation rather than remediation.

Rate limiting deserves a mention here because it is often configured on the same device and addresses a different problem: abuse of legitimate functionality, such as credential stuffing or enumeration through a password reset. See rate limiting in practice.


Managed rules, and the illusion of coverage

Most deployments run a vendor-managed rule set, which is sensible: maintaining signatures is specialist work and the vendor does it full time. It also creates a quiet assumption that coverage is someone else's responsibility.

Managed rules protect against known, general attack patterns. They know nothing about your application — which endpoints are sensitive, which parameters carry identifiers, what a normal request volume looks like for a given user. The rules that would catch abuse specific to your business are ones only you can write, and most organisations never write any.

The practical middle ground is to keep the managed set for baseline coverage and add a small number of custom rules around the handful of endpoints that matter most: authentication, password reset, payment, bulk export. Those five or six rules typically deliver more real protection than the rest of the configuration combined.

Where to start

Check whether your WAF is in blocking or detection mode, and whether anyone reads its logs. A substantial proportion of deployed WAFs are in detection mode indefinitely and feeding a log nobody monitors, which provides the compliance artefact and none of the protection.

See application security and API security. GuardsArm delivers application penetration testing.

Need Help With Web Application Firewall (WAF)?

Our certified security professionals can help you implement the right web application firewall (waf) strategy for your organization. Get a free assessment today.

Book a Free Consultation