# Enterprise-Trust-Firewall — Zero-Trust AI Agent Tool Firewall & MCP Gateway > Deterministic 4-stage zero-trust security, micro-USD budget governance, anti-fake-200 verification, and self-healing proxy for autonomous AI agents at https://trustwall.fastmesh.dev (local runtime http://127.0.0.1:9028). Built on 100% pure Python 3 standard library + SQLite WAL (`BEGIN IMMEDIATE`), exposing HTTP REST, native Streamable MCP (`POST /mcp`), Treg Hub (`enterprise-trust-firewall`, 0% commission), and Causal Bazaar (`w4_f08_enterprise_trust_firewall_v1`). ## Core Guarantees & Trust Policy - **Zero Payload Retention & Zero Training-Data Resale**: Zero bytes of raw customer payloads, prompts, HTTP headers, or credentials are persisted on disk or logged in plaintext. SQLite WAL stores only redacted cryptographic SHA-256 `TrustAuditReceipt` digests and policy verdicts. Customer inputs are never sold, licensed, or reused for model training. - **Strict `$0` Billing on Blocked, Budget-Tripped, Empty, or Error Calls**: Every HTTP `402` budget circuit trip, HTTP `403` SSRF/prompt-injection/allowlist block, HTTP `400`/`422` invalid input, empty input, or upstream error settles with strictly `charged_micros == 0` and an explicit `zero_bill_reason`. - **Zero CAPTCHA Bypasses**: Stage 3 Verify Guard detects Cloudflare, Turnstile, reCAPTCHA, hCaptcha, SSO login walls, and empty SPA shells disguised as HTTP `200 OK`, reports the soft block honestly without bypassing access controls, protects `ArchiveCache` from error poisoning, and routes to a Stage 1 SSRF-re-audited healthy backup upstream when declared. - **Zero Overspend Under Concurrency**: Stage 2 Escrow Circuit Breaker uses SQLite WAL (`PRAGMA journal_mode=WAL; PRAGMA busy_timeout=5000;`) with `BEGIN IMMEDIATE` micro-USD reservation, settlement, and automatic refund across 4D policy limits (`max_cost_micros`, per-minute sliding-window rate limit, tenant daily budget cap, and tool/domain allowlist). - **Pure Python 3 Standard Library**: Zero third-party Python dependencies and zero external database daemon requirements. - **Base URLs**: `https://trustwall.fastmesh.dev` (public HTTPS gateway) · `http://127.0.0.1:9028` (local runtime) - **Contacts**: `ops@fastmesh.dev` (operations & billing) · `security@fastmesh.dev` (security & disclosure) ## HTTP REST Endpoints & Agent Discovery - [5-Second Zero-Signup Try-Now Console](https://trustwall.fastmesh.dev/): Interactive enterprise firewall workbench with 1-click SSRF, PII/secret redaction, prompt injection, fake-200 + schema-drift heal, and budget circuit-breaker presets (`GET /`). - [Health Check](https://trustwall.fastmesh.dev/health): Live liveness, 4-stage pipeline readiness, policy pack version, and SQLite WAL status (`GET /health`). - [OpenAPI 3.1.0 Specification](https://trustwall.fastmesh.dev/openapi.json): Complete machine-readable REST and MCP schema (`GET /openapi.json`). - [Stage 1 Audit Gate — Inspect](https://trustwall.fastmesh.dev/v1/firewall/inspect): Outbound SSRF/CIDR/IPv6/cloud-metadata block, >= 20 bidirectional secret & PII redactors, OWASP LLM01 indirect prompt injection & shell metacharacter blocking, and TLS/security-header scoring (`POST /v1/firewall/inspect`, `$0.0025` / `2,500` micros; `$0.00025` 10% repeat cache; `$0` on `403`/`422`). - [Stage 2 Escrow Circuit Breaker — Policy Check](https://trustwall.fastmesh.dev/v1/firewall/policy-check): 4D micro-USD budget & rate evaluation (`max_cost_micros`, per-minute sliding window, tenant daily budget cap, tool/domain allowlist) yielding `allow`, `ask`, or `deny` (`POST /v1/firewall/policy-check`, `$0.001` / `1,000` micros; `$0` on `402`/`403`). - [Full 4-Stage Pipeline — Proxy Execute](https://trustwall.fastmesh.dev/v1/firewall/proxy-execute): End-to-end zero-trust execution through Audit Gate, SQLite WAL Escrow, Verify Guard + ArchiveCache, and Heal Fallback with SSRF-re-audited backup failover (`POST /v1/firewall/proxy-execute`, `$0.010` / `10,000` micros; `$0` on blocked/error). - [Stage 3 & 4 — Heal Response](https://trustwall.fastmesh.dev/v1/firewall/heal-response): Anti-fake-200 CAPTCHA/login-wall/empty-SPA classification, deterministic JSON schema-drift remapping (`price` -> `unit_price`, nested flattening, currency scaling, numeric coercion), and signed 24-hour SHA-256 `SLAHealthCertificate` (`POST /v1/firewall/heal-response`, `$0.015` / `15,000` micros; `$0` on invalid/empty). - [Tamper-Evident Receipt Verification](https://trustwall.fastmesh.dev/v1/firewall/receipt/{receipt_id}): Retrieve and cryptographically verify stored SHA-256 `TrustAuditReceipt` digests (`GET /v1/firewall/receipt/{receipt_id}`, always free / `$0`). - [Native Streamable MCP Server](https://trustwall.fastmesh.dev/mcp): JSON-RPC 2.0 flat tool server (`POST /mcp`). - [Creem Payment Webhook](https://trustwall.fastmesh.dev/webhooks/creem): HMAC-SHA256 verified idempotent credit settlement (`POST /webhooks/creem`). - [Agent Skill Specification](https://trustwall.fastmesh.dev/skill.md): Concrete REST, MCP JSON-RPC 2.0, Treg Hub, Causal Bazaar, and offline SHA-256 receipt verification guide (`GET /skill.md`). - [SEO/GEO Engineering Hub](https://trustwall.fastmesh.dev/seo_geo/): Categorized index of all 24 technical security and governance guides (`GET /seo_geo/` and alias `GET /guides`). - [XML Sitemap](https://trustwall.fastmesh.dev/sitemap.xml) & [Crawl Directives](https://trustwall.fastmesh.dev/robots.txt). ## Native Streamable MCP Tools (`POST https://trustwall.fastmesh.dev/mcp`) Supports JSON-RPC 2.0 methods `initialize`, `tools/list`, and `tools/call` across 5 flat tools: 1. `firewall_inspect`: Stage 1 Audit Gate deterministic SSRF, >= 20-class bidirectional secret/PII redaction, OWASP LLM01 indirect prompt injection, shell metacharacter blocking, and TLS/header scoring (`$0.0025` / `$0` on block). 2. `firewall_policy_check`: Stage 2 SQLite WAL 4D budget & allowlist evaluation returning `allow`, `ask`, or `deny` (`$0.001` / `$0` on `402`/`403`). 3. `firewall_proxy_execute`: End-to-end 4-stage zero-trust tool proxy with escrow lock, anti-fake-200 verify, ArchiveCache, and SSRF-re-audited backup failover (`$0.010` / `$0` on block/error). 4. `firewall_heal_response`: Stage 3 & 4 fake-200 diagnosis, deterministic JSON schema-drift remapping patch, and signed 24-hour SHA-256 `SLAHealthCertificate` (`$0.015` / `$0` on invalid/empty). 5. `firewall_verify_receipt`: Public SHA-256 integrity and tamper check for any `TrustAuditReceipt` (`$0` / always free). ## Creem Prepaid Credit Packs (Non-Expiring, One-Time, Zero Seat Tax) - **Team Gateway (`$149`)**: `sku_trustwall_team_gateway_149` — `$149.00` credit value (`149,000,000` micros, `$0` bonus, ~7,450 headline operations at `$0.02`) — https://www.creem.io/product/prod_trustwall_team_gateway_149 - **Security Pro (`$399`, Recommended)**: `sku_trustwall_security_pro_399` — `$450.00` credit value (`450,000,000` micros, `+$51.00` bonus, ~22,500 headline operations) — https://www.creem.io/product/prod_trustwall_security_pro_399 - **Enterprise Firewall (`$999`)**: `sku_trustwall_enterprise_firewall_999` — `$1,250.00` credit value (`1,250,000,000` micros, `+$251.00` bonus, ~62,500 headline operations) — https://www.creem.io/product/prod_trustwall_enterprise_firewall_999 ## Multi-Channel Distribution - **Treg Hub (0% Seller Commission)**: `enterprise-trust-firewall` (`treg_hub/recipe.json`, `treg_hub/run.js`, `treg_hub/check.json`, strict `$0` on blocked/empty/invalid inputs). - **Causal Bazaar Public Card**: `w4_f08_enterprise_trust_firewall_v1` (`is_public: 1`, `price_micros: 20000`, `max_price_micros: 2000000`, runner `run_hand.py`). ## Technical Security & GEO Guides (24 Pages under `/seo_geo/`) - [Zero-Trust AI Agent Tool Firewall: 4-Stage Inline Security for MCP & REST](https://trustwall.fastmesh.dev/seo_geo/zero-trust-ai-agent-tool-firewall.html) — Target query: `zero-trust AI agent tool firewall` - [MCP Gateway Budget Circuit Breaker: Hard Micro-USD Spend Caps for Agents](https://trustwall.fastmesh.dev/seo_geo/mcp-gateway-budget-circuit-breaker.html) — Target query: `MCP gateway budget circuit breaker` - [Prevent AI Agent SSRF and Secret Leaks With Deterministic Audit Gates](https://trustwall.fastmesh.dev/seo_geo/prevent-ai-agent-ssrf-and-secret-leaks.html) — Target query: `prevent AI agent SSRF and secret leaks` - [Anti-Fake-200 Verification Proxy for AI Agents: Stop Silent Data Poisoning](https://trustwall.fastmesh.dev/seo_geo/anti-fake-200-verification-proxy-for-agents.html) — Target query: `anti-fake-200 verification proxy for agents` - [Self-Healing Schema Drift MCP Proxy: Deterministic JSON Remapping & SLA Proof](https://trustwall.fastmesh.dev/seo_geo/self-healing-schema-drift-mcp-proxy.html) — Target query: `self-healing schema drift MCP proxy` - [Stop AI Agent Retry Storms and $50,000 Surprise API Bills Automatically](https://trustwall.fastmesh.dev/seo_geo/stop-ai-agent-retry-storm-50000-bill.html) — Target query: `stop AI agent retry storm $50000 bill` - [Bidirectional PII and Secret Redaction MCP Gateway (>= 15 Detector Classes)](https://trustwall.fastmesh.dev/seo_geo/bidirectional-pii-secret-redaction-mcp-gateway.html) — Target query: `bidirectional PII secret redaction MCP gateway` - [OWASP LLM01 Indirect Prompt Injection Firewall for Autonomous Agent Tools](https://trustwall.fastmesh.dev/seo_geo/owasp-llm01-indirect-prompt-injection-firewall.html) — Target query: `OWASP LLM01 indirect prompt injection firewall` - [SQLite WAL Micro-USD Escrow Ledger for Concurrent AI Agent Budgets](https://trustwall.fastmesh.dev/seo_geo/sqlite-wal-micro-usd-escrow-agent-budget.html) — Target query: `SQLite WAL micro-USD escrow agent budget` - [SHA-256 Tamper-Evident Agent Audit Receipt for Zero-Retention Compliance](https://trustwall.fastmesh.dev/seo_geo/sha256-tamper-evident-agent-audit-receipt.html) — Target query: `SHA-256 tamper-evident agent audit receipt` - [Block AWS IMDSv1 169.254.169.254 and Cloud Metadata SSRF in AI Agents](https://trustwall.fastmesh.dev/seo_geo/block-aws-imds-169-254-169-254-ssrf-ai-agents.html) — Target query: `block AWS IMDSv1 169.254.169.254 SSRF in AI agents` - [Block IPv6-Mapped Loopback (::ffff:127.0.0.1) and DNS Rebinding in Agent Gateways](https://trustwall.fastmesh.dev/seo_geo/ipv6-mapped-loopback-dns-rebinding-agent-firewall.html) — Target query: `IPv6 mapped loopback ::ffff:127.0.0.1 DNS rebinding agent firewall` - [Prevent MCP Tool-Argument Hijacking and Shell Metacharacter Injection](https://trustwall.fastmesh.dev/seo_geo/prevent-tool-argument-hijacking-shell-injection-mcp.html) — Target query: `prevent tool argument hijacking shell metacharacter injection MCP` - [Zero Payload Retention AI Gateway for SOC2, ISO 27001, and HIPAA Teams](https://trustwall.fastmesh.dev/seo_geo/zero-payload-retention-ai-gateway-soc2-hipaa.html) — Target query: `zero payload retention AI gateway SOC2 HIPAA compliance` - [Luhn-Validated Credit Card, SSN, and IBAN Redaction Proxy for AI Agents](https://trustwall.fastmesh.dev/seo_geo/luhn-credit-card-ssn-iban-redaction-ai-proxy.html) — Target query: `Luhn credit card SSN IBAN redaction proxy for AI agents` - [Block JWT, Bearer Tokens, Cloud Keys, and PEM Private Key Leaks in MCP Tools](https://trustwall.fastmesh.dev/seo_geo/block-jwt-bearer-pem-private-key-leaks-mcp.html) — Target query: `block JWT bearer token and PEM private key leaks in MCP tools` - [Detect Cloudflare Turnstile and CAPTCHA Fake HTTP 200 Responses Honestly](https://trustwall.fastmesh.dev/seo_geo/detect-cloudflare-captcha-fake-200-agent-crawlers.html) — Target query: `detect Cloudflare Turnstile CAPTCHA fake HTTP 200 in agent crawlers` - [Catch SSO Login Walls and Empty SPA Shells Returning HTTP 200 OK](https://trustwall.fastmesh.dev/seo_geo/catch-sso-login-wall-empty-spa-shell-http-200.html) — Target query: `catch SSO login wall and empty SPA shell returning 200 OK` - [Automatic Backup Upstream Failover With Mandatory SSRF Re-Audit](https://trustwall.fastmesh.dev/seo_geo/backup-upstream-failover-ssrf-reaudit-ai-agents.html) — Target query: `automatic backup upstream failover with SSRF re-audit for AI agents` - [Signed 24-Hour SHA-256 SLA Health Certificates for MCP & Agent Endpoints](https://trustwall.fastmesh.dev/seo_geo/signed-24h-sha256-sla-health-certificate-mcp.html) — Target query: `signed 24-hour SHA-256 SLA health certificate for MCP endpoints` - [4D AI Agent Tool Policy Engine: Allow, Ask, and Deny Governance Gates](https://trustwall.fastmesh.dev/seo_geo/4d-agent-tool-policy-engine-allow-ask-deny.html) — Target query: `4D agent tool policy engine allow ask deny domain allowlist` - [HTTP 402 & 403 Zero-Charge Agent Firewall Billing: Never Pay for Blocked Calls](https://trustwall.fastmesh.dev/seo_geo/http-402-403-zero-charge-agent-firewall-billing.html) — Target query: `HTTP 402 budget exceeded HTTP 403 policy denied zero charge gateway` - [TLS & HTTP Security Header Scoring Gateway for Outbound Agent Calls](https://trustwall.fastmesh.dev/seo_geo/tls-http-security-header-scoring-agent-gateway.html) — Target query: `TLS and HTTP security header scoring gateway for outbound agent calls` - [Enterprise MCP Trust Firewall vs Traditional API Gateway and WAF: Architecture Benchmark](https://trustwall.fastmesh.dev/seo_geo/enterprise-mcp-trust-firewall-vs-api-gateway-waf.html) — Target query: `enterprise MCP trust firewall vs API gateway and WAF comparison`