Read time: 8 minutes
AI agents have stopped just answering questions. They retrieve sensitive data, invoke tools, delegate tasks to other agents, and execute actions across enterprise systems. That shift changes the security question from “what can this model say?” to “what is this agent allowed to do, and who can prove it?”
For organizations building on Microsoft, Agent 365, Entra, Purview, Foundry, Defender, and Sentinel already provide visibility, identity, data protection, and threat detection for agents. But agent workflows rarely stay inside one platform. They reach into SaaS apps, databases, private clouds, data centers, operational technology (OT), and edge systems.
This blog explains what it takes to secure agentic AI from identity to action, and how Xage extends your Microsoft stack to enable AI autonomy without expanding trust.
What you’ll learn
- Why securing AI agents takes enforcement at two boundaries: the agent itself and the resources it reaches
- The seven risks that tend to stall enterprise agent rollouts
- How Xage extends Microsoft controls to custom agents, MCP servers, and critical infrastructure and edge systems
- A checklist for deciding whether an agent is ready for production
Why agents need two boundaries, not one
Securing an agent means controlling both the agent itself and every resource it can reach. Most early AI security focused on the model: prompt filters, output guardrails, and content safety. Those matter, but a model is probabilistic. A cleverly worded prompt, a poisoned document, or a compromised tool can still steer it toward an action nobody approved.
That is why authorization has to be deterministic and enforced outside the model. The decision about whether an agent may call a tool, query a database, or hand work to another agent should not depend on the model choosing to behave. It should be checked by policy, every time.
In practice, that means two enforcement points:
- The agent boundary. What the agent itself does at runtime: its prompts, tool usage, API calls, network access, and local system interactions.
- The resource boundary. What the agent is allowed to touch: SaaS applications, databases, cloud services, LLMs, OT, and edge systems, reached through MCP and APIs.
Identity tells you who the agent is. These two boundaries decide what it can actually do.
Start with Microsoft’s agentic AI security foundation
Microsoft has built a broad foundation for governing agents, and it should remain your system of record.
| Microsoft capability | Role for AI agents |
|---|---|
| Agent 365 | Agent visibility and administration |
| Entra | Agent identity and access |
| Purview | Data protection and compliance |
| Foundry | Agent, model, and tool management |
| Defender and Sentinel | Threat protection and security operations |
For agents running in Copilot Studio or Foundry and interacting with people in Teams, SharePoint, OneDrive, and email, this stack covers a great deal. The question for security teams is what happens when an agent’s workflow leaves that perimeter.
Key risks to mitigate as agents go into production
Seven risks tend to stall enterprise agent rollouts. Most sit beyond what any single platform can see.
- Agents outside Microsoft runtimes. Teams build custom agents, adopt third-party agents, and connect to MCP servers. Those agents still reach systems in data centers, private and third-party clouds, OT, and edge environments, and they need the same policy as your Copilot Studio agents.
- Data on agent-to-tool and agent-to-agent paths. Purview DLP covers human-to-agent and agent-to-human interactions in Microsoft 365. Sensitive data can also flow when an agent calls a tool or hands work to another agent.
- Privilege across multi-agent chains. When one agent delegates to another, privilege can quietly accumulate. A low-privileged user should never be able to escalate by asking a privileged agent to act for them.
- Credentials agents carry. Agents use API keys and tokens to reach applications and data. If an agent is compromised, those secrets should not be exposed with it.
- Agents running in AI sandboxes. Sandboxes such as NVIDIA OpenShell or Bubblewrap isolate agents from the host, but isolation is not governance. What an agent does inside the sandbox still needs policy.
- Limited view of MCP usage. MCP connections spread across the enterprise faster than anyone can track them. Security teams need to see which agents and users are reaching which MCP servers and tools before they can govern that access.
- What agents do inside applications. Coding agents like Claude Code read files, run commands, and write code on their own. Controls need to reach into the application itself, from catching PII exposure to stopping insecure code before it ships.
How Xage extends the Microsoft stack
Xage Zero Trust for AI adds agent-side and resource-side enforcement on top of Microsoft’s foundation. Every tool call, API request, and delegated action is checked against what the agent is approved to do, whether the agent runs in Copilot Studio, Foundry, or a custom runtime.
| Gap | Xage capability | What it does |
| Agents outside Microsoft runtimes | Agent Sentry | Runtime visibility and control around supported agent runtimes: prompts, tool usage, API calls, network access, file and system calls, and browser activity. Each agent gets a unique identity and a tamperproof, action-level record. |
| Resources outside Microsoft environments | Resource Gateway | Authenticates and authorizes access to protected resources and LLMs through supported MCP and API paths across SaaS, databases, cloud services, OT, and edge systems. |
| Data on agent-to-tool and agent-to-agent paths | Data redaction | Redacts PII and confidential data on those paths. Agents inherit existing user and application permissions without data retagging. |
| Privilege across multi-agent chains | Distributed least privilege | Identity-based policies, just-in-time access, time-bound delegation, and multihop privilege enforcement. Delegated rights are task-specific, and zero standing privileges limit what lingering sessions can reach after an agent is disabled. |
| Credentials agents carry | Credential management | Securely stores and rotates the API keys and tokens agents use, so a compromised agent cannot expose them. Access is brokered through Xage, granted just-in-time, and revoked when the session ends. |
| Agents running in AI sandboxes | Sandbox-aware enforcement | Extends control into AI sandboxes such as NVIDIA OpenShell, Bubblewrap, and Open Sandbox, governing agent activity inside the isolated environment. |
| Limited view of MCP usage | MCP visibility | Discovers and inventories MCP access across the enterprise, showing which agents and users connect to which MCP servers and tools, so teams can see and govern MCP usage in one place. |
| What agents do inside applications | Agent Sentry application hooks | Hooks into agent applications such as Claude Code to register and enforce access control at the application level. Policies can range from PII detection to blocking insecure coding practices. |
Across all of it, action-level accountability records the initiating user, the executing agent, each tool call, each resource interaction, and every policy decision. That telemetry exports to your SIEM and SOC tools, so your existing investigations get the agent context they have been missing.
What the deployment looks like
The design principle is simple: authorization is enforced outside the model, and protected resources are reachable only through controlled paths.
Xage + Microsoft deployment · agent and resource boundaries
Microsoft keeps its management, identity, data, application, and threat-protection roles. Xage Agent Sentry wraps supported agent runtimes to constrain actions and record behavior. Supported MCP and API requests route through Xage Resource Gateway, which authorizes granular access and secures resource credentials.
One honest note on rollout: policies do not sync automatically between platforms. Plan up front for identity mappings, policy ownership, escalation paths, and telemetry correlation across the deployed controls.
For a two-page summary of the architecture and how Xage and Microsoft capabilities fit together, download the Xage + Microsoft solution brief.
A practical checklist for security teams
Before your next agent goes into production, ask these questions:
- Does every agent, including custom and third-party agents, have a unique identity?
- Is authorization for tool calls and API requests enforced outside the model?
- Are protected resources reachable only through controlled paths?
- Can a low-privileged user escalate by routing a request through a privileged agent?
- Are delegated rights task-specific and time-bound, with no standing privileges?
- Are agent API keys and tokens stored and rotated outside the agent?
- Is sensitive data protected on agent-to-tool and agent-to-agent paths, not just in chat?
- Is agent activity inside AI sandboxes governed by policy, not just isolated?
- Can you enforce policy inside agent applications, such as blocking PII exposure or insecure code?
- Can you trace any action back to the initiating user, executing agent, and policy decision in your SIEM?
- Do you know which agents and users connect to which MCP servers and tools?
If any answer is “no” or “not sure,” that is where to start.
The question for AI agents has moved from “what can this model say?” to “what is this agent allowed to do, and who can prove it?” Microsoft gives you the identity, visibility, and threat protection to answer much of that inside its own platform. Xage answers the rest wherever your agents go: every tool call, API request, and delegated action is checked against policy outside the model, and every decision is recorded back to the user who started it. That is how you give agents real autonomy without handing them standing trust.
Frequently asked questions
Does Xage replace Microsoft Entra, Purview, or Defender?
No. Microsoft remains your system of record for agent visibility, identity, data protection, and threat protection. Xage adds enforcement at the agent and resource boundaries and sends action-level telemetry to your SIEM.
Can Xage secure agents that don't run in Copilot Studio or Foundry?
Yes. Xage Agent Sentry wraps supported agent runtimes, including custom and third-party agents. Xage Resource Gateway authorizes MCP and API access to SaaS apps, databases, cloud services, OT, and edge systems, wherever the agent runs.
Why does authorization need to be enforced outside the model?
Models are probabilistic. A crafted prompt, a poisoned document, or a compromised tool can steer an agent toward an action nobody approved. Policy enforced outside the model checks every tool call, API request, and delegated action, regardless of what the model decides.
How does Xage prevent privilege escalation across multi-agent chains?
Xage traces identity and delegated privilege across each hop. Delegated rights are task-specific and time-bound, so a low-privileged user cannot escalate by routing a request through a privileged agent. Zero standing privileges limit what lingering sessions can reach after an agent is disabled.
About the author
Vivek Doshi is the Director of Product Management at Xage Security, where he leads product strategy and innovation focused on securing critical infrastructure and AI. Vivek brings extensive experience in enterprise networking, cybersecurity, and digital transformation, helping organizations modernize and secure complex operational environments. Prior to Xage, Vivek held leadership roles at Cisco, where he worked on advancing networking, security, and enterprise technology solutions for global customers. Vivek holds a Master of Science in Electrical and Computer Engineering from the Georgia Institute of Technology and an MBA from the University of California, Berkeley. Outside of work, he enjoys playing tennis and spending time in nature.
