IAEXPLAINED SIMPLY3 MIN

Prompt injection can make your AI assistant follow a stranger's instructions

Instructions planted in a page or document can redirect an agent. The damage depends on what it reads and, crucially, what its tools are allowed to do.

A padlock on a keyboard lit by red and green lights
Image: FlyD / Unsplash · Unsplash License
01

A source document tries to become an instruction

Indirect prompt injection tries to make an AI obey instructions planted in outside material. You might ask for a web-page summary, while the page contains instructions to alter the answer or disclose information. The failure happens when the assistant starts following that content instead of analyzing it for your request.

OWASP distinguishes direct and indirect injection. Direct attacks come through a message submitted to the model. Indirect attacks arrive through external material such as websites or files. The person using the assistant may never have written, or even noticed, the malicious instruction.

This is different from an ordinary factual mistake. Someone is trying to redirect the system through what it reads. An assistant can summarize many legitimate documents correctly while still being vulnerable to a document designed to interfere with the task.

Gloved hands typing on a laptop, illustrative photograph
Image: Towfiqu barbhuiya / Unsplash · Unsplash License
02

Permissions determine how far the attack can go

A chat without tools might produce a manipulated answer. An agent with access to private files or email could do more damage if it can also send messages or edit documents. The model name alone does not describe that risk. Its connected accounts and permitted actions matter too.

Anthropic separates model, environment and external-content defenses. A technical boundary that blocks a folder or an outbound connection can restrict consequences even when the model mishandles an instruction. Asking the assistant to be careful does not create such a boundary.

RAG does not make retrieved documents trustworthy. It selects relevant passages, and a hostile instruction may be part of a selected passage. Running AI locally changes where processing happens, but does not automatically make the material it reads safe.

A desk with a computer, headphones and papers beside a window
Image: ehsan ahmadnejad / Pexels · Pexels License
03

Check the setup before connecting private accounts

Use read-only access when the job only requires reading. Limit the connected accounts and files to what the task needs. Keep human confirmation before sending, deleting or publishing. Test the workflow with non-sensitive material before introducing private data.

At an approval prompt, inspect the recipient, attachments and information about to leave the account. A generic allow button that hides the action is not much help. Automated detection can catch some attempts, but Anthropic's account of its permission system explains why it combines defenses rather than relying on one model judgment.

Cancel an action you did not request and check which source the assistant just read. If private information has already left, disconnect the integration and inspect the activity log. Password changes are appropriate when a password or account access may have been compromised, rather than being a universal remedy for every suspicious document.

00

The conversation starts here

Sign in with a supporter account to comment. Sign in

Nobody has commented yet. Want to go first?

YOUR NEXT ROUTE

Keep following AI, security and power

If this story interests you, these three pieces are the best place to carry on.

OPEN THE FULL TOPIC
  1. 01Europe forces Google to open Android: ChatGPT, Claude or Perplexity will be able to truly replace GeminiIA · 4 MIN
  2. 02Europe fines Google €890 million. The number is the least of itIA · 4 MIN
  3. 03OpenAI and Anthropic want to slow Chinese AI. Jensen Huang thinks they are digging their own graveIA · 5 MIN

KEEP READING

You may also like

FRONT PAGE