Unlike a traditional chatbot that politely hands you a block of text and waits for a human to click "Send," an AI agent plans across multiple steps, maintains persistent memory, authenticates to downstream APIs, and executes real-world changes on your behalf. A classic cloud identity check only proves which token knocked on the door; it has no idea whether the business context made the request legitimate. If an agent starts wiping files in Google Drive or force-pushing code to GitHub, the API sees a valid credential doing valid API work. As Microsoft notes in its Azure security documentation, AI agents expand the trust boundary from a simple user-to-application relationship into a sprawling chain—user to agent, agent to tools, and agent to other agents—turning prompt injection into direct, unauthorized action.
This shift has created what a sponsored BleepingComputer analysis by Token Security terms a "shared responsibility gap." While five major industry players and standards groups—Microsoft, AWS, Anthropic, the Cloud Security Alliance (CSA), and the Coalition for Secure AI (CoSAI)—have published guidance on agentic accountability, their frameworks differ in scope, depth, and terminology, leaving enterprise IT and security teams holding the bag when an autonomous workflow goes sideways.
Why Five Industry Frameworks Still Leave You Guessing
Compare the five published approaches side by side, and you quickly see that the industry agrees on the risks while disagreeing on how to carve up ownership. Some publish formal SaaS/PaaS/IaaS matrices, while others offer architectural defense layers or autonomy tiers.
| Organization | Framework / Publication | Structural Focus | Who Owns Identity & Behavior? |
|---|---|---|---|
| Microsoft | AI agent shared responsibility model (Microsoft Learn) | Matrix covering SaaS, PaaS, and IaaS agent deployments | Customer remains accountable for agent actions across all models; agent identity and per-action authorization are customer-owned in IaaS and shared in PaaS/SaaS |
| AWS | Amazon Bedrock AgentCore Security Guide & Agentic AI Security Scoping Matrix | Four autonomy scopes (Scope 1 to Scope 4) mapped across six security dimensions | Builders bear final responsibility for system behavior and permissions, enforced via deterministic infrastructure controls outside the agent |
| Anthropic | Trustworthy agents in practice (April 2026) | Four operational defense layers: model, harness, tools, and environment | No formal responsibility matrix; urges customers to restrict tools and permissions while flagging cross-boundary auth as an unresolved industry problem |
| CSA | Agent Shared Security and Safety Responsibility Model (Agent 3SRM) (June 2026) | Maps CSA AI Controls Matrix (AICM v1.1) to a 10-layer agent reference architecture | Introduces an "Agent Owner" with ultimate, non-delegable accountability (including sub-agent chains); public summary omits granular IAM splits |
| CoSAI | AI Shared Responsibility Framework V1.0 (May 2026) | Five architectural layers, IaaS/PaaS/SaaS matrix, and L0–L5 autonomy levels | Calls for one accountable party per component (assigning IAM to the end user/organization), though L4–L5 guidance discusses shared provider-developer accountability |
Notice the subtle friction hiding inside those frameworks. Microsoft's Learn documentation explicitly warns that its matrix is illustrative governance guidance—not a legal modification to customer contracts—and hammers home one rule of thumb: as you grant an agent more autonomy and broader tools, responsibility shifts back onto you, regardless of whether you buy a ready-made SaaS Copilot or roll your own orchestrator on Azure VMs.
AWS takes a complementary angle in its Agentic AI Security Scoping Matrix, classifying systems from Scope 1 (read-only operations) up to Scope 4 (fully autonomous, self-initiating agents) across dimensions like identity context, agency perimeters, and audit logging. Rather than trusting the model to behave, AWS urges builders to wrap the agent in deterministic infrastructure guardrails—an acknowledgment that non-deterministic software cannot reliably police itself.
Meanwhile, the Cloud Security Alliance's Agent 3SRM (released June 22, 2026) tries to close delegation loopholes by naming an "Agent Owner" with non-delegable accountability even when an orchestrator spawns sub-agents. And CoSAI's V1.0 framework—developed alongside OASIS Open and approved in May 2026—insists on naming a single accountable party per layer to prevent compliance finger-pointing, even as high-autonomy L4 and L5 deployments blur the boundary between the agentic platform provider and the application developer.
Anatomy of a Multi-Vendor Agent Incident
To see why abstract matrices crumble in the real world, consider a scenario unfolding daily on developer workstations: a coding agent reads an external support ticket through a Model Context Protocol (MCP) server. Unknown to the developer, that ticket contains hidden prompt-injection instructions telling the agent to modify source code and push the change to GitHub using the developer's local credentials.
Multi-vendor agent chains like this are rapidly becoming standard operating procedure. According to telemetry reported by Token Security in its BleepingComputer write-up, 60% of the Claude Code and Claude Desktop agents it monitors called two or more outside vendors within a single month, and 47% called three or more. Because Token Security did not publish its sample size, collection dates, methodology, or whether "agents" counted unique endpoints, users, or sessions, those figures shouldn't be mistaken for an industry-wide census. Even so, the architectural blind spots they highlight are very real, and real-world incidents have already proved the mechanics: in May 2025, Invariant Labs demonstrated how a poisoned GitHub issue could steer an agent connected to the GitHub MCP server into leaking private repository contents, and in July 2025, researchers at General Analysis showed a poisoned support ticket tricking an agent into extracting integration tokens via a Supabase MCP server.
When a poisoned ticket triggers an unauthorized GitHub push, who is actually responsible for stopping it? Let's inspect every link in the chain.
1. The Agent Harness: Maximum Visibility, Zero Liability
The local coding client or harness—whether Claude Code, Cursor, GitHub Copilot, or an OpenAI coding tool—has the clearest view of the crime scene. It sees both the incoming ticket text and the shell or git command queued to run.
Modern harnesses do deploy clever technical defenses. In Claude Code, for instance, Anthropic's documentation notes that "auto mode" became the default starting permission mode for interactive terminal and VS Code sessions (in Claude Code v2.1.283 and later, and earlier on paid tiers). In that mode, a separate server-side probe scans incoming tool results and flags suspicious content before the model reads it, while a classifier evaluates proposed actions with tool outputs stripped out so hostile ticket text cannot directly manipulate the classifier. By default, that classifier blocks high-risk moves like curl-pipe-to-bash, force pushes, and merging unapproved pull requests—though it still allows pushes to a developer's own branches.
Yet capability does not equal legal or operational responsibility. Every major coding harness explicitly places final accountability on the human operator through consent prompts and terms of service.
2. The MCP Layer: A Door Without a Bouncer
Because the malicious ticket entered through an MCP server, it is tempting to expect the Model Context Protocol—originally created by Anthropic in late 2024 and donated to the Linux Foundation's Agentic AI Foundation in December 2025—to catch the attack.
Read the MCP specification and its official SECURITY.md policy, however, and you will find an explicit disclaimer: "MCP itself cannot enforce these security principles at the protocol level". MCP defines a standardized JSON-RPC interface for tools, resources, and prompts, but leaves consent UIs, parameter validation, and execution sandboxing to client and server implementers. In fact, MCP's security policy states outright that LLM-driven tool invocations—including unexpected or chained tool calls—are expected behavior governed by application-level controls, not protocol vulnerabilities. Client metadata passed to servers is self-reported, meaning a typical MCP server checks whether a bearer token is valid and within rate limits, not whether the model was tricked into calling it. As Atlassian bluntly tells customers using MCP clients with Jira or Confluence, enabling those integrations is "a customer-elected action".
3. GitHub: Valid Token, Valid Push
By the time the rogue commit hits GitHub, it looks indistinguishable from normal developer work. Unless an administrator has configured branch protection rules on main, nothing blocks the push—and as GitHub's protected-branch documentation warns, "By default, the restrictions of a branch protection rule don't apply to people with admin permissions to the repository". In smaller engineering teams where developers frequently hold repository admin rights, default branch protections offer zero resistance to a compromised local token.
GitHub has made real strides in Enterprise AI visibility, rolling out Enterprise AI Controls generally in February 2026 along with actor_is_agent: true audit log markers and agent_session_id tracking. However, those native audit fields capture supported coding agents executing on GitHub itself—not a local terminal or IDE agent pushing commits with a developer's Personal Access Token. Under GitHub's Terms of Service, account owners remain responsible for all activity occurring under their credentials.
The Microsoft Entra Identity Nuance Admins Cannot Miss
If harnesses defer to users, MCP defers to implementations, and code hosts trust valid tokens, does giving every AI agent its own identity close the gap?
Only if you understand how identity providers actually evaluate tokens. Microsoft Entra ID provides a textbook case study of why "we gave the agent an Entra Agent Identity" is not a complete security strategy on its own.
Microsoft Entra supports three distinct agent authentication patterns, and security controls behave very differently across them:
- Delegated / On-Behalf-Of (OBO) Flow: This is the default pattern for interactive assistants acting for a signed-in employee. The token carries the user as the subject while identifying the calling agent. Crucially, Microsoft's Conditional Access documentation states that policies targeting an agent identity do not apply to OBO requests made on behalf of a user. Furthermore, Microsoft Entra ID Protection documentation explicitly states that in OBO flows, "risky activity is attributed to the user rather than the agent". Microsoft designed this intentionally so remediation targets a compromised user session without breaking the agent for everyone else in the tenant—but it means an admin checking only the Risky Agents report can miss a compromised delegated session entirely.
- Application-Only (Autonomous) Access: When a background or event-driven agent runs without a signed-in human, its Entra Agent Identity (a service principal created from an agent identity blueprint) is the token subject. Here, Conditional Access policies scoped to agent identities do apply, and Entra ID Protection's offline agent risk detections—including
unfamiliarResourceAccess,signInSpike,failedAccessAttempt, andthreatIntelligenceAccount—flag the agent itself. - Agent User Accounts: Digital worker agents that hold their own mailboxes or operate inside environments like Windows 365 Cloud PCs for Agents authenticate via dedicated agent user accounts. Administrators must explicitly target "Agent Users" in Conditional Access assignments, because policies targeting standard "Users" groups will skip them.
Even inside Microsoft's own stack, there is an operational catch: while Microsoft's shared responsibility matrix labels per-action authorization as "shared" in PaaS and SaaS models, runtime risk attribution for delegated agents still lands squarely on the human user. Worse, if an agent connects to an MCP server or third-party SaaS tool using a static API key instead of Entra OAuth tokens, it bypasses Conditional Access evaluation altogether.
An Actionable Governance Playbook for Enterprise IT
No single vendor in an agentic workflow sees the full picture. The local harness sees the prompt, the MCP server sees an API call, and GitHub sees a commit. Closing that visibility and accountability gap requires treating identity, least privilege, and cross-system logging as a single operational control plane:
- Inventory every agent, harness, and credential: Audit where employees are running local coding agents (Claude Code, Cursor, Copilot CLI), SaaS copilots, and custom PaaS orchestrators. Document every MCP server connection and every Personal Access Token, OAuth grant, or static API key in play.
- Assign a named owner and match policies to the token subject: Every agent needs a human owner with non-delegable accountability. Where possible, move agents off broad developer PATs onto dedicated, short-lived service principals or GitHub Apps. In Microsoft Entra, write separate Conditional Access policies for OBO users, autonomous Agent Identities (or blueprints), and Agent Users—and verify Entra ID Protection alerts cover both Risky Users and Risky Agents.
- Enforce per-action authorization and human-in-the-loop gates: Session-start authentication is no longer enough. Re-verify permissions on every sensitive tool call, and mandate explicit human approval before irreversible actions such as production deployments, external emails, financial transfers, or destructive deletions.
- Treat every external payload as hostile input: Support tickets, web pages, emails, and even messages from other agents are untrusted data. Enforce strict tool allowlists, default MCP connectors to read-only modes wherever write access isn't strictly required, and block local STDIO MCP servers from running outside containers or reduced-privilege sandboxes.
- Close downstream repository loopholes: In GitHub, enable branch protection on
mainand turn on "Do not allow bypassing the above settings" so repository admins—and any local agents hijacking their tokens—cannot merge unreviewed code or force-push. Require passing status checks and approval of the most recent reviewable push by someone other than the requester. - Stitch together a unified audit trail: Don't assume logs land in one place. In Microsoft Entra, agent sign-ins carry the
agentSignInevent type across four separate log tabs—so API queries and SIEM rules must filter explicitly for service principal and agent types. For GitHub Copilot and local CLI tools, pair enterprise audit logs with managed OpenTelemetry export or policy hooks to capture local activity, and correlate them with MCP server logs in your SIEM. - Rehearse your cross-vendor kill switch: Build and test a documented revocation runbook that simultaneously disables an agent's Entra identity, revokes its user OBO refresh tokens, kills GitHub App or PAT access, and pulls its MCP registry approval.
AI agents aren't going away, and neither is the productivity boost they bring to Windows desktops, developer terminals, and cloud workflows. What has to go away is the comfortable illusion that a model provider, protocol spec, or code host will spot bad intent on your behalf. In the agentic era, identity and authorization are the only threads that cross every vendor boundary—which makes owning them your best defense.
References
- AI Agents Are Creating a Shared Responsibility Gap BleepingComputer · 2026-11-23T10:00:10-05:00
- AI agent shared responsibility model - Microsoft Azure | Microsoft Learn learn.microsoft.com
- github.com docs.github.com