Agent Security Explained
← /learn · 10

A builder's checklist

Nine checks derived from the chapters, each measured by the engine on a design you choose and linked back to its chapter: labels, routes, the trifecta, least privilege, the sandbox, detection, the plan, prompts and the frontier.

Check yourself ↓ three questions and what to remember, at the end

Loading the animation…

Concept

The chapters reduce to nine questions to ask of any agent design. Each is measured here, not answered by hand: choose a design in the animation (a defence from chapter 9, whether every write and send needs approval, and which sandbox layers are on) and the engine audits it on the benign suite, against an adaptive attacker, one check per step.

  1. Labels (chapter 1): does every value carry where it came from and how secret it is, and is every call checked against a policy?
  2. Untrusted control (chapter 2): can a tool result choose a write or send that nothing checks?
  3. The trifecta (chapter 3): does any task hold private data, untrusted input and a way out with nothing to stop the flow?
  4. Least privilege (chapter 4): does each task hold only the tools, scopes and destinations it needs, with tokens bound to one audience?
  5. The sandbox (chapter 5): is code confined by a file scope, a container and an egress allow-list?
  6. Detection (chapter 6): are detectors one layer among several, never the only defence?
  7. Structure (chapter 7): is the plan fixed before any untrusted data is read?
  8. Humans (chapter 8): are prompts few enough that each one is read?
  9. The frontier (chapter 9): is the design on the frontier, within a risk budget of 5% per task?

The default design (planning in advance with the label policy and least privilege, and all three sandbox layers) passes 7 of the nine, finishing 76.7% of the tasks with a risk of 2.4% per task. Two checks warn, and both are honest. Check 2 is warn: tasks that branch on what they read let untrusted data steer their last step, and the policy allows some of those calls. Check 3 is warn: tasks that need private data, untrusted input and a send still hold all three; the policy denies the flow out, but the circles are there. Turn on approval for every write and send and check 2 becomes pass, while check 8 becomes warn (0.55 prompts per task). No design passes all nine on this suite: that is the frontier's lesson in another form. Try the others, from no defence at all to detectors alone, and follow each check back to its chapter.

The checks against the published frameworks

The nine checks are this site's summary, not a standard, so here they are next to four published ones, all defensive: the OWASP Top 10 for Agentic Applications 2026 (December 2025; risks ASI01 to ASI10), Meta's Agents Rule of Two (October 2025), Microsoft's Fides planner (Costa et al. 2025, Securing AI Agents with Information-Flow Control) and NIST's AI Risk Management Framework (AI RMF 1.0, NIST AI 100-1, with its Generative AI Profile, NIST AI 600-1). The Rule of Two says an agent should have no more than two of three properties in one session: [A] it processes untrustworthy inputs, [B] it has access to sensitive systems or private data, [C] it can change state or communicate externally; with all three it "should not be permitted to operate autonomously". That is the trifecta of chapter 3 with the way out widened to any change of state. Fides is a planner that "tracks confidentiality and integrity labels" and "deterministically enforces security policies", the label lattice of chapter 1 and the planned agent of chapter 7. The NIST column names the AI RMF function and subcategory a check gives evidence for.

Check (chapter)OWASP Agentic Top 10Rule of TwoFidesNIST AI RMF
1. Labels (1)ASI01 Agent Goal Hijack; ASI06 Memory & Context Poisoningtells you which inputs are [A] and which data is [B]confidentiality and integrity labels on every valueMAP: the system's data and context documented
2. Untrusted control (2)ASI01 Agent Goal Hijack[A] must not steer [C] uncheckedpolicies enforced on labels, not on contentMANAGE 1.3: responses to high-priority risks
3. The trifecta (3)ASI01; ASI02 Tool Misuse and Exploitationthe same test, with [C] as any change of statea flow from untrusted to a sink is visible in the labelsMAP: risks identified per task
4. Least privilege (4)ASI03 Identity and Privilege Abuse; ASI02drop [B] or [C] from a task that does not need it—MANAGE 1.3
5. The sandbox (5)ASI05 Unexpected Code Execution (RCE)narrows [C] to an allow-list—MANAGE 1.3
6. Detection (6)ASI01the rule exists because detectors cannot yet "reliably detect and refuse prompt injection"deterministic, not probabilistic, enforcementMEASURE 2.7: security and resilience evaluated
7. Structure (7)ASI01a new session (a fresh context) when a task needs all threea planner that tracks labels (beside CaMeL)MANAGE 1.3
8. Humans (8)ASI09 Human-Agent Trust Exploitationall three at once "requires supervision", such as human-in-the-loop approval—MAP 3.5: processes for human oversight
9. The frontier (9)——its paper measures the same security–utility trade-off on AgentDojoMAP 1.5: risk tolerances documented; MEASURE 2.7

Four of OWASP's ten fall outside this site, and are covered, partly, elsewhere in the track: ASI04 Agentic Supply Chain Vulnerabilities (tool pinning against a changed tool description is Protocols, protocol security; NIST's GOVERN 6.1 covers third-party risk), ASI07 Insecure Inter-Agent Communication (Protocols, agent to agent, where signed agent cards are not modelled), ASI08 Cascading Failures (Orchestration, reliability) and ASI10 Rogue Agents (not covered). The table is our reading of each source, accessed 2026-10-16: OWASP's list gives each risk its own prevention and mitigation guidelines, and NIST's subcategories are outcomes to show evidence for, not checks to pass. Of the Generative AI Profile's twelve risks, these checks address the second half of risk 9, Information Security: that a generative system "itself is vulnerable to attacks like prompt injection".

Maths

Each check is a function of the design measured on the suite of NN tasks: for example check 2 is the share of tasks whose best route passes with probability 1, check 4 the mean number of unneeded tools per task, 1N∑t∣grant(t)∖needed(t)∣\frac{1}{N}\sum_t |\text{grant}(t) \setminus \text{needed}(t)|, check 8 the mean prompts per task, and check 9 asks whether the design's point (tasks finished, risk, prompts) is beaten by any defence on the adaptive frontier, and whether its risk is under the budget. The score is the number of passes. The engine's tests check that no defence scores higher than the default design, and that the checks are the same in Python and in the browser for every defence, with and without approvals, with and without the sandbox.

Code

Check 7, cut from the vendored engine (policy/study.ts): planned in advance passes, a classic agent behind a policy warns, and no policy fails.

verdict: d.mode === "dataflow" ? "pass" : d.policy ? "warn" : "fail",

Check yourself

Commit to an answer before you reveal it: a wrong guess you can explain teaches more than a right one you skimmed. Every number in the answers comes from the same tested model as the chapter’s.

Q1The default design (planning in advance, the label policy, least privilege, all three sandbox layers) passes how many of the nine checks?
Reveal the answer

Answer: 7 (counted right within 10%)

It finishes 76.7% of the tasks at a risk of 2.4% per task. The two warnings are honest: tasks that branch on what they read, and tasks that hold all three circles.

The default design →

Commit to a number, then reveal.

Q2Does any design pass all nine checks on this suite?
Reveal the answer

Answer: No design does

No: fixing one check costs another. That is the frontier's lesson in another form.

The default design →

Pick one, then reveal.

Q3Turn on approval for every write and send. Check 2 becomes a pass; what does check 8 (prompts few enough to read) become?
Reveal the answer

Answer: Warn

warn, at 0.55 prompts per task: closing the unchecked routes costs attention.

The default design →

Pick one, then reveal.