Peer-Reviewed Spec Verified Arch
#entra-id #zero-trust #ai-agents #mcp

Stop Letting AI Agents Borrow Human Tokens

Microsoft Entra Agent ID and the Global Secure Access MCP Firewall reshape agent governance, yet network edges still miss local stdio servers.

DI
Daniel Inman verified
Principal Cloud Architect • 04 Dec 2026 • 8 min read

Most organisations deploying AI coding agents and Model Context Protocol (MCP) servers have quietly recreated the worst identity anti-pattern of the early cloud era. An agent runs on an engineer’s laptop or inside a CI pipeline, borrows that engineer’s personal OAuth token or a shared service principal secret, and inherits every permission the human holds. When the agent misinterprets a prompt or calls an unvetted MCP tool, your audit log records an authorised developer doing something destructive.

Microsoft’s December 2026 Microsoft Entra release wave directly targets this non-human identity blind spot. Microsoft Entra Agent ID lifecycle policies moved to general availability in the December announcement, Global Secure Access MCP firewall entered public preview, and Microsoft Defender plus Global Secure Access can now discover 60 types of local agents — including Claude Code, OpenAI Codex, and GitHub Copilot CLI — and bind them to distinct Agent IDs. Those are serious architectural primitives. They are also incomplete if you treat a network firewall and a lifecycle toggle as a complete control plane.

What Actually Changed in Entra This Month

Until recently, Microsoft Entra forced teams into an awkward binary: model an AI agent as a generic service principal with no human accountability, or let it piggyback on a signed-in user’s delegated session where Conditional Access could not separate the human from the tool acting beside them.

Microsoft Entra Agent ID breaks that dead end by treating an agent identity as a dedicated directory object governed through an Agent Identity Blueprint. Credentials live on the blueprint rather than on individual agent instances. In single-instance mode, the blueprint and Agent ID share an OAuth client ID; in multi-instance mode, the blueprint authenticates and issues impersonation assertions for a fleet of child Agent IDs. Where an agent genuinely needs access to legacy systems that require a user directory object, Entra links a 1:1 decorated agent user account back to that Agent ID.

On top of that identity primitive, the December 2026 updates layer three operational controls:

Conditional Access for agents evaluates both the calling subject and the target resource audience (aud) before issuing a token. Because Entra can now distinguish a human session from a local agent acting on that user’s behalf, security teams can block or challenge a high-risk agent without locking the engineer out of their workstation.

Agent ID lifecycle policies introduce automated hygiene that regular service principals have lacked for years. Administrators can enforce periodic sponsor reconfirmation between 30 and 730 days, require a minimum number of human sponsors, and monitor inactivity based on whether tokens have been issued. When an agent loses its sponsor or goes stale, the policy notifies fallback recipients and automatically disables or soft-deletes the identity after a configurable grace period.

Global Secure Access MCP firewall brings deep packet inspection to the Model Context Protocol layer. Sitting inside Microsoft Entra Internet Access, it inspects JSON-RPC 2.0 traffic over streamable HTTP and Server-Sent Events (SSE), enforcing allow or block decisions per MCP server URL, protocol version, method, and individual primitive — down to specific tools, resources, and prompt templates.

The Reality of Rollout Status: Microsoft’s December 2026 Entra announcement states that Agent ID lifecycle policies are generally available, while the Microsoft Learn documentation still carries preview notices in places. Before committing production governance SLAs to automated deletion rules, test the policy in your tenant against a small ring of pilot agents and verify the exact behaviour in your region.

Where the Network Edge Stops Seeing Your Agents

The temptation for any enterprise security team is to switch on the Global Secure Access MCP firewall, build an allow-list of approved MCP servers, and declare agent governance solved. That assumption fails on contact with how developers actually run coding agents.

Microsoft’s own documentation notes two hard boundaries on the MCP firewall. First, it only inspects remote MCP servers communicating over streamable HTTP or SSE with TLS inspection enabled. Local MCP servers running over stdio on a developer’s laptop generate no network footprint for Global Secure Access to intercept. Second, JSON-RPC batches are not inspected.

If your platform team only governs remote HTTPS endpoints at the SSE layer, every local stdio MCP server spawned inside an IDE or terminal remains invisible to the network firewall. Worse, blocking remote servers aggressively without offering a governed, low-friction internal alternative simply pushes engineers back toward local stdio wrappers and personal API keys. That is the exact friction vector I see repeatedly in why Azure governance fails before anyone writes a policy : make the governed path slower than the workaround, and engineers will route around your controls inside a week.

The Licensing and Blueprint Trade-Offs Nobody Budgets For

Every identity architecture decision carries an operational and commercial cost, and Entra Agent ID introduces three trade-offs you need to surface before architecture review.

The licensing uplift is material. Conditional Access for agents and Entra ID Governance agent lifecycle policies are not included in base Entra ID P1 or P2 licences. They require Microsoft Agent 365 — either bundled inside Microsoft 365 E7 or purchased as an add-on alongside at least Entra P1 or Microsoft 365 E3 — while the MCP firewall requires Microsoft Entra Internet Access plus client deployment and TLS inspection on Entra-joined or hybrid-joined machines. If your FinOps and procurement teams assumed existing E3 or E5 identity licensing covered agent governance, that assumption will break during pilot expansion.

App-only tokens versus delegated tokens define your blast radius. Giving an autonomous agent an application-only roles assignment means it acts as itself across every dataset that role can touch, even when triggered by a low-privilege user prompt. For developer coding agents and interactive assistants, delegated tokens carrying user context (scp) alongside the agent actor claim preserve user-level RBAC boundaries and keep your Azure RBAC design intact. Reserve app-only agent roles for headless background automation with narrow, auditable scopes.

Lifecycle policies cannot manufacture ownership. Setting a minimum sponsor count of one sounds rigorous until teams route every agent registration to a shared platform engineering mailbox. Once no named human feels accountable for reconfirming an agent every 90 days, lifecycle policies turn into noise, exemptions pile up, and the estate suffers the same slow decay covered in governance drift in Azure environments .

My View on Agent Identity Architecture: Treat every coding agent and MCP server like a production microservice boundary, not a browser extension. Credentials belong on blueprints or federated workload identities, authorisation happens at the resource server via Entra v2 tokens, and every single non-human identity needs a named human sponsor whose access review failure disables the agent automatically.

Securing the Remote MCP Boundary Properly

Whether or not you deploy the Global Secure Access MCP firewall, every remote MCP server you expose inside your Azure estate should implement OAuth 2.0 protected-resource discovery natively. That aligns directly with Secure by Design and Governed by Design : security invariants enforced at the resource interface rather than delegated solely to an edge proxy.

Microsoft Entra’s MCP specification guidance requires your server to publish a metadata document at /.well-known/oauth-protected-resource and return a 401 Unauthorized challenge pointing unauthenticated clients to it. Notice two details that catch teams out in production: the resource field uses your canonical endpoint URL registered as the Application ID URI, whereas the v2 access token’s aud claim contains the resource app’s client-ID GUID; and if you want Client ID Metadata Document (CIMD) support so MCP clients do not require manual pre-registration, your authorization_servers entry must advertise the versioned oauth21/2026-08 path rather than /v2.0.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
{
  "resource": "https://mcp.example.co.uk/mcp",
  "authorization_servers": [
    "https://login.microsoftonline.com/<tenant-id>/oauth21/2026-08"
  ],
  "scopes_supported": [
    "https://mcp.example.co.uk/mcp/mcp.access"
  ],
  "bearer_methods_supported": [
    "header"
  ]
}

When you front remote MCP servers or REST APIs with Azure API Management as your enterprise AI gateway, enforce Entra JWT validation on the inbound leg and keep downstream backend credentials isolated inside Credential Manager. Never pass a developer’s inbound token blindly to an external SaaS backend when APIM can swap it for a scoped, managed connection.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
<inbound>
    <base />
    <validate-azure-ad-token
        tenant-id="{{entra-tenant-id}}"
        header-name="Authorization"
        failed-validation-httpcode="401"
        failed-validation-error-message="Unauthorized. Valid Entra agent token required.">
        <audiences>
            <audience>{{mcp-server-client-id}}</audience>
        </audiences>
        <required-claims>
            <claim name="scp" match="any">
                <value>mcp.access</value>
            </claim>
        </required-claims>
    </validate-azure-ad-token>
</inbound>

Notice the separation of concerns. Endpoint posture and Global Secure Access discover shadow agents and filter remote MCP traffic at the edge; Conditional Access checks device, risk, and agent identity before issuing a token; API Management validates aud and scp at the gateway; and Agent ID lifecycle policies purge orphaned identities before they become permanent attack paths.


Governing AI coding agents is not a case of banning developer tools or trusting a single preview firewall to inspect every call. Put every agent behind a distinct Entra Agent ID with a named sponsor, enforce OAuth 2.1 protected-resource validation at your MCP gateways, and contain local stdio execution on managed endpoints where network inspection cannot reach.

If your engineering teams are scaling coding agents and MCP integrations faster than your Entra identity and Azure governance controls can keep up, get in touch to design a clean Zero Trust agent architecture before sprawl hardens into debt.

#entra-id #zero-trust #ai-agents #mcp #security #governance
forum GitHub Discussion
Obsidian Signal Spec • Peer-Reviewed
Related Articles

Architectural Deep Dives

View All Articles arrow_forward
Advisory Channel

Direct Architectural Consultation

Have architectural bottlenecks or planning an enterprise landing zone migration? Engage directly with Daniel Inman for targeted advisory sessions.