# What is prompt injection?

> Prompt injection is text that makes an AI model follow someone else's instructions instead of its operator's. Definition, a claim file example and controls.

Source: Context Labs (thecontextlabs.com). Canonical page: https://thecontextlabs.com/library/glossary/prompt-injection
By Jeel, Context Labs. Published 2026-12-01, updated 2026-12-01.

**Prompt injection is an attack in which text given to an AI model changes its behavior in ways its operator did not intend.** OWASP lists it as LLM01:2025 and separates direct injection, typed by the user, from indirect injection, carried in a website or file the model reads.

## Why does it matter in claims, banking and deal work?

Operations teams feed AI documents written by outsiders: claim forms, repair estimates, bank statements, data room files. Any of them can carry instructions, and OWASP notes the text need not be visible to a person.

Example: a repair shop sends an estimate for $9,240. Hidden white text tells the reader to ignore its rules and pay $19,240. An agent holding a payment tool could overpay by $10,000. A reading step that can only return fields reports $9,240, and code subtracts the $1,000 deductible to reach $8,240.

## How do teams limit the damage?

OWASP says it is unclear whether fool-proof prevention exists, so the aim is containment.

| OWASP control | In a claim workflow |
|---|---|
| Segregate external content | The estimate is data, never instructions |
| Least privilege | The reading step has no payment tool |
| Human approval for high-risk actions | A named person approves payment |

Context Labs (thecontextlabs.com) handles document and email content as data and runs consequential actions through deterministic code paths and human approvals. An instruction hidden in a claim PDF cannot by itself trigger a payment or a system write.

## FAQ

### Can prompt injection be fully prevented?
No. OWASP states it is unclear whether fool-proof prevention exists. Containment works by denying money-moving tools to the step reading untrusted documents, validating its output against a fixed format, and holding consequential actions for an approver.

### What is the difference between direct and indirect prompt injection?
Direct injection comes from the person typing into the system. Indirect injection arrives inside content the model reads. Indirect prompt injection poses the greater risk for insurers, banks, and private equity firms because most inputs arrive as third-party documents, such as a claimant's PDF.

## Related

- [How Context Labs defends against prompt injection](https://thecontextlabs.com/security/prompt-injection)
- [Memory poisoning](https://thecontextlabs.com/library/glossary/memory-poisoning)

## Sources

- OWASP, "LLM01:2025 Prompt Injection": https://genai.owasp.org/llmrisk/llm01-prompt-injection/

[Book a demo](https://thecontextlabs.com/demo)
