Pcornel
Web Infrastructure

WAF

Cheat sheet · https://pcornel.dk/topic.php?topic=5079

Back to the Topic

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

BoundaryEstablishDoes not establish
Intent / policyRequired trust and access behaviorRuntime enforcement or bypass resistance
Decision / contextInputs and resulting authorization decisionThat the decision reached every enforcement point
Enforcement / pathObserved allow, deny, step-up or isolation on one pathCoverage of alternate, management or degraded paths
Telemetry / reassessmentWhat state changed and when policy reactedComplete visibility or absence of compromise
Outcome / residual riskResource result under the tested conditionsSecurity 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

Confirmation

Confirm action

Continue?