injection-detector

v0.1.2
io.github.viridis-security/injection-detector Checked 12 hours ago Published 6 hours ago

Formally-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.

ParameterTypeDescription
input *stringThe untrusted text/data to screen.
agentIdstringOptional: for MCP-01 envelope cross-check.
certaintystringOperating point. Default standard.
contextstringOptional: 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.

ParameterTypeDescription
targetNamestringOptional display name for the assessed target.
traceobjectSingle agent trace with user_prompt, allowed_tools, and events[].
tracesarrayOptional batch of agent traces.