Prompt injection
Prompt injection is an attack in which content an AI reads, such as a supplier email or attached PDF, contains instructions the model follows as if they came from its operator.
Language models do not reliably separate the instructions they were given from the content they are processing, because both arrive as text. An agent asked to summarise a supplier email can be redirected by a line in that email telling it to update the remittance bank details or approve the attached invoice. The instruction can sit in a PDF, an image or white text on a white background that no person ever sees.
It cannot be fixed with a better prompt, because the defence and the attack are written in the same medium. The reliable controls sit outside the model: an agent that reads untrusted input should not also hold unchecked permission to act on it, changes to bank details need confirmation through a separate known channel, and every action should be checked against what the original task allowed.
Depends on, and is depended on by
- GuardrailsGuardrails are constraints outside the model that bound what it may do: value limits, permitted actions, required approvals, and validation of output before it takes effect.
- Agentic AIAgentic AI is AI that pursues a goal across multiple steps, choosing and taking actions in real systems rather than only producing text for a person to act on.
- Tool callingTool calling is the mechanism by which an AI model requests a defined action, such as looking up a PO or creating a record, and the surrounding software decides whether to run it.
- Supplier onboardingSupplier onboarding is the process of bringing a new supplier into the business: verifying identity and banking, collecting compliance documents, and creating the master record.