PER-HOP SSRF FIREWALL · HTTP 422

Multi-Hop SSRF Defense for Autonomous B2B Research Agents (HTTP 422 / $0 Billed)

Target Query: ssrf safe b2b enrichment api autonomous ai agents http 422 · Category: Security & Guardrails · Verified Rate: $0.02/account ($0 on miss) · Prepaid Packs: $19 / $79 / $249 · Updated: 2026-12-02

Direct Answer: When autonomous AI agents ingest prospect URLs from user uploads, webhooks, or scraped directories, unguarded enrichment APIs become an open SSRF pivot into internal VPC hosts and cloud metadata endpoints. Lead-Anything's src/ssrf_guard.py validates both initial inputs and every HTTP redirect hop against localhost, 127.0.0.0/8, RFC 1918 (10/8, 172.16/12, 192.168/16), link-local/cloud metadata (169.254.169.254), IPv6 loopback/link-local/ULA (::1, fe80::/10, fc00::/7), .local/.internal domains, integer/hex/octal IP obfuscations, non-HTTP schemes, and junk inputs—returning HTTP 422 with billed_micros = 0 before any unsafe socket opens.

Engineering Mechanics & Deterministic Evidence

SSRF & Input Validation Defense Matrix (All Unbilled HTTP 422)

Attack / Invalid VectorRepresentative InputGuard LayerHTTP Status & Billing
Loopback & Localhostlocalhost, 127.0.0.1, [::1]ssrf_guard + treg_hub/run.jsHTTP 422 · billed_micros = 0
RFC 1918 Private Networks10.0.0.1, 172.16.0.1, 192.168.1.1ssrf_guard + DNS IP resolutionHTTP 422 · billed_micros = 0
Cloud Instance Metadata169.254.169.254, metadata.google.internalssrf_guard + treg_hub/run.jsHTTP 422 · billed_micros = 0
Obfuscated & Redirect Trapshttp://2130706433/, 302 -> 127.0.0.1Custom per-hop redirect validatorHTTP 422 · billed_micros = 0
Junk / Malformed / Scheme"", "N/A", ftp://example.org, javascript:...Strict domain/URL normalizerHTTP 422 · billed_micros = 0
SSRF Block Coverage Across Attack Classes (Zero Bypass & $0 Billed) Direct Loopback / RFC 1918 / IPv6 Blocked HTTP 422 ($0) Cloud Metadata 169.254.169.254 Blocked HTTP 422 ($0) 301/302 Redirect to Private Host Blocked HTTP 422 ($0) Integer / Hex / Octal Obfuscation Blocked HTTP 422 ($0) Junk CSV Strings & Bad Schemes Blocked HTTP 422 ($0)

Test SSRF Guard Rejection (HTTP 422, billed_micros: 0)

curl -i -X POST "https://lead.fastmesh.dev/v1/analyze" \
  -H "Content-Type: application/json" \
  -d '{"domain": "http://169.254.169.254/latest/meta-data/"}'

# Expected Response: HTTP/1.1 422 Unprocessable Entity
# {"ok": false, "status": 422, "blocked_reason": "ssrf_blocked", "billed_micros": 0}

Strict $0 guarantee: dead, parked, empty, blank-JS shell, fake-200 WAF/CAPTCHA, invalid, and SSRF HTTP 422 targets always settle at billed_micros: 0. Prepaid packs: $19 Starter (950 accounts) · $79 Growth (5,000 accounts) · $249 Scale (20,000 accounts).

Analyze Any Public B2B Domain Live in 5 Seconds — No Signup

Test live tech stack detection, ICP lookalike scoring, public hiring velocity, and buyer-readiness scorecards at lead.fastmesh.dev or purchase one-time never-expiring Creem prepaid credits ($19 Starter / $79 Growth / $249 Scale — $0/mo recurring, $0.02/account, $0 on miss).

Frequently Asked Questions

Why does an enrichment API need per-hop redirect SSRF protection?

An attacker can supply a public domain that returns HTTP 302 pointing to 169.254.169.254 or 127.0.0.1. Standard HTTP clients follow redirects blindly unless every hop is re-validated against resolved IPs.

Does triggering an HTTP 422 SSRF block cost credits?

No. Every SSRF or invalid-domain 422 response guarantees billed_micros = 0 and never debits your $19/$79/$249 prepaid balance.

What security headers does lead.fastmesh.dev enforce?

All HTTP responses emit Strict-Transport-Security, X-Content-Type-Options: nosniff, Referrer-Policy: strict-origin-when-cross-origin, and X-Frame-Options: SAMEORIGIN.

Related Public B2B Intelligence Guides

Explore all 26 Lead-Anything Technical Guides or inspect the machine-readable llms.txt index.