AI agents can act on behalf of users, process sensitive data, and initiate workflow actions at runtime, so static permissions and manual review are often not enough. Traditional controls can miss prompt abuse, data leakage, and unauthorized model interactions. Teams need continuous visibility into what the agent sees, sends, and does across the full request path.
Why This Matters for Security Teams
AI agents complicate access and audit because they do not behave like fixed applications or human users. They can make tool calls, follow chained instructions, and act on runtime context that changes from one request to the next. That breaks the assumption that a role, a login, or a periodic review tells the full story. Current guidance suggests treating agent activity as a live execution path, not just an identity event.
That shift matters because agent failures show up as real business actions, not just alerts. In AI Agents: The New Attack Surface report, SailPoint found that 80% of organisations report AI agents have already performed actions beyond intended scope, and only 52% can track and audit the data those agents access. The same pattern appears in incidents like the CoPhish OAuth Token Theft via Copilot Studio and the Gemini AI Breach, where the issue was not just credential misuse but agentic execution under attacker influence.
In practice, many security teams discover the gap only after an agent has already accessed data, called a downstream tool, or triggered a workflow that no one expected to be autonomous.
How It Works in Practice
Production-grade agent governance starts with the idea that the agent needs a workload identity, not just a long-lived secret. That means binding execution to cryptographic identity, short-lived tokens, and policy checks at request time. For many environments, the right mental model is closer to NIST AI Risk Management Framework and OWASP Agentic AI Top 10 than to traditional user-centric IAM.
In practice, teams should separate what the agent is allowed to do from what the human operator is allowed to request. That usually means:
- Issuing just-in-time credentials per task, with short TTLs and automatic revocation.
- Evaluating policy at runtime using context such as data sensitivity, tool scope, tenant, and user intent.
- Logging every tool call, prompt input, model output, and downstream action as one traceable chain.
- Limiting lateral movement by constraining which tools, APIs, and datasets the agent can discover.
This is where CSA MAESTRO agentic AI threat modeling framework and the OWASP NHI Top 10 are useful: both push teams to map where identity, secrets, prompts, and tools intersect. The practical lesson is that audit must capture not just who authenticated, but what the agent saw, what it decided, and which actions it actually executed. These controls tend to break down in loosely governed multi-agent workflows because one agent can inherit context from another and amplify a single bad instruction across several systems.
Common Variations and Edge Cases
Tighter agent controls often increase operational overhead, requiring organisations to balance autonomy against review depth. That tradeoff is especially visible when agents support customer service, software delivery, or internal operations, where slowing every action can defeat the point of automation.
Best practice is evolving for delegated agents that operate on behalf of many users, because there is no universal standard for how to attribute intent across nested prompts, tool calls, and shared sessions. Some teams treat the agent as a privileged workload and require separate controls for each capability. Others attach every action to the initiating human and the runtime policy decision. Both approaches can work, but neither is sufficient if secrets are static or if approvals are only checked at startup.
Edge cases also emerge in environments with regulated data, cross-tenant access, or long-running autonomous jobs. In those settings, audit needs to distinguish between allowed recall of prior context and inappropriate retention of sensitive data. The State of Secrets in AppSec report is a useful reminder that static secrets and fragmented secrets stores undermine visibility, while MITRE ATLAS adversarial AI threat matrix helps teams think about adversarial manipulation of the model and its surrounding workflow. Analysis of Claude Code Security is another reminder that tool-aware protections matter, but they must be paired with runtime policy and complete audit trails.
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, CSA MAESTRO and OWASP Non-Human Identity Top 10 address the attack and risk surface, while NIST AI RMF and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Agentic AI Top 10 | A2 | Addresses prompt/tool abuse and agentic execution risks. |
| CSA MAESTRO | T1 | Focuses on threat modeling autonomous agent workflows. |
| NIST AI RMF | GOVERN | Governance is needed for accountability and auditability of agents. |
| OWASP Non-Human Identity Top 10 | NHI-03 | Covers short-lived credentials and secret hygiene for non-human identities. |
| NIST CSF 2.0 | PR.AC-4 | Least-privilege access control is central to agent containment. |
Threat-model each agent path, including inherited context, tool use, and downstream side effects.