Traditional IAM assumes the credential stays with the intended actor and remains meaningful inside a controlled session. When an agent can delegate or expose that context, the boundary between authorised use and misuse collapses, and access reviews may never see the dangerous action path.
Why This Matters for Security Teams
When an AI agent can hand over its own credential context, the problem is no longer just “who authenticated.” The real issue is that the agent can propagate authority into places humans did not explicitly approve, including downstream tools, chained prompts, and delegated sessions. Traditional IAM and access reviews tend to validate static entitlements, while autonomous behaviour turns those entitlements into a moving target.
That is why NHI governance has to be read through an agentic lens, not a human-user lens. NHIMG’s research on the AI Agents: The New Attack Surface report shows how quickly agent governance becomes a blind spot once access is dispersed across tasks and teams. Current guidance from the OWASP Top 10 for Agentic Applications 2026 and the NIST AI Risk Management Framework points toward runtime controls, not just identity enrollment. In practice, many security teams discover the dangerous handoff only after the agent has already used a valid context to reach data or tools that no reviewer expected.
How It Works in Practice
The control problem starts with the credential itself. If an agent is using a long-lived secret, a cached token, or a delegated session that can be forwarded, then the credential no longer proves a bounded intent. The better model is workload identity plus just-in-time authorization: the agent proves what it is, then receives a short-lived token for a single task, with policy evaluated at request time.
That is why runtime policy matters more than static role design. A practical implementation usually combines:
- Workload identity such as SPIFFE or OIDC so the system can verify the agent, not just the secret it presents.
- Context-aware authorization using policy-as-code, so approval depends on task, data sensitivity, tool target, and risk signal.
- Ephemeral credentials with tight TTLs, automatic revocation, and no reusable delegation path.
- Separate audit trails for the agent’s original request and every downstream tool call it triggers.
NHIMG’s OWASP NHI Top 10 and the CoPhish OAuth Token Theft via Copilot Studio coverage both reinforce the same lesson: once an agent can forward context, the attack surface expands from credential theft to credential reshaping. The CSA MAESTRO agentic AI threat modeling framework also aligns with this approach by treating tool use, delegation, and runtime trust decisions as first-class risks. These controls tend to break down in environments where agents can invoke external SaaS tools that accept bearer tokens without checking provenance or task scope.
Common Variations and Edge Cases
Tighter delegation control often increases operational friction, requiring organisations to balance agent autonomy against investigation quality and user experience. That tradeoff becomes sharper in multi-agent workflows, where one planner agent may need to pass context to an executor agent, and both may need access to different tools for a short window.
Best practice is evolving, but current guidance suggests treating context handoff as a privileged event rather than a routine message. That means marking sensitive context, scoping it to the minimum necessary fields, and preventing free-form forwarding into logs, prompts, or tickets. Where agent behaviour is highly variable, static RBAC alone is usually too blunt because it cannot express “allow this task, deny this next hop” with enough precision. A more defensible pattern is real-time policy evaluation with explicit step-up checks for sensitive actions.
Edge cases appear in long-running workflows, human-in-the-loop review queues, and systems that mix human credentials with agent execution. In those environments, the safest design is to separate the human approval token from the agent execution token, rather than letting one context impersonate the other. The NIST AI Risk Management Framework and OWASP Agentic AI Top 10 both support this separation, but there is no universal standard for exactly how much context can be delegated safely. The control fails most often when legacy systems still treat a forwarded token as proof of continuing human intent.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP Agentic AI Top 10, OWASP Non-Human Identity Top 10 and CSA MAESTRO address the attack and risk surface, while NIST AI RMF and NIST Zero Trust (SP 800-207) set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Agentic AI Top 10 | A3 | Agent context handoff is a core agentic authorization failure mode. |
| OWASP Non-Human Identity Top 10 | NHI-03 | Short-lived, non-transferable credentials are central to this risk. |
| CSA MAESTRO | TA-2 | MAESTRO covers threat modeling for agent delegation and tool chaining. |
| NIST AI RMF | GOVERN | Runtime accountability for autonomous actions maps to AI RMF governance. |
| NIST Zero Trust (SP 800-207) | AC-5 | Zero trust is needed when agent context can move beyond the original session. |
Replace reusable secrets with ephemeral NHI credentials and revoke on task completion.
Related resources from NHI Mgmt Group
Deepen Your Knowledge
Reviewed and updated by the NHIMG editorial team on August 15, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org