AISE-2Lesson 2 of 210 min

Prompt injection and too much freedom

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.

Figure AISE-2.1An email that gives the AI orders
1/6

AI tools are now connected to email, files and other systems, and can take actions. This makes a new kind of injection possible.

Step 1 of 6

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.