Skip to content

2.8.0: WAF rules for Cloudflare, AWS WAF and Azure WAF

Choose a tag to compare

@antonguzhevskiy-TD antonguzhevskiy-TD released this 22 Nov 10:13
· 6 commits to main since this release
cf03e1c

WAF rules (#10). The detections stay the same; this release adds a way to block part of them at the edge.

  • New waf/ folder with rules for Cloudflare (dashboard expressions, Rulesets API JSON, IP list, Terraform), AWS WAF (rule group and IP sets as CLI input, CloudFormation and Terraform) and Azure WAF (Application Gateway and Front Door policies in Bicep and ARM, and plain custom rule arrays).
  • Rule groups by tier. Block: framework user agents, probe markers and framework headers, unsigned alg:none JWTs, and the CyberStrikeAI webshell probe in request bodies. Challenge: scanner user agents and reported addresses. Log: AI agent page readers and the Hermes results folder. Opt-in: WSUS services reached from the internet. Addresses are never blocked by default.
  • Everything is generated by tools/build_waf.py from waf/signatures.yaml and iocs/indicators.csv. Addresses past their review_by date are left out (21 of 163 on this release).
  • tests/waf/run_tests.py checks the generated files on every platform: every signature value, every address, hand-written requests (most of them near misses), and a replay of the Suricata test flows so the WAF rules and the Suricata rules they mirror agree. It also checks platform limits, the AWS files against the wafv2 API model, and CI runs cfn-lint, terraform validate and az bicep build.
  • waf/README.md answers whether a WAF is needed and where it fits next to the SIEM and IDS content.

Also in this release, from 2.7.3

  • Elastic conversions of DNS, proxy and web server rules now use ECS field names: dns.question.name, url.original, url.domain, url.path, url.query and user_agent.original. Before, they kept the Sigma names and matched nothing in an ECS index. Contributed by @tridev-tej in #9, closing #4.
  • tools/validate.py fails if a generated Elastic query still uses one of those Sigma field names.