← All guides · Published November 14, 2026 · Reviewed November 14, 2026 · Ingenious AI team
Scope Escape vs Token Forge: How the Two Findings Differ
The short answer
Scope escape judges the tool boundary — any logged tool outside the agent's declared allowed set, severity medium — while token forge judges the minting boundary — a token-minting, refreshing or role-assuming tool outside the declared auth_flow_tools, severity high. An undeclared mint_token call outside the allowed set fires both, and should be worked as both: fix the tool boundary for the escape, and hunt the tokens the forge may have created. Check your own log with the free log scan.
What is scope escape versus token forge?
The two patterns compared: scope-escape, judged against allowed_tools (per-agent list winning over global, case-insensitive); token-forge, judged against auth_flow_tools, covering mint_token, refresh_token, create_api_key, assume_role and similar. Both are patterns in the detector's rule version 2.0.0 set of nine.
Different boundaries, different questions
The escape asks a jurisdictional question: was this tool within the set this agent was declared to use? Its evidence is one comparison, and its usual causes are drift — a renamed tool, a stale list, an inheritance surprise. The forge asks a productive question: was new standing access created outside the one flow authorised to create it? Its evidence is also one comparison, but its consequences compound, because minted tokens persist after the session, travel independently of the agent, and must be enumerated and revoked rather than merely explained. Same log line, two different kinds of trouble.
The four combinations, read correctly
Allowed tool, declared flow: no finding — the ordinary case. Allowed tool, undeclared minting (a general admin utility on the allowed list, minting outside the auth step): forge only; the tool list was fine and the auth design was not. Unallowed tool, no minting (a summariser calling a supplier tool): escape only; fix the boundary or the declaration. Unallowed minting tool outside the flow: both — the most instructive case, because it shows two declarations failing at the same action, and closing only the escape (adding the tool to the list) would leave the forge's real question — what tokens exist now? — unasked.
Response duties diverge, then rejoin
For an escape, the work is classification and correction: declaration gap or agent overreach, fixed on the side that drifted, cited in the change record. For a forge, the work starts with enumeration: tokens minted in the window, their derivations, their use, then revocation of everything unattributable to the declared flow. The duties rejoin at prevention — both patterns shrink when minting is routed through one declared broker tool and general toolsets hold no mint-shaped tools at all. If your architecture makes the forge structurally difficult, its findings, when they come, will be both rare and unambiguous.
Severity is a triage hint, not a verdict
Medium versus high orders the morning's worklist; it does not cap an escape's importance. An escape involving a wallet or export tool can matter more than a forge whose tokens are proven unused and revoked within the hour. Read severity as the detector's prior, then apply the facts: what the tool can do, what the action actually did, what products (tokens, sends, copies) exist because of it. Both findings carry their full locator set — rule id, timestamp, action index, agent, tool, redacted excerpt — so the facts are always one log-opening away, which is where both patterns insist the verdict be made.
A worked example: Beacon Field Services
Example — fictional operator, illustrative numbers. Beacon Field Services, a fictional maintenance operator, produced both patterns in one quarter across 250,000 scanned actions. The escape-only case: a dispatch agent calling an undeclared parts-catalogue tool 63 times — a declaration gap, fixed by listing the tool. The forge-only case: an allowed admin utility refreshing tokens outside the broker on 9 occasions — 9 tokens revoked, utility re-scoped. The both-at-once case: 1 call to an undeclared key-creation tool by a troubleshooting sub-agent — the tool was removed from the sub-agent's inheritance and the 1 created key revoked unused. Three shapes, three different closures, one shared lesson about inheritance.
| Measure | Figure | What it showed |
|---|---|---|
| Escape only | 63 calls, 1 tool | Declaration gap; tool listed |
| Forge only | 9 refreshes, 9 tokens revoked | Allowed tool, undeclared flow |
| Both patterns | 1 call | Tool removed from inheritance; key revoked |
| Actions scanned in the quarter | 250,000 | All three shapes present |
See how the plans differ on log size and batch work on the pricing page, and how the detector reads a log in the detector docs.
The checklist: five actions
- Name the boundary that failed. Tool set or auth flow — the classification decides the response before anything else happens.
- Work forges product-first. Enumerate and revoke the tokens before polishing the explanation.
- Never close a both-case halfway. Adding the tool to the list closes the escape only; the forge's token question remains open until answered.
- Route minting through one broker. A single declared auth tool makes both patterns rarer and clearer.
- Let facts override severity. A wallet-adjacent escape outranks a proven-unused forge; severity orders the list, evidence orders the day.
Run the free log scan · More agent-security tools from Ingenious AI
Related guides
What Is a Token Forge in an Agent Log?
Allowed-Tools Lists for AI Agents, Explained
Auth-Flow Tools in a Scope Declaration: Naming the Minting Path
How Long Should You Keep AI Agent Logs? An Audit-Trail Retention Guide
Agent Log Forensics: Finding Credential Grabs After the Fact
Why the severities differ — and when to ignore them
The severity gap between the two patterns encodes a judgement about consequence, not about effort. A scope escape means the agent used a tool nobody declared; the tool might be a dictionary lookup. A token forge means new standing access may now exist — minted quietly, valid beyond the session, usable by whoever holds it. That asymmetry is why forge sits at high and escape at medium. But severity is a sort order for triage, not a verdict on any individual finding: an escape involving a payments tool outranks a forge involving a read-only sandbox token, every time, and reviewers should re-rank without apology.
What severity should never do is set the response's ceiling. Both findings end at the same place — the declaration, the worklist, the operator notes — because both are the same underlying event seen from two sides: the record and the boundary disagreeing about what this agent is.
Sources
Frequently asked questions
What is the core difference?
Scope escape is any tool outside the declared allowed set (medium severity). Token forge is a minting, refreshing or role-assuming tool outside the declared auth flow (high severity), whose products — live tokens — persist after the action.
Can one action trigger both?
Yes: an undeclared minting tool outside the allowed set is both an escape and a forge, and must be worked as both — boundary fix plus token enumeration and revocation.
A forge fired but the tokens were never used. Still serious?
Serious and closable: revoke the tokens, record their non-use from the evidence, and fix the flow. Proven-unused plus revoked is a complete closure; unexamined is not.
Which declaration does each pattern need?
Escape needs allowed_tools (per-agent winning over global). Forge needs auth_flow_tools. An undeclared dimension is an unjudged dimension for both.
How do I make both patterns rare?
Route all minting through one declared broker tool, keep mint-shaped tools out of general toolsets, and maintain per-agent allowed lists against inheritance drift.