Request Analysis & Validation Agent for Gateway Exploitation Research
Autonomous SSRF Detection · Exploitation · Verification
GateForge is an enterprise-grade autonomous SSRF (Server-Side Request Forgery) agent that runs a 10-phase pipeline against every SSRF-plausible parameter on a target — from surface triage and differential probing through OOB correlation, evidence collection, chain pivoting, and exploit module execution.
- 10-Phase Detection Pipeline — Surface triage → baseline → context classification → WAF fingerprinting → differential probing → OOB correlation → evidence collection → chain pivoting → confidence scoring → adaptive feedback
- 12 Exploit Modules — Redis, Docker, PostgreSQL, FastCGI, MySQL, Memcached, Tomcat (Ghostcat), Zabbix, SMTP, cloud metadata (AWS/GCE/Azure/DO/Alibaba), port scanning, file reads
- 3-Mode Exploitation —
default(low-impact auto),exploit_chain(full RCE suite),no(detection only) - Native Crawling — No spider file required. BFS crawler with form parsing, JS analysis, GraphQL/OpenAPI discovery
- DNS Rebinding — TOCTOU bypass detection via controlled DNS resolution flipping
- Confidence Scoring — 4-tier model:
TENTATIVE→FIRM→CERTAIN→CRITICAL+ - SARIF Output — CI/CD-compatible reports for GitHub Advanced Security, VS Code
# Install
git clone https://github.com/project-hellhound-org/GateForge.git
cd GateForge
chmod +x install.sh && ./install.sh
# Scan with cookie auth (verbose + auto-exploit ON by default)
gateforge --cookie 'session=YOUR_SESSION_COOKIE' http://target.com
# Scan with OOB for blind SSRF confirmation
gateforge --cookie 'session=abc123' --oob https://oast.pro http://target.com
# Full exploitation mode
gateforge --cookie 'session=abc123' --mode exploit_chain http://target.comRequires Python 3.10+. The installer creates .venv, installs dependencies, and links gateforge globally.
# Manual install (editable dev mode)
python3 -m venv .venv && source .venv/bin/activate
pip install -e .
# Verify
gateforge --version# Target URL only — GateForge crawls it automatically
gateforge http://target.com
# Spider file input
gateforge --input spider.json http://target.com
# Authenticated scan with Bearer token
gateforge --bearer eyJhbGciOiJIUzI1NiJ9.xxx http://target.com
# API key auth
gateforge --api-key sk-abc123 --api-key-header X-Api-Key http://target.com
# Multiple cookies
gateforge --cookie 'session=abc' --cookie 'csrf=xyz' http://target.com
# Pentest mode: OOB + auth + Burp intercept
gateforge --cookie 'session=abc' --oob https://oast.pro \
--proxy http://127.0.0.1:8080 http://target.com
# Full exploit chain with per-action confirmation
gateforge --mode exploit_chain --cookie 'session=abc' http://target.com
# Quiet mode for CI/CD
gateforge --quiet --input candidates.json --output /tmp/gateforge-ci| Mode | Flag | Behavior |
|---|---|---|
| detect | --mode detect |
Read-only detection. Safe for production. |
| default (auto) | --mode default |
Low-impact evidence collection (Redis INFO, cloud metadata, /etc/hostname). Runs automatically after detection. |
| exploit_chain | --mode exploit_chain |
Full RCE exploitation. Each destructive action requires operator YES confirmation. |
| no | --mode no |
Detection only, skip all exploitation. Report from anomaly/OOB findings. |
| Phase | Name | What It Does |
|---|---|---|
00 |
Surface Triage | Pre-score all candidates HIGH/MEDIUM/LOW; SSRF vuln-type classification |
01 |
Baseline | 5 clean samples per candidate; infra-noise detection; auth-redirect detection |
02 |
Context Classifier | Classify parameter context: fetch_url / redirect / file_include / crlf / host_header |
03 |
WAF Fingerprint | 11 WAF vendor fingerprints with per-vendor mutation chains |
04 |
Differential Probe | z-score anomaly on timing, redirect, status, content-length |
05 |
OOB Correlation | Interactsh token-per-candidate; async pattern detection; stored SSRF daemon |
06 |
Evidence Engine | Cloud IMDS, K8s API, Redis/Memcached banner, file read, CRLF injection |
07 |
Chain / Pivot | Second-order SSRF; DNS rebinding TOCTOU; max_hops=3 depth |
08 |
Confidence Scoring | Known-exploit escalation; confidence-reduction caps |
09 |
Reporter | JSON + SARIF 2.1.0; curl PoC per finding; deduplication |
10 |
Adaptive Feedback | Cross-candidate pattern propagation; WAF chain caching; IMDSv2 escalation |
| Module | Service | Ports | Read-Only | Destructive | CVEs |
|---|---|---|---|---|---|
| cloud_metadata | AWS/GCE/Azure/DO/Alibaba | 80 | 5 | 0 | — |
| redis | Redis | 6379 | 3 | 3 | CVE-2022-0543 |
| docker | Docker Engine | 2375 | 3 | 1 | — |
| postgres | PostgreSQL | 5432 | 2 | 2 | CVE-2019-9193 |
| fastcgi | PHP-FPM | 9000 | 1 | 2 | — |
| mysql | MySQL | 3306 | 2 | 0 | — |
| memcached | Memcached | 11211 | 3 | 1 | — |
| tomcat | Tomcat | 8005/8009/8080 | 1 | 2 | CVE-2020-1938 |
| zabbix | Zabbix Agent | 10050 | 4 | 1 | — |
| smtp | SMTP | 25, 587 | 2 | 1 | — |
| portscan | Internal scan | — | 1 | 0 | — |
| readfiles | file:// | — | 1 | 1 | — |
gateforge [OPTIONS] <target_url>
gateforge --input <spiderfile.json> [target_url] [OPTIONS]
Authentication:
--bearer TOKEN Bearer/JWT token
--api-key KEY API key value
--api-key-header HDR Header name for --api-key (default: X-Api-Key)
--cookie NAME=VALUE Session cookie (repeatable)
OOB (Out-of-Band):
--oob URL Interactsh server URL for blind SSRF confirmation
--oob-wait SECONDS Post-scan OOB daemon polling duration (default: 60s)
Scan Control:
--mode MODE detect | default | exploit_chain | no
--rate N Requests per second (default: 25)
--timeout N Per-request timeout in seconds (default: 8)
--max-hops N SSRF chain depth limit (default: 3)
--no-openapi Disable OpenAPI/Swagger auto-discovery
--proxy URL HTTP proxy (e.g. http://127.0.0.1:8080)
--config PATH Path to config.yaml
Crawl & Recon (when --input is omitted):
--crawl-depth N BFS max depth (default: 5)
--crawl-max-pages N Starting page budget (default: 40)
--crawl-scope HOST Extra in-scope host (repeatable)
--no-crawl-js Disable static JS endpoint extraction
Output:
--output DIR Report output directory (default: ./reports)
--verbose, -v Show all candidates (ON by default)
--no-verbose Suppress verbose candidate output
--quiet, -q Suppress banner and status board
Info:
--version Show version
--help, -h Show help
| Tier | Meaning |
|---|---|
| TENTATIVE | Differential anomaly detected. Needs manual review. |
| FIRM | OOB callback confirmed — server made outbound request. |
| CERTAIN | Schema-matched evidence artifact (IMDS, Redis banner, etc.). |
| CRITICAL+ | Chained SSRF, K8s API, or known-exploitable service reached. |
| File | Format | Description |
|---|---|---|
gateforge_report.json |
JSON | Full scan report — findings, proposals, action log |
gateforge_report.sarif |
SARIF 2.1.0 | CI/CD-importable — GitHub Advanced Security, VS Code |
evidence/ |
Per-finding | Raw evidence artifacts from evidence collection |
httpx[http2]>=0.27.0
PyYAML>=6.0.1
rich>=13.7.1
dnslib>=0.9.24
GateForge must only be used against systems you are explicitly authorized to test. Unauthorized use may violate the Computer Fraud and Abuse Act (CFAA), the Computer Misuse Act, and equivalent laws in your jurisdiction.
This tool is intended solely for authorized security assessments, red-team engagements, and security research.
Developed by Project Hellhound
Part of the Project Hellhound ecosystem.
