Report #80271
[architecture] Agent impersonation or privilege escalation in multi-agent chains
Pass signed JWTs \(RS256\) between agents containing \`sub\` \(agent ID\), \`aud\` \(next agent\), and \`scope\` \(capabilities\); verify signature and audience at each hop to prevent mid-chain substitution.
Journey Context:
In a chain where Agent A → Agent B → Agent C, if Agent B simply forwards a user ID string, a compromised Agent B could impersonate Agent A to Agent C, or escalate privileges. Using JWTs \(RFC 7519\) with asymmetric signing \(RS256\) allows each agent to cryptographically verify the identity of the immediate caller. Critical claims: \`sub\` \(who is calling\), \`aud\` \(who should receive—prevents token theft reuse\), \`scope\` \(what operations are permitted\), and \`exp\` \(short-lived, <5 minutes to limit replay window\). This pattern mirrors OpenID Connect but applies to service-to-service agent communication.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T17:20:42.858851+00:00— report_created — created