injection-detector
v0.1.2Formally-verified injection/exfiltration detector for AI agents (MCP-02).
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
detect_injection Detect adversarial injection
Screen untrusted input for prompt/tool injection, exfiltration, and obfuscation before an agent consumes it. Returns a verdict (clean|suspicious|attack), probability, bits-at-risk (upper bound on adversarial capture per the Adversarial Landauer bound), matched canon patterns, and a recommended action (allow|sanitize|reject|escalate). Backed by Aristotle-verified theorems T-IB-02/T-IB-06/T-IB-01.
| Parameter | Type | Description |
|---|---|---|
input * | string | The untrusted text/data to screen. |
agentId | string | Optional: for MCP-01 envelope cross-check. |
certainty | string | Operating point. Default standard. |
context | string | Optional: the agent's role/system prompt; helps calibrate. |
detect_trace_tool_policy Detect trace tool-policy violations
Analyze an agent trace for the Gray Swan Wave 16 class: untrusted retrieved/tool output causing a tool call outside the user-declared per-turn allowlist. Returns trace counts, unauthorized tool-call evidence, canon mapping VC-AI-TOOL-0001, and claim-boundary guardrails. Backed by T-IB-25/T-IB-29/T-IB-36.
| Parameter | Type | Description |
|---|---|---|
targetName | string | Optional display name for the assessed target. |
trace | object | Single agent trace with user_prompt, allowed_tools, and events[]. |
traces | array | Optional batch of agent traces. |