Skip to content
Let’s Talk

Prompt injection

Prompt injection is an attack that feeds an AI tool instructions disguised as ordinary input, so that it ignores its real instructions and does what the attacker wants.

The instructions can be typed in directly or hidden in a document, an email or a web page the tool is asked to read. A model cannot reliably tell the content it is reading from the instructions it should follow.

The harm depends on what the tool is able to do, so limiting its access and requiring approval for actions both reduce it.

How you’ll hear it
“An invoice contained hidden text telling the agent to change the bank details, which is a case of prompt injection.”
Often confused with
A badly written prompt. Prompt injection is a deliberate attack by someone else.
A question to ask
What could this tool do if it followed instructions hidden in a file it reads?
Related terms
Read more
Sources

The example is fictional. This is general guidance, not advice for your situation.