WAF
Cheat sheet · https://pcornel.dk/topic.php?topic=5079
Answer
A Web Application Firewall applies HTTP-aware inspection and policy to selected web traffic to block or challenge known and modeled application-layer abuse while producing telemetry that complements secure application design.
Remember
- WAF ≠ secure application.
- WAF alert ≠ confirmed exploit.
- Design intent ≠ runtime enforcement; prove the policy decision, actual enforcement point and observed resource outcome independently.
- No observed bypass ≠ no bypass unless alternate paths, failure modes, management paths and telemetry coverage have been tested.
First checks
- WAF mode (detection/prevention) — enforcement
- OWASP CRS version and paranoia level — rules
- WAF block logs and false positives — tuning
Verify in this order
HTTP request → WAF rules → allow/block → app
Where it usually breaks
First mismatch in asset/subject identity → trust/authentication → authorization/policy → enforcement/control → telemetry/detection → protected outcome/response; preserve identity/policy/pre-state before mutation.
WAF architecture/evidence map
| Boundary | Establish | Does not establish |
|---|---|---|
| Intent / policy | Required trust and access behavior | Runtime enforcement or bypass resistance |
| Decision / context | Inputs and resulting authorization decision | That the decision reached every enforcement point |
| Enforcement / path | Observed allow, deny, step-up or isolation on one path | Coverage of alternate, management or degraded paths |
| Telemetry / reassessment | What state changed and when policy reacted | Complete visibility or absence of compromise |
| Outcome / residual risk | Resource result under the tested conditions | Security outside the tested identities, resources and failure modes |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5079