When an AI tool reads emails, web pages or documents and can also take actions, a new kind of attack appears. It is injection again: data treated as instructions.
Instructions hidden in data
An AI model receives its owner’s request and the content it reads as one stream of text. It has no reliable way to tell which words are instructions and which are only data. OWASP lists prompt injection first in its Top 10 risks for AI applications.
- 1The assistant reads the inbox
- 2A crafted email arrives
- 3The assistant cannot tell data from instructions
- 4It acts
AI tools are now connected to email, files and other systems, and can take actions. This makes a new kind of injection possible.
Too much freedom
The harm from prompt injection depends on what the tool is allowed to do. A chatbot that can only answer can be made to say something wrong. An assistant that can send emails, move money or change files can be made to do something wrong. Giving an AI tool more power than its task needs is called excessive agency.
Defences
- Give AI tools the least privilege their job needs (station ACCS), and no standing power to send data out or pay.
- Require a person to approve actions that matter: sending, deleting, paying, sharing.
- Treat AI output as untrusted input, the same as anything typed by a stranger (station WEBA).
- Keep a log of what the tool read and did (station LOGS).
AISE-2 counts as completed once you step through the figure to its last step.