Agents and AutomationLesson 38 of 72

Module 5 · Permissions, injection and blast radius

The email that tells your agent what to do

In this lesson

  • 10 min read
  • 7 reading sections
  • Knowledge check
  • Lesson 1 of 9 in this chapter

This chapter’s goalDraw the permission boundary for an automation: name what it may touch, what somebody writing into its inputs could make it do, and which actions must stop for a person.

This chapter’s media

The film explains chapter ideas. The audiobook narrates the complete teaching text.

FormatEnglishहिंदी
Chapter filmNot availableNot available
Full audiobookNot availableNot available
The three legs. Any two are usually survivableAccess to private dataCustomer records, the inbox, the repository,whatever the database role you granted can read.Exposure to untrusted contentA ticket, a web page, a README, a calendar invite, afilename, the metadata inside a PDF.A way to communicate outwardsSending email, writing a file somebody else reads,or any request to a host you did not allowlist.Simon Willison’s framing. The exploit is a paragraph of English anybody can write, so the fix is toremove a leg rather than to add a sentence to the prompt: draft instead of send, or allowlist thedestinations.
Simon Willison's framing. The exploit is a paragraph of English anybody can write, so the fix is to remove a leg rather than to add a sentence to the prompt: draft instead of send, or allowlist the destinations.

Figure 5.1

A little at a time

Explore an idea, try it, then check what stays.

Step 1 of 8Free · no account needed
Lesson steps

Instructions and data arrive in the same pipe

Everything the model reads is one stream of text. Your system prompt, the user’s question, the contents of a support ticket, the body of a web page, the README of a repository: all of it lands in the same context, and there is no syntax that marks a region as “data, do not obey”.

That is not an implementation gap somebody will fix next quarter. It is what the architecture is.

Your place and first choices stay on this browser. Classroom credit is recorded separately.

Every lesson here is open. Your progress is recorded once you pass the Context Engineering exam.

Stuck on something?Ask Mai, your AI tutor

How to cite: Addaly (2026) ‘The email that tells your agent what to do’, in Agents and Automation. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/agents-and-automation/prompt-injection-in-agents (Accessed: 29 November 2026).