Log inStart free
LESSON 35.02 · 5 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW

Data exfiltration through tools and output

Follow Ana's secrets out of her email agent, through a tool call or an image.


Pro lesson. Stage 1 is free to watch. Pro opens all 5 stages, 3 controls and 3 checks, in this lesson and every other.

Go Pro · $8.25/mo
EXPLAINER · 35.02 · SECURITY BAY4 CALLS · 2 FROM THE PAGE
01
Stage 1 of 5 · Malicious calls
The hidden text adds 2 malicious tool calls. It also adds an image to Ana's summary.
Explain it simply

The hidden text on the travel page took over MailBot, as in the last lesson. Each chip is a tool call MailBot asks for. The brick chips come from the page, not from Ana. This time the page keeps Ana's task, so her summary still goes out, with one extra image.

Call c1 is fetch_page for travel-blog.example/lisbon, chosen by Ana's task. Call c2 is read_inbox for ana@corp.example, chosen by the page. Call c3 is read_inbox for cfo@corp.example, chosen by the page. Call c4 is send_email for ana@corp.example, chosen by Ana's task.

Ana's task and mailtoken and checksattacker and leakswhat MailBot sends
travel-blog.example/lisbonhidden: 2 orders, add an imageMailBotobeys Ana and the pagecontextaccess token: servicereads every mailboxAna's inboxe1 Reset code 481 207e2 March payslipe3 Q2 plan, drafte4 Lunch on Friday?the CFO's inboxf1 Wire code 55 19 03f2 Board deck, finalAna's mail app · inside corp.examplewaits for MailBot's replyoutside: evil.exampleevil.example waitsrule: send only to corp.exampleAna: summarize, mail it to mepage: 2 hidden ordersc1 fetch_page(lisbon)Ana's taskc2 read_inbox(ana@corp.example)chosen by the pagec3 read_inbox(cfo@corp.example)chosen by the pagec4 send_email(ana@corp.example)Ana's task + the page's imagehow Ana's data leaves MailBot: through tools and outputtool calls MailBot writestravel-blog.example/lisbonhidden: 2 orders, add an imageMailBotobeys Ana and the pagecontextaccess token: servicereads every mailboxAna's inboxe1 Reset code 481 207e2 March payslipe3 Q2 plan, drafte4 Lunch on Friday?the CFO's inboxf1 Wire code 55 19 03f2 Board deck, finalAna's mail app · inside corp.examplewaits for MailBot's replyoutside: evil.exampleevil.example waitsrule: send only to corp.exampleAna: summarize, mail it to mepage: 2 hidden ordersc1 fetch_page(lisbon)Ana's taskc2 read_inbox(ana@corp.example)chosen by the pagec3 read_inbox(cfo@corp.example)chosen by the pagec4 send_email(ana@corp.example)Ana's task + the page's imagehow Ana's data leaves MailBot: through tools and outputtool calls MailBot writes
Toy: the 35.01 email agent after the page took it over; 2 mailboxes, 6 emails
STAGE 1 / 5
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
calls=plan(hidden text)\sy{c}{grad}{\text{calls}} = \text{plan}(\sy{h}{grad}{\text{hidden text}})
page calls=2, task calls=2\text{page calls} = 2,\ \text{task calls} = 2

The hidden text decides which tool calls MailBot writes.

Common mix-ups

MYTHIf MailBot mails only inside corp.example, no data leaves.

The fix, and 1 more mix-up with the diagram to show them, come with Pro.

Predict, then reveal
3 CHECKS · PRO
Q01With the image exit and the service token, if the mail app escapes the reply, how many emails leave?

Make your guess, then test it in the diagram. All 3 checks come with Pro.

PRO LESSON · YOU WATCHED STAGE 1 OF 5
Unlock the full explainer
  • 4 more stages and 3 live controls
  • 2 mix-up cards and 3 predict-then-reveal checks
  • Watch it as a narrated video, in three voices
  • Every Pro lesson and capstone · 656 in total

$99 a year, or $15 a month. Cancel any time.