IonBin
All pages
Search
Concept

Prompt injection

Prompt injection attempts to make an AI system follow attacker-controlled instructions instead of its authorized task. It can arrive directly in a message or indirectly through retrieved pages, documents, images or tool results. OWASP lists it as LLM01 in its 2025 Top 10. Tool access can increase the consequences.

Verified Oct 18, 2026 Review by Apr 16, 2027 3 sources

What it is

IBM describes prompt injection as a cyberattack where malicious inputs are disguised as legitimate prompts, manipulating AI systems into leaking data or misbehaving. A direct injection comes from the user. An indirect injection hides in content the model processes, such as a web page or a file.

How it works

  1. The model can’t reliably tell trusted instructions from instructions embedded in data.
  2. An attacker plants text, such as a request to send data to an outside address.
  3. If the agent has tools (email, files, payments), the injected instruction may turn into a real action.

Benefits

Understanding the attack is what makes defenses possible:

  • It shapes safer agent design: least privilege, approvals and logging.
  • It explains why vendors separate system instructions from user content. Anthropic’s guidance adds screening inputs with a lightweight model and validating inputs.
  • It gives security teams a concrete checklist item (OWASP LLM01:2025).

Limits and risks

  • There’s no complete fix today. Defenses reduce the risk rather than remove it.
  • Combining private data, untrusted content and outbound actions creates a serious data-exposure path; restrict permissions and destinations independently of the model.
  • Filters can be bypassed by rephrasing.
  • Detection is not a permission boundary. Validate proposed actions and enforce access controls even when an input screen reports no attack.

Best-fit stacks

Stack 08

Dev, web & IT

Design, code, host and ship sites and internal tools, with an AI coding agent doing most of the typing.

Agent compatibility

Not tool-specific. See Agent-ready for connector support by tool.

Levels come from each tool's recorded, sourced compatibility. How the levels work.

Sources

  1. OWASP Top 10 for LLM applications · OWASP Gen AI Security Projectreference accessed Oct 18, 2026
  2. What is a prompt injection attack? · IBMreference accessed Oct 18, 2026
  3. Mitigate jailbreaks and prompt injections · Anthropicofficial accessed Oct 18, 2026

Practitioner views are restated in our words and labeled as views, not measured results. Product facts come from official sources dated above.

Suggest an edit

IonBin's wiki isn't user-edited. Corrections go to our Directory Curator, who checks them against primary sources before anything changes. Spot something wrong or out of date on “Prompt injection”? Email us with a link to a primary source.

Suggest an edit by email or write to contact@ionbin.com