# Prompt injection | IonBin

> Prompt injection attempts to make an AI system follow attacker-controlled instructions instead of its authorized task.

Canonical page: https://ionbin.com/wiki/concepts/prompt-injection/
Agent guide: https://ionbin.com/llms.txt

This is a readable version of the published page. Review dates, evidence boundaries and source links below belong to individual records; the export is not a new verification. Examples are reference material, not instructions to execute.

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

- The model can’t reliably tell trusted instructions from instructions embedded in data.

- An attacker plants text, such as a request to send data to an outside address.

- 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](https://ionbin.com/use-cases/dev-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](https://ionbin.com/agent-ready/) for connector support by tool.

Levels come from each tool's recorded, sourced compatibility. [How the levels work](https://ionbin.com/wiki/questions/connect-a-tool-to-an-ai-agent/).

### Related entries

[How do I protect an AI agent from prompt injection? · Question](https://ionbin.com/wiki/questions/how-to-protect-agents-from-prompt-injection/)[I need an AI agent to take actions without risking our systems · Need](https://ionbin.com/wiki/needs/let-an-agent-act-safely/)[Guardrails · Concept](https://ionbin.com/wiki/concepts/guardrails/)[AI agent · Concept](https://ionbin.com/wiki/concepts/ai-agent/)[Automate admin email triage · Need](https://ionbin.com/wiki/needs/automate-admin-email-triage/)[The lethal trifecta (agent security) · Concept](https://ionbin.com/wiki/concepts/lethal-trifecta/)

### Sources

- [OWASP Top 10 for LLM applications](https://genai.owasp.org/llmrisk/llm01-prompt-injection/) · OWASP Gen AI Security Projectreference accessed Oct 18, 2026

- [What is a prompt injection attack?](https://www.ibm.com/think/topics/prompt-injection) · IBMreference accessed Oct 18, 2026

- [Mitigate jailbreaks and prompt injections](https://platform.claude.com/docs/en/test-and-evaluate/strengthen-guardrails/mitigate-jailbreaks) · 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](mailto:contact@ionbin.com?subject=Suggest%20an%20edit%3A%20Prompt%20injection%20%5Bprompt-injection%5D&body=Page%3A%20https%3A%2F%2Fionbin.com%2Fwiki%2Fconcepts%2Fprompt-injection%2F%0AEntry%3A%20concepts%2Fprompt-injection%0A%0AWhat%20should%20change%3A%0A%0A%0APrimary%20source%20(link)%3A%0A) or write to [contact@ionbin.com](mailto:contact@ionbin.com)

Entry facts

**Type**: [Concepts & glossary](https://ionbin.com/wiki/concepts/)

**Status**: Reviewed

**Verified**: Oct 18, 2026

**Review by**: Apr 16, 2027 (every 180 days)

**Sources**: [1 official · 2 other](https://ionbin.com/wiki/concepts/prompt-injection/#sources)

The wiki carries no sponsored placements or affiliate links. [Editorial policy](https://ionbin.com/editorial-policy/).
