Skip to content

AswinMathew2004/WAF-Sentinel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ›‘οΈ WAF Sentinel

Advanced Web Application Firewall Fingerprinting Tool

Python License Platform Version

 β–ˆβ–ˆβ•—    β–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•— β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—    β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ•—   β–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ•—   β–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•—     
 β–ˆβ–ˆβ•‘    β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•”β•β•β•β•β•    β–ˆβ–ˆβ•”β•β•β•β•β•β–ˆβ–ˆβ•”β•β•β•β•β•β–ˆβ–ˆβ–ˆβ–ˆβ•—  β–ˆβ–ˆβ•‘β•šβ•β•β–ˆβ–ˆβ•”β•β•β•β–ˆβ–ˆβ•‘β–ˆβ–ˆβ–ˆβ–ˆβ•—  β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β•β•β•β•β•β–ˆβ–ˆβ•‘     
 β–ˆβ–ˆβ•‘ β–ˆβ•— β–ˆβ–ˆβ•‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—      β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—  β–ˆβ–ˆβ•”β–ˆβ–ˆβ•— β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β–ˆβ–ˆβ•— β–ˆβ–ˆβ•‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—  β–ˆβ–ˆβ•‘     
 β–ˆβ–ˆβ•‘β–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β•β•β•      β•šβ•β•β•β•β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β•β•β•  β–ˆβ–ˆβ•‘β•šβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘β•šβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β•β•β•  β–ˆβ–ˆβ•‘     
 β•šβ–ˆβ–ˆβ–ˆβ•”β–ˆβ–ˆβ–ˆβ•”β•β–ˆβ–ˆβ•‘  β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘         β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•‘ β•šβ–ˆβ–ˆβ–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘   β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘ β•šβ–ˆβ–ˆβ–ˆβ–ˆβ•‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—
  β•šβ•β•β•β•šβ•β•β• β•šβ•β•  β•šβ•β•β•šβ•β•         β•šβ•β•β•β•β•β•β•β•šβ•β•β•β•β•β•β•β•šβ•β•  β•šβ•β•β•β•   β•šβ•β•   β•šβ•β•β•šβ•β•  β•šβ•β•β•β•β•šβ•β•β•β•β•β•β•β•šβ•β•β•β•β•β•β•

A powerful, multi-technique WAF detection and fingerprinting tool designed for penetration testers and security researchers. Identifies 30+ WAF vendors using 8 parallel detection methods.


πŸ”₯ Features

  • 30+ WAF Signatures β€” Cloudflare, AWS WAF, Akamai, Imperva, Sucuri, F5 BIG-IP, ModSecurity, Fortinet, Azure, GCP Cloud Armor, Fastly, Barracuda, and many more
  • 8 Detection Methods:
    • HTTP Header Analysis
    • Cookie Fingerprinting
    • Response Body Pattern Matching
    • Status Code Behaviour Analysis
    • SSL/TLS Certificate Inspection
    • DNS CNAME Resolution
    • Response Timing Anomalies
    • Aggressive Payload Triggering
  • Confidence Scoring β€” Multi-signal aggregation with cross-method bonuses
  • Stealth Mode β€” Randomized delays and user-agent rotation
  • Proxy Support β€” Route through Burp Suite, SOCKS, or Tor
  • JSON Reports β€” Machine-readable output for CI/CD pipelines
  • Zero Dependencies on Kali β€” Works on any Python 3.8+ system

πŸ“¦ Installation

# Clone the repository
git clone https://github.com/AswinMathew2004/WAF-Sentinel.git
cd waf-sentinel

# Install dependencies
pip3 install -r requirements.txt

# Make executable
chmod +x waf-sentinel.py

Kali Linux (pre-installed deps)

# Most dependencies ship with Kali β€” just clone and run
git clone https://github.com/AswinMathew2004/WAF-Sentinel.git
cd waf-sentinel
python3 waf-sentinel.py -t example.com

πŸš€ Usage

Basic Scan (Passive)

python3 waf-sentinel.py -t example.com

Aggressive Mode (Payload Testing)

python3 waf-sentinel.py -t https://target.com --aggressive

Stealth Mode + JSON Report

python3 waf-sentinel.py -t target.com --stealth --output report.json

Full Scan Through Proxy

python3 waf-sentinel.py -t target.com -a -v --proxy http://127.0.0.1:8080

All Options

Usage: waf-sentinel.py [-h] -t TARGET [-a] [-s] [-o OUTPUT] [-v]
                       [--threads N] [--timeout N] [--proxy URL]

Options:
  -t, --target      Target URL or domain (required)
  -a, --aggressive  Enable aggressive payload-based detection
  -s, --stealth     Stealth mode (random delays between requests)
  -o, --output      Save JSON report to file
  -v, --verbose     Verbose output
  --threads          Number of threads (default: 5)
  --timeout          Request timeout in seconds (default: 10)
  --proxy            HTTP/SOCKS proxy (e.g., http://127.0.0.1:8080)

πŸ“Š Detection Methods Explained

Method Technique Stealth Level
Header Analysis Inspects response headers for WAF-specific names and values 🟒 Passive
Cookie Fingerprinting Matches cookie names/patterns to known WAF signatures 🟒 Passive
Body Analysis Scans HTML for block page signatures and error messages 🟒 Passive
Status Code Analysis Detects WAF-typical HTTP response codes (403, 406, 429…) 🟒 Passive
SSL/TLS Inspection Examines certificate issuer, subject, and SAN for CDN/WAF hints 🟒 Passive
DNS CNAME Check Resolves DNS to identify CDN/WAF infrastructure 🟒 Passive
Timing Analysis Compares response times for normal vs attack-like requests 🟑 Low Risk
Payload Trigger Sends benign attack payloads to provoke WAF block responses πŸ”΄ Active

🎯 Supported WAFs

WAF Vendor Detection
Cloudflare Cloudflare, Inc. βœ… Headers, Cookies, Body, SSL, DNS
AWS WAF Amazon βœ… Headers, Cookies, Body
Akamai Kona Akamai Technologies βœ… Headers, Cookies, SSL, DNS
Imperva / Incapsula Imperva βœ… Headers, Cookies, Body, DNS
Sucuri GoDaddy/Sucuri βœ… Headers, Cookies, Body, Server
F5 BIG-IP ASM F5 Networks βœ… Headers, Cookies, Body, Server
ModSecurity Trustwave/OWASP βœ… Headers, Body, Server
Barracuda WAF Barracuda Networks βœ… Cookies, Body, Server
Fortinet FortiWeb Fortinet βœ… Cookies, Body, Server
Citrix NetScaler Citrix βœ… Headers, Cookies, Body
Wordfence Defiant βœ… Cookies, Body
Azure Front Door Microsoft βœ… Headers, Body, Server
Google Cloud Armor Google βœ… Headers, Body, Server
StackPath StackPath βœ… Headers, Body
DDoS-Guard DDoS-Guard βœ… Headers, Cookies, Server
Wallarm Wallarm βœ… Headers, Body
Reblaze Reblaze βœ… Headers, Cookies
Radware AppWall Radware βœ… Headers, Body
Fastly WAF Fastly βœ… Headers, Body
Alibaba Cloud WAF Alibaba βœ… Cookies, Server, Body
Tencent Cloud WAF Tencent βœ… Cookies, Body
Palo Alto Networks Palo Alto βœ… Body
LiteSpeed WAF LiteSpeed βœ… Server, Body
Comodo WAF Comodo βœ… Server, Body
Shield Security Shield βœ… Body
SiteLock TrueShield SiteLock βœ… Body
Qrator Qrator Labs βœ… Cookies, Server
Varnish + Security Varnish Software βœ… Headers, Body
Edgecast / Verizon Edgecast βœ… Headers, Server

πŸ“„ Sample Output

  ───────────────────────────────────────────────────────
    RESULTS
  ───────────────────────────────────────────────────────

  [βœ“] Identified 2 WAF(s):

  [1] Cloudflare
      Confidence : 95% (Definite)
      Methods    : header_analysis, cookie_analysis, body_analysis, ssl_analysis, dns_analysis
      β€Ί Header present: cf-ray
      β€Ί Server header matches: cloudflare
      β€Ί Cookie matches: __cf_bm
      β€Ί SSL certificate hints at 'cloudflare'
      β€Ί DNS CNAME points to: target.cdn.cloudflare.net

  [2] Generic / Unknown WAF
      Confidence : 40% (Low)
      Methods    : payload_trigger
      β€Ί Payload 'SQLi β€” Union select' triggered block (HTTP 403)

πŸ”§ Project Structure

waf-sentinel/
β”œβ”€β”€ waf-sentinel.py          # Main entry point
β”œβ”€β”€ core/
β”‚   β”œβ”€β”€ __init__.py
β”‚   β”œβ”€β”€ signatures.py        # WAF signature database (30+ WAFs)
β”‚   β”œβ”€β”€ payloads.py          # Aggressive detection payloads
β”‚   └── utils.py             # CLI display utilities
β”œβ”€β”€ requirements.txt
β”œβ”€β”€ LICENSE
└── README.md

βš–οΈ Legal Disclaimer

This tool is intended for authorized security testing and research only.

Always obtain proper written authorization before testing any target. Unauthorized testing of systems you do not own or have permission to test is illegal and may violate computer fraud and abuse laws in your jurisdiction.

The authors assume no liability and are not responsible for any misuse or damage caused by this tool.


🀝 Contributing

Contributions are welcome! To add a new WAF signature:

  1. Fork the repository
  2. Add the signature to core/signatures.py following the existing format
  3. Test against a known target
  4. Submit a pull request

πŸ“œ License

MIT License β€” see LICENSE for details.


Made with β˜• for the security community
Star ⭐ this repo if you find it useful!

About

πŸ›‘οΈ WAF Sentinel β€” A multi-technique Web Application Firewall fingerprinting tool for penetration testers and security researchers. Identifies Cloudflare, AWS WAF, Akamai, Imperva, Sucuri, F5, ModSecurity, and 25+ more WAFs through passive and aggressive reconnaissance.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages