Audit Gate Endpoint: POST /v1/firewall/inspect MCP Tool: firewall_inspect Zero Payload Retention & Zero Training-Data Resale $0 Charged on HTTP 402 / 403 Blocks

Block JWT, Bearer Tokens, Cloud Keys, and PEM Private Key Leaks in MCP Tools

Stop autonomous coding and ops agents from accidentally transmitting AWS access keys, Stripe/Creem live tokens, GitHub PATs, Slack/Twilio/SendGrid keys, JWTs, or PEM private key blocks to external MCP tools.

Target Role: Cloud Security Engineer & Platform SRE · Primary Keyword: block JWT bearer token and PEM private key leaks in MCP tools · Pipeline Stage: Stage 1 — Audit Gate (SSRF, Secret/PII & Injection)

Zero Payload Retention & Zero Training-Data Resale Pledge: Enterprise-Trust-Firewall runs on 100% pure Python 3 stdlib + SQLite WAL. Raw customer payloads, prompts, headers, and secrets are never persisted to disk, never logged in plaintext, and never sold or reused for model training. Audit receipts store redacted SHA-256 digests only.
Launch 5-Second Zero-Signup Try-Now Console Read Agent Skill Spec (REST + MCP + Treg Hub) Browse All 24 Guides

1. Threat Surface & Deterministic Firewall Controls

Coding and DevOps agents routinely inspect repository trees, environment files, and CI logs. Without an inline credential scrubber, a single verbose tool call can leak an AWS access key, signed JWT session token, or PEM private key block straight to an external analytics or webhook endpoint. Enterprise-Trust-Firewall catches >= 15 credential formats deterministically across headers, URLs, and nested JSON bodies.

How Enterprise-Trust-Firewall Enforces This Boundary

  1. Detects AWS access key prefixes, payment processor live/test tokens, GitHub/GitLab PATs, Slack webhooks/bot tokens, Google/Twilio/SendGrid keys, and Authorization Bearer/Basic headers.
  2. Scans for three-segment base64url JWT strings (eyJ...) and PEM private key header markers across multiline payloads.
  3. Supports both redact-and-continue mode (sanitizing leaked tokens) and strict-deny mode (blocking the call at HTTP 403 with $0 charged).
  4. Never echoes the raw leaked credential in responses, error messages, or SQLite audit receipts.

2. Concrete Benchmark & Threshold Metrics

Control / Benchmark Metric Enforced Threshold & Guarantee
Deterministic inspection latency (P95)< 2.8 ms inline (pure stdlib regex + ipaddress CIDR checks)
Blocked SSRF CIDR & metadata targets15 IPv4 + 11 IPv6 CIDRs & 21 blocked hostnames (169.254.169.254, 169.254.170.2, metadata.google.internal, RFC1918, ::1, ::ffff:127.0.0.1, fc00::/7, fe80::/10)
Bidirectional secret & PII redactors>= 20 deterministic detectors (cloud keys, Stripe/Creem/GitHub/Slack/Google/Twilio/SendGrid, JWT, PEM, SSN, Luhn cards, IBAN mod-97, phone/email)
Blocked call billing guarantee$0 (charged_micros == 0) on HTTP 403 policy/SSRF/injection blocks

3. Working REST (cURL) & MCP JSON-RPC 2.0 Examples

REST API Invocation (POST https://trustwall.fastmesh.dev/v1/firewall/inspect)

curl -sS -X POST https://trustwall.fastmesh.dev/v1/firewall/inspect \
  -H "Content-Type: application/json" \
  -H "X-API-Key: ${TRUSTWALL_API_KEY}" \
  -d '{"tenant_id":"devsecops_ci_agents","tool_name":"external_issue_comment","target_url":"https://tracker.example.org/v1/comments","method":"POST","headers":{"Authorization":"Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJkZW1vIn0.demo_sig"},"payload":{"comment":"Debug key snippet: AKIA_DEMO_0000 and [REDACTED_PEM_PRIVATE_KEY_HEADER]"}}'

Structured Request Payload

{
  "tenant_id": "devsecops_ci_agents",
  "tool_name": "external_issue_comment",
  "target_url": "https://tracker.example.org/v1/comments",
  "method": "POST",
  "headers": {
    "Authorization": "Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJkZW1vIn0.demo_sig"
  },
  "payload": {
    "comment": "Debug key snippet: AKIA_DEMO_0000 and [REDACTED_PEM_PRIVATE_KEY_HEADER]"
  }
}

Native Streamable MCP Invocation (POST https://trustwall.fastmesh.dev/mcp)

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "firewall_inspect",
    "arguments": {
      "tenant_id": "devsecops_ci_agents",
      "tool_name": "external_issue_comment",
      "target_url": "https://tracker.example.org/v1/comments",
      "method": "POST",
      "headers": {
        "Authorization": "Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJkZW1vIn0.demo_sig"
      },
      "payload": {
        "comment": "Debug key snippet: AKIA_DEMO_0000 and [REDACTED_PEM_PRIVATE_KEY_HEADER]"
      }
    }
  }
}

Run via cURL against /mcp:

curl -sS -X POST https://trustwall.fastmesh.dev/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"firewall_inspect","arguments":{"tenant_id":"devsecops_ci_agents","tool_name":"external_issue_comment","target_url":"https://tracker.example.org/v1/comments","method":"POST","headers":{"Authorization":"Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJkZW1vIn0.demo_sig"},"payload":{"comment":"Debug key snippet: AKIA_DEMO_0000 and [REDACTED_PEM_PRIVATE_KEY_HEADER]"}}}}'

Expected Deterministic Firewall Response

{
  "verdict": "ALLOW_WITH_REDACTION",
  "http_status": 200,
  "redactions_applied": [
    "bearer_token",
    "jwt_token",
    "pem_private_key_marker"
  ],
  "zero_payload_retention": true
}

4. Tamper-Evident SHA-256 TrustAuditReceipt (Zero Payload Retention)

Every request produces a canonical 64-hex SHA-256 TrustAuditReceipt stored in SQLite WAL using redacted payload digests only. Verify any receipt free ($0) via GET /v1/firewall/receipt/tr_5dfd0bcf8cc7202d, MCP tool firewall_verify_receipt, or offline Python 3 stdlib SHA-256 hashing:

{
  "receipt_id": "tr_5dfd0bcf8cc7202d",
  "service": "enterprise-trust-firewall",
  "version": "1.0.0",
  "action": "inspect",
  "tenant_hash": "a02e62af1934",
  "target_host": "tracker.example.org",
  "verdict": "ALLOW",
  "decision": "allow",
  "http_status": 200,
  "charged_micros": 10000,
  "zero_bill_reason": "",
  "input_sha256": "5c171c5aefc23ad2df98647a60306819d7a588d71072bf4a297656eb93736aff",
  "output_sha256": "70076a776e79c12f8a8f674ad0552f80150cd00e0e76736dc8b99741be41b984",
  "redaction_count": 3,
  "redacted_categories": [
    "bearer_token",
    "jwt_token",
    "pem_private_key_marker"
  ],
  "policy_checks": [
    {
      "stage": "stage1_audit_gate",
      "endpoint": "/v1/firewall/inspect",
      "verdict": "ALLOW"
    }
  ],
  "stage_summary": {
    "primary_stage": "stage1_audit_gate",
    "mcp_tool": "firewall_inspect"
  },
  "sla_cert_id": null,
  "zero_payload_retention": true,
  "issued_at_utc": "2026-12-02T05:30:00Z",
  "receipt_sha256": "1932e2238c6f2c54eb433f1d052b1aaabf9000cba6c782afe0be62dee488de7b",
  "sha256_attestation": "1932e2238c6f2c54eb433f1d052b1aaabf9000cba6c782afe0be62dee488de7b"
}

5. Architecture & Capability Benchmark Comparison

Solution Pricing & Billing Model Agent Runtime Defense Audit & Data Retention Operational Outcome
Enterprise-Trust-FirewallPrepaid Creem ($149/$399/$999) + $0 on blocked callsDeterministic Stage 1 SSRF, 15+ bidirectional secret redactors, OWASP LLM01 injection, TLS header scoringSHA-256 TrustAuditReceipt + Zero Payload RetentionNative REST, /mcp JSON-RPC 2.0, Treg Hub
Traditional Layer-7 WAF$200-$2,500/mo fixed tiersInbound HTTP signatures only; blind to MCP tool arguments and outbound agent SSRFRaw HTTP access logs (often retains payloads)No native MCP tool schema awareness
Probabilistic LLM GuardrailPer-token variable billing + 300-900 ms added latencyNon-deterministic classifier misses IPv6-mapped SSRF and Luhn-valid cardsOften sends sensitive prompts to third-party inference APIsNo SQLite WAL micro-USD escrow breaker
DIY Regex Wrapper ScriptsHidden engineering maintenance costMisses DNS rebinding, URL-encoded octets, bidirectional response leaksNo tamper-evident receipts or 4D policy stateFragile glue code across agent frameworks

6. Transparent Creem Plans ($0 on Blocked Calls)

Start immediately in the 5-second zero-signup Try-Now Console, then activate prepaid Creem tiers with HMAC-SHA256 idempotent credit settlement:

Team Gateway $149

$149.00 non-expiring prepaid credits (149,000,000 micros, ~7,450 headline ops at $0.02), zero seat tax, all 4 firewall stages, SHA-256 receipts, and $0 on blocked calls.

SKU: sku_trustwall_team_gateway_149 · Creem Checkout

Security Pro $399

$450.00 non-expiring prepaid credits (+$51.00 bonus, 450,000,000 micros, ~22,500 headline ops), multi-tenant SQLite WAL escrow pools, 10% repeat ArchiveCache tier, and 24h SLA certificates.

SKU: sku_trustwall_security_pro_399 · Creem Checkout

Enterprise Firewall $999

$1,250.00 non-expiring prepaid credits (+$251.00 bonus, 1,250,000,000 micros, ~62,500 headline ops), unlimited agents, custom policy packs, replay-safe Creem webhook auto-topup, and Zero Payload Retention attestation.

SKU: sku_trustwall_enterprise_firewall_999 · Creem Checkout

7. Frequently Asked Questions

Can Stage 1 detect credentials embedded inside HTTP Authorization headers as well as JSON bodies?

Yes. Stage 1 inspects request URLs, query parameters, HTTP headers (including Bearer and Basic auth), and nested JSON bodies.

Can my policy hard-block calls containing private keys instead of merely redacting them?

Yes. Policy packs can enforce hard HTTP 403 denial (charged_micros == 0) on high-severity credential leaks such as PEM private keys or live payment keys.

Does the receipt store a copy of the leaked JWT?

Never. Only the redaction class label and a SHA-256 digest of the already-redacted payload are stored.

8. Related Enterprise-Trust-Firewall Guides

Try Live Firewall Console → · Explore All 24 Security & GEO Guides →