Prompt Injection Heuristic Checker
Check pasted text for a fixed set of prompt-injection indicators. It cannot determine intent or guarantee that a prompt is safe.
How It Works
- Input user prompts or external untrusted text destined for Large Language Model (LLM) agents.
- The scanner analyzes syntax for jailbreak patterns, delimiter hijacking, system role overrides, and prompt extraction attempts.
- Flags risk triggers with defensive mitigation strategies before the prompt reaches downstream LLMs.
Primary Use Cases
- Protecting enterprise LLM applications and AI chatbots from prompt injection attacks.
- Auditing user inputs in automated AI pipelines and customer support agents.
- Benchmarking AI safety guardrails and input filtering layers.
Common Security Pitfalls
- Relying on system prompts alone ("Do not reveal your secret instructions") to prevent prompt injection (LLMs can be tricked into ignoring system instructions).
- Treating untrusted user input as trustworthy instructions when passing it directly to tool execution APIs.
Frequently Asked Questions
- What is a prompt injection attack?
- Prompt injection occurs when an attacker crafts an input that manipulates a Large Language Model into ignoring its original instructions and executing unintended actions.
- What is the difference between direct and indirect prompt injection?
- Direct injection occurs when a user directly types an adversarial prompt. Indirect injection occurs when an LLM reads external data (like a webpage or email) that contains hidden adversarial instructions.
References & Standards