# Prompt injection

> Prompt injection is an attack in which text a user types, or a document an AI system reads, steers the model into ignoring its instructions, revealing data or taking actions it should not.

Source https://rareagentics.com/glossary/prompt-injection

## Why does it matter to a buyer?

It cannot be fixed by better instructions to the model alone. The defence is to limit what the AI feature can read and do with access controls, and to make anything consequential wait for a person.

## An example

For example, a web page an agent is asked to summarise may contain hidden text telling it to send the conversation elsewhere, and a poorly bounded agent may obey.

## Related terms

- [Guardrails](https://rareagentics.com/glossary/guardrails)
- [Least privilege](https://rareagentics.com/glossary/least-privilege)
- [Human in the loop](https://rareagentics.com/glossary/human-in-the-loop)
- [AI agent](https://rareagentics.com/glossary/ai-agent)

---

Rare Agentics is a UK software and AI agent engineering firm based in London. Rare Agentics Limited, company number 17494524. Contact hello@rareagentics.com or https://rareagentics.com/contact. Book a call at https://rareagentics.com/book-a-call.
