TL;DR: Microsoft’s agent security stack handles perimeter controls well, but agent governance still breaks down after a token is issued because runtime decisions must consider tool, purpose, and data shape, according to TrustLogix. Identity checks alone cannot prevent over-broad calls once an agent is inside.
At a glance
What this is: NHI Mgmt Group's analysis, drawing on TrustLogix's blog post: AI agent security needs a second authorization layer after token issuance because runtime purpose, tool, and data decisions remain unresolved inside the perimeter.
Why it matters: IAM and security teams need to separate admission controls from runtime authorization so agent behaviour stays constrained after the first gate has already been passed.
Context
Agent security is a two-step governance problem. The first step decides whether a non-human actor can enter an environment at all. The second decides what that actor can do after entry, including which tools it may call, what purpose qualifies the call, and what data can return.
That split matters because token issuance and network reachability do not answer runtime questions about intent, scope, or downstream data handling. A valid token proves authentication and entry conditions, but it does not on its own prove that each tool call is appropriate for the current task or lawful for the current purpose.
For AI agents, the control boundary is no longer just the perimeter. Once the first gate is open, governance has to follow the request itself, not merely the identity that opened the session. Agent authorization becomes the next control question.
Key questions
Q: What is the difference between authentication and authorization in agentic systems?
A: Authentication proves who or what is acting. Authorization decides what that identity may do, under which context, and for how long. In agentic systems, the distinction matters because the same identity can be authenticated once and still require repeated authorization as actions unfold.
Q: How should teams enforce purpose limitation in agent workflows?
A: Purpose limitation in agent workflows is enforced by binding each agent to a narrow, documented task, approved data sets, and explicit tool permissions, then checking every action against that purpose at runtime. Use scoped tokens, policy rules, and human approval for requests outside the declared purpose, with logging to catch drift or reuse of context for unrelated work.
Q: Could row-level filtering reduce overexposure in agent responses?
A: Row-level filtering can reduce overexposure in agent responses by restricting which database rows a service account, API token, or query context can retrieve for a given request. The agent only sees records matching its authorised scope, which limits accidental disclosure from broad queries, but it should still be paired with field-level controls, output filtering, and access logging.
Technical breakdown
Why perimeter controls stop at the first gate
Perimeter controls answer a narrow question: should this agent be admitted, issued a token, or allowed to reach a server? They do not decide whether an already-admitted agent should read one record, query a subset, or invoke a different tool for the same task. In agentic systems, the risky moment is often not initial access but the next runtime action. That is why a valid token, conditional access decision, or app block cannot fully govern behaviour after entry. The security model has to distinguish authentication, admission, and authorisation as separate decisions.
Practical implication: Treat admission controls as necessary but incomplete, and add a runtime policy layer for each tool call.
Purpose, tool choice, and data shape are distinct decisions
Agent authorization fails when one policy is expected to cover all three dimensions at once. Purpose determines why a call is being made. Tool choice determines which capability is being exercised. Data shape determines what the agent receives back, including whether the response is masked, row-filtered, or fully revealed. These are not interchangeable controls. A system can know the caller, yet still need to reject the same request because the purpose is wrong or the response would reveal more than the task requires. That is the core of runtime governance for AI agents. Read OWASP Agentic Applications Top 10.
Practical implication: Write policies that separately evaluate purpose, tool, and response scope instead of relying on a single allow or deny rule.
Conditional Access cannot substitute for mid-session control
Conditional Access is evaluated when a token is issued or refreshed, which makes it useful for admission and session maintenance but not for immediate runtime interruption. That timing gap matters when an agent is already mid-task and starts to drift from its intended scope. Runtime enforcement closes that gap by evaluating the next action, not waiting for the next refresh cycle. In practical terms, this is the difference between stopping a session eventually and stopping the very next tool call. See the AI Agent Observability, Audit and Incident Response Guide.
Practical implication: Use session controls for issuance, then enforce a separate call-level stop condition for active agent sessions.
NHI Mgmt Group analysis
Agent governance now has two distinct control planes: admission control decides whether an agent belongs in the environment, while runtime authorisation decides what that agent may do after it gets there. Those are different governance problems, not two labels for the same one. When teams collapse them into a single perimeter story, they leave intent, tool choice, and response shaping unmanaged. The practitioner conclusion is simple: the second gate must be enforced where the action happens, not where the identity is first checked.
Purpose is an authorisation input, not a policy accessory: the same tool call can be acceptable for one business purpose and unacceptable for another. That means identity alone is insufficient to govern AI agents, because the risk sits in why the action is taken as much as in who or what is taking it. This is where purpose limitation becomes operational rather than legal language. Practitioners should expect policy engines to evaluate purpose as a first-class control input.
Runtime enforcement must follow the data, not the platform brand: a governance model that works only inside one vendor’s pipeline is incomplete for agent estates that span multiple runtimes and data platforms. The control plane has to persist across Microsoft and non-Microsoft data sources if the organisation wants one rule set instead of many. The practitioner implication is to design for policy portability across the data estate, not for a single product boundary.
Least privilege for AI agents is a moving decision, not a provisioning event: the model assumes access is fixed enough to be granted once and reviewed later, but agent behaviour is evaluated at runtime and can change call by call. That breaks the comfort of static role assignment and pushes governance toward per-action decisions. The conclusion for practitioners is that least privilege for AI agents belongs in execution-time policy, not only in onboarding and review workflows.
Purpose-based agent authorization: this is the control pattern that matters when a valid token is no longer enough. It combines intent checking, tool scoping, and response filtering into one runtime decision layer. For practitioners, that means the governance question shifts from who authenticated to whether the next action is justified, constrained, and proportionate.
From our research library:
- Gartner predicts that more than 50% of successful cyberattacks against AI agents through 2029 will exploit access control weaknesses.
- Read next: AI Agent Authorisation Guide
What this signals
Runtime authorisation will become the governance layer practitioners are judged on: admission controls will still matter, but they will not be enough to explain agent behaviour once actions begin. The control question moves to whether the next tool call is permitted for this purpose, against this data, at this moment. That is the point where static IAM assumptions start to fail.
Governance teams should expect agent policies to become more granular than application access policies. The same identity may need different decisions for read, write, share, and summarise actions inside one session, which means the policy model must operate at the action level rather than the account level.
Purpose-based agent authorization will increasingly define how organisations separate legitimate work from overreach in mixed Microsoft and non-Microsoft estates. The practical shift is toward policy portability and response shaping across the whole data path, not just the front door.
For practitioners
- Separate admission from runtime authorisation Keep identity verification, token issuance, and Conditional Access as the first gate, then add a distinct policy decision for every tool call the agent makes.
- Evaluate purpose on each request Define allowed business purposes for agent actions and deny the same call when the purpose does not match the approved task context.
- Scope responses by entitlement Apply masking and row-level filtering so the agent receives only the data shape required for the job, not the full underlying object.
- Test mid-session stop controls Verify that an active agent can be blocked at the next tool call instead of waiting for token refresh, especially for long-running tasks.
Key takeaways
- The central problem is no longer whether an AI agent can enter an environment, but how its actions are constrained after entry.
- Runtime decisions about purpose, tool use, and data shape are now the controls that determine whether an authorised agent stays within scope.
- Practitioners need a separate enforcement layer for active sessions because admission controls alone cannot govern mid-run behaviour.
Related NHI Mgmt Group resources: AI Agent Authorisation Guide · MCP Security Guide · AI Agent Observability, Audit and Incident Response Guide · Agentic AI Identity Guide
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 and OWASP Non-Human Identity Top 10 address the attack and risk surface, while NIST AI RMF sets the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Agentic AI Top 10 | ASI03 — Identity & Privilege Abuse | Runtime agent governance is about limiting privilege abuse after initial admission. |
| ASI02 — Tool Misuse | The article centres on controlling which tools an authorised agent may call and how. | |
| ASI09 — Human-Agent Trust Exploitation | Purpose-based decisions help prevent agents from exploiting trusted workflows and user assumptions. | |
| Recommendation — Enforce per-action checks so an admitted agent cannot expand privilege at runtime. Bind tool execution to policy so agents cannot repurpose tools outside approved intent. Validate agent intent before sensitive actions that rely on user or workflow trust. | ||
| OWASP Non-Human Identity Top 10 | NHI-04 — Insecure Authentication | The post distinguishes authentication from runtime authorisation for machine identities. |
| Recommendation — Treat authentication as the first gate and add separate runtime authorisation for each action. | ||
| NIST AI RMF | MANAGE — Risk Management | Agent runtime governance is an AI risk management problem across the lifecycle of decisions. |
| Recommendation — Embed runtime policy checks into AI risk treatment and monitoring workflows. | ||
Key terms
- Agent Authorization: Agent authorization is the decision process that determines whether a software agent may take a specific action at runtime. It evaluates context, delegated authority, and resource sensitivity at the moment of execution, not only at login or provisioning time.
- Purpose limitation: The rule that data should be used only for the specific business purpose allowed by policy and context. In AI environments, this means a dataset may be technically accessible but still inappropriate for a given model, assistant, or agent if the use case exceeds the approved scope.
- Conditional Access: Conditional access is a policy model that decides whether an action should proceed based on context such as posture, resource sensitivity, timing, and scope. For AI agents, it must be evaluated at request time so a valid credential does not automatically equal permitted behaviour.
- Row-level filtering: A control that limits which records a user or workload can see inside a table or dataset. It preserves access to the application or query while removing rows that fall outside policy, which is useful for tenant isolation, analytics segregation, and data minimisation.
Deepen your knowledge
NHI governance, agentic AI identity, and machine identity lifecycle are core topics in our NHI Foundation Level course, the industry's only accredited NHI security programme. If you are responsible for identity security strategy or NHI governance in your organisation, it is worth exploring.
Published by the NHIMG editorial team on November 9, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org