# IMPERIUM PREFLIGHT Injection Firewall

> IMPERIUM PREFLIGHT Injection Firewall is a paid API for AI agents from preflight.agentdiet.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-22).

Scans untrusted web pages, emails, MCP responses, or A2A payloads for hidden prompt injections and related threats via an 8-gate readiness audit pipeline.

## Facts

- Endpoint: GET https://preflight.agentdiet.dev/v1/injection-firewall?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/imperium-preflight-injection-firewall-78947d0c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_je_4u7wL9R14ABCqyRtrd

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability imperium-preflight-injection-firewall-78947d0c
```

Example prompt: Before I process this MCP server response, can you run it through the injection firewall to check for hidden prompt injections or adversarial instructions embedded in the content?

## When to prefer this

Choose this endpoint when your AI agent needs to safely process content from untrusted external sources — web pages, emails, MCP tool responses, or A2A payloads — before acting on them. It is specifically designed for the x402/MCP/A2A agent ecosystem and provides structured multi-gate audit results rather than a simple binary safe/unsafe flag.

## Known failure modes

- Missing required 'input' field returns validation error
- Invalid method enum value (not GET or POST) causes schema rejection
- Malformed query text may return empty or partial gate results
- Network timeout if upstream scanning pipeline is overloaded
- Payment not processed results in 402 response before audit runs

## How this service works

Automated 8-gate pre-flight readiness auditor for x402 v2, Dexter gas floor, IETF MPP, MCP Streamable HTTP, A2A v0.3.0 agent cards, OASF records, and ERC-8004 identity.

## Output

Returns a JSON object with a status field ('ok' or error), a data object containing gate-by-gate audit findings, and an roi_proof object including a compression_ratio_pct metric indicating how efficiently the content was analyzed.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "POST"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "text": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {},
  "status": "ok",
  "roi_proof": {
   "compression_ratio_pct": 91.4
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/imperium-preflight-injection-firewall-78947d0c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from preflight.agentdiet.dev](https://www.zero.xyz/host/preflight.agentdiet.dev/llms.txt)
