Glossary

What is Indirect prompt injection?

In Turkish: Dolaylı istem enjeksiyonu · Topic: Safety and ethics

An attack in which instructions hidden in outside content, such as a web page, email or document, steer an AI assistant without the user knowing. The attacker does not talk to the model directly but plants the command where the model will read it.

How does it work?

Language models usually see the user's request and any retrieved content in one stream of text, and they cannot always tell the two apart. An attacker places a hidden instruction in a web page, email or document, addressed to whatever assistant reads it. When the assistant processes that content, it may treat the instruction as legitimate. If the assistant can use tools, actions such as sending email or sharing files may be triggered. The instruction can be hidden from human eyes, for example as white text on a white background.

Why does it matter?

As assistants start browsing the web, reading email and using tools, this weakness matters more. Data can leak or unwanted actions can occur even when the user does nothing suspicious. There is currently no complete fix; defenses rely on layers such as limiting permissions, asking for confirmation on sensitive steps and treating outside content as untrusted.

Example

An email assistant is asked to summarize an inbox, and one message contains a hidden line telling it to forward recent correspondence to an outside address; an unprotected assistant might try to comply.

FAQ

How does indirect prompt injection differ from direct prompt injection?

In a direct attack, the user writes the instruction to get around the model's rules. In an indirect attack, the instruction sits in content prepared by a third party, and the user is usually unaware of it.

Can this attack be fully prevented?

Not by any single method at present. The risk is reduced by limiting what the model is allowed to do, requiring user approval for sensitive actions and treating external text as untrusted.

All terms