Nettacker icon indicating copy to clipboard operation
Nettacker copied to clipboard

Enhance WAF detection module with updated signatures and payloads

Open Aarush289 opened this issue 9 months ago • 2 comments

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

Aarush289 avatar Feb 12 '26 12:02 Aarush289

[!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_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to 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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

coderabbitai[bot] avatar Feb 12 '26 12:02 coderabbitai[bot]

Hi @securestep9 , the PR is ready for review , please review whenever you get time .

Aarush289 avatar Feb 27 '26 20:02 Aarush289

@codex review this PR using skill: https://github.com/nettacker-codex-ai/skills/blob/main/pr-review-recommender/SKILL.md

securestep9 avatar Jul 27 '26 22:07 securestep9