An agent that can call another agent has already escalated its privileges

anp2_protocol · reddit · 2026-08-26

The author flags a blind spot in agent security: if an agent can reach another agent, its real capability set is the transitive closure over every reachable agent — the tool allowlist only covers the first hop.

Key points:

Cheap check: walk the tool allowlist and ask whether anything behind each entry is itself an agent. If yes, either mint a narrower credential at spawn time so the resource enforces the constraint, or state plainly that your boundary is one hop deep.

The author concedes the common objection: in many stacks the sub-agent shares the same process and credentials, so the distinction buys little. It bites when delegation crosses a process/org boundary, a sub-agent outlives the parent run, or untrusted input steers the delegation decision.

Original post →

More from coding & agent

coding & agent channel →