Enhance WAF detection module with updated signatures and payloads
Proposed change
This PR enhances the existing WAF detection module, which was originally implemented in 2018 and has not been updated to reflect the current WAF ecosystem. The following improvements were made: Added detection signatures for newer WAF services that were missing from the original module. Updated and aligned fingerprints based on the latest implementations in: Wafw00f (latest version) Nuclei WAF detection templates Expanded the set of payloads used in GET parameter testing.
Type of change
- [x] New or existing module/payload change
Checklist
- [x] I've followed the contributing guidelines
- [x] I've run
make pre-commit, it didn't generate any changes - [x] I've run
make test, all tests passed locally
[!NOTE]
Reviews paused
It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the
reviews.auto_review.auto_pause_after_reviewed_commitssetting.Use the following commands to manage reviews:
@coderabbitai resumeto resume automatic reviews.@coderabbitai reviewto trigger a single review.Use the checkboxes below for quick actions:
- [ ] ▶️ Resume reviews
- [ ] 🔍 Trigger review
Walkthrough
Expanded the WAF detection YAML: replaced commented payloads with a comprehensive explicit payload list, added iterative_response_match threat-actor blocks, and introduced many new vendor detector entries with broader header/content/status patterns and logs.
Changes
| Cohort / File(s) | Summary |
|---|---|
WAF Detection Configuration nettacker/modules/scan/waf.yaml |
Large expansion of the YAML: replaced commented payloads with an extensive explicit payload list (XSS, boolean/union/order-by/stacked SQLi, OS command, LFI, XXE). Added iterative_response_match blocks (Anubis/Techaro, Baffin Bay/Mastercard) and many new detector entries (Azure App Gateway/Front Door, FortiGate variants, Envoy, Kemp LoadMaster, Link11 WAAP, ThreatX, Variti, Vercel WAF, Shieldon Firewall, NSFocus reintroductions, Azion, Cloud/Edge vendors, etc.). Broadened regex/header/content/status checks, added 403/blocked-page patterns, and updated/expanded log messages and detector structures. |
Estimated code review effort
🎯 3 (Moderate) | ⏱️ ~25 minutes
Suggested reviewers
- arkid15r
- securestep9
🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
| Check name | Status | Explanation |
|---|---|---|
| Title check | ✅ Passed | The title accurately summarizes the main change: enhancing WAF detection with updated signatures and payloads, directly reflecting the file modifications. |
| Description check | ✅ Passed | The description clearly relates to the changeset, explaining the motivation (2018 module needing updates), specific improvements (new WAF signatures, updated fingerprints, expanded payloads), and alignment with external tools. |
| Docstring Coverage | ✅ Passed | No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. |
✏️ Tip: You can configure your own custom pre-merge checks in the settings.
✨ Finishing Touches
🧪 Generate unit tests (beta)
- [ ] Create PR with unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Comment @coderabbitai help to get the list of available commands.
Hi @securestep9 , the PR is ready for review , please review whenever you get time .
@codex review this PR using skill: https://github.com/nettacker-codex-ai/skills/blob/main/pr-review-recommender/SKILL.md