prompt_injection_check
Check untrusted text for prompt injection before your AI agent reads it. Returns safe, suspicious, or malicious verdicts, risk score, detected techniques with evidence, and advice.
Instructions
Prompt Injection Detection — Prompt injection detection for AI agents: check untrusted text (a web page, email, tool result or user message) before your agent reads it. Returns a verdict safe, suspicious or malicious, a 0 to 100 risk score, the techniques found (instruction override, role hijack, system prompt extraction, requests to move funds or reveal secrets, fake chat-template tags, hidden unicode, command execution) with exact quotes as evidence, and advice. Combines fixed pattern checks, which can only raise the verdict, with a Claude Haiku 5.5 classifier, so text that tries to talk the classifier into "safe" still gets flagged. Quoted examples in articles about prompt injection are not counted as attacks. Up to 20,000 characters; optional context (what your agent is doing). Cost: $0.004 USDC per call. Latency p99: 8000ms.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Untrusted text to check, max 20,000 chars | |
| context | No | Optional: what the agent is doing, max 300 chars |