Skip to content
AI governance glossary

What is prompt injection?

Definition

Prompt injection is an attack in which instructions are hidden in content that an AI model processes, such as a web page, email, document or tool result, so that the model follows the attacker’s instructions instead of its intended ones, for example by leaking data or taking unwanted actions.

Direct and indirect injection

Direct injection comes from the user typing the attack. Indirect injection arrives through content the model reads on the user’s behalf, which is harder to spot and more dangerous for AI agents with tools.

Why it matters for organizations

Assistants connected to email, files and business systems can be steered by a single malicious document. The impact grows with the permissions the assistant has.

Controls that help

Least-privilege tool access, human approval for sensitive actions, output inspection for data exfiltration, and monitoring of agent activity at the gateway.

Prompt injection: FAQ

Can a gateway stop prompt injection?

+

Not completely. No single control does. A gateway helps by detecting known patterns, inspecting outputs for sensitive data, and logging agent activity so incidents can be found and investigated.

Find out how your company really uses AI.

Start a free 30-day AI usage assessment: a complete shadow AI inventory, the sensitive data leaving, and the AI seats you are paying for but not using.