AI Agents Are Creating a Shared Responsibility Gap: What IT Admins Need to Know
AI Agents Are Creating a Shared Responsibility Gap: What IT Admins Need to Know
The Attack Already Happened — You Just Don't Know Who Owns It
Consider a coding agent that reads a support ticket through an MCP server. That ticket contains malicious instructions. The agent uses the developer's token to push a change to GitHub. In this scenario: the harness flags something suspicious, the MCP server logs a token request, and GitHub records the push attributed to the developer. No single platform sees all three events.
Now ask the operational question: which team owns this incident? Which tool raised the alert? Which log has the full story?
The answer is that none of them do. And the five major frameworks that have tried to address this cannot agree on who should.
That is the actual problem. Not the attack technique. The governance gap the attack walks through.
The Attack Chain No Single Vendor Sees
The three-hop chain is the detection problem in structural form. Each platform sees one event and attributes it to whoever holds the credential at that moment.
Flags suspicious content
Logs token usage only
Attributes to developer
Five Frameworks, Zero Consensus
Five organizations have published guidance on who is responsible for AI agent behavior. The source material covers Microsoft, AWS, Anthropic, CSA, and CoSAI. On the two questions that matter most operationally, who owns agent identity and who owns agent behavior, they do not agree.
| Framework | Who owns agent identity | Who owns agent behavior |
|---|---|---|
| Microsoft | Customer (IaaS); shared in PaaS and SaaS. Entra agent identity is a service principal in the customer's tenant. | Customer remains accountable for agent actions across all deployment models. |
| AWS (AgentCore) | No agent-specific model. AWS applies its general shared responsibility model; builders bear final responsibility for the systems they assemble. | Builders are responsible for permissions and behavior of the agents they deploy. |
| Anthropic | Not formally assigned. Authentication and permissions across agent boundaries are described as an unresolved challenge in Anthropic's NIST response. | Defenses are called for across all four layers (model, harness, tools, environment), but no matrix assigns ownership. |
| CSA (Agent 3SRM) | Not detailed in the public summary. The summary introduces an Agent Owner with ultimate, non-delegable accountability. | Agent Owner bears accountability that cannot be delegated, including for sub-agent delegation. |
| CoSAI (AI SRF V1.0) | Assigned to the end user or organization in the IAM matrix. | One accountable party per component is the stated principle, but at autonomy levels L4 to L5, shared accountability between agentic provider and application developer creates a tension with that principle. |
Only Microsoft and CSA assign ownership of agent identity at all, and they reach different conclusions. Anthropic explicitly names identity and permissions across agent boundaries as unresolved. CoSAI's own framework creates an apparent internal tension at the highest autonomy levels.
The practical consequence: if your organization deploys an agent today, there is no industry consensus telling you who owns its identity, its access scope, or the actions it takes on behalf of a user. That determination is yours to make, and nothing in these frameworks forces you to make it before deployment.
Where Attribution Falls by Default
Microsoft's framework is the most detailed of the five, and it surfaces the sharpest gap.
Microsoft gives agents their own identity: an Entra agent identity is a service principal in your tenant. The framework marks per-action authorization as a customer responsibility in IaaS deployments and a shared responsibility in PaaS and SaaS deployments. That is a meaningful structure. It creates an addressable identity, a scope boundary, and a point of control.
Then comes the documented behavior that undoes the governance story.
When an agent acts on behalf of a user, Microsoft's documentation states that risky activity is attributed to the user. A Conditional Access policy scoped to the agent's service principal identity does not cover requests the agent makes on behalf of that user. The policy applies to the identity used for authentication, not to the action performed.
Which means: the agent has an identity, the framework assigns shared responsibility for authorization, but when something goes wrong, the product records it under the delegating user. The governance model and the product behavior point in different directions.
That is not a limitation of Entra or Conditional Access specifically. It is the structural consequence of delegation: the agent borrows the user's authority, and the user's identity follows the action. Building a governance model on top of an attribution mechanism that defaults to the human creates an accountability gap that survives even good identity hygiene.
What Your Detection Stack Actually Sees
The detection gap is not theoretical. It follows directly from how each layer logs and attributes events.
| Layer | What it logs | What it attributes | What it misses |
|---|---|---|---|
| Harness (e.g., Claude Code) | Incoming tool results, flagged content, classifier decisions | Action to the agent session | The downstream repository push; whether the flag resulted in a blocked action or a warning |
| MCP Server | Token requests, tool calls | Token usage to the requesting identity | The instruction that triggered the token request; intent is not logged |
| GitHub | Pushes, branch changes, actor_is_agent marker (for agents running on GitHub natively) | Push to the developer's account by default | Whether actor_is_agent is set for a local agent (e.g., Claude Code running outside GitHub's own infrastructure); the source states this marker applies to agents running on GitHub and does not state it marks a local agent's push |
| Entra / Conditional Access | Sign-in events for the service principal identity | Authentication to the agent service principal | Requests made on behalf of the delegating user; CA policy does not evaluate those requests against the agent identity |
| SIEM / Sentinel | Whatever each upstream source sends | Inherits the attribution from each source | The cross-hop sequence; no native correlation across harness telemetry, MCP logs, and GitHub audit events |
The last row is the operational problem. Each source logs correctly within its own scope. No source aggregates the chain. A SIEM ingesting all three receives three separate, correctly attributed events that individually look normal. The sequence that makes them suspicious is invisible without explicit correlation logic built by the security team.
Identity as the Only Thread Across the Chain
The detection gap has a structural remedy, even if it is partial. Identity is the one element that crosses the harness, the MCP server, and the repository. A developer's token appears in all three hops. A service principal acting on behalf of that developer appears in the Entra sign-in log. If you can anchor the cross-hop correlation to identity, you can build detection logic that the individual platform logs cannot provide.
The architecture above has one dependency: the agent must have its own service principal identity, not simply the developer's delegated token. A developer's personal access token used directly by the agent produces no service principal sign-in log entry. The correlation layer has nothing to anchor to.
That is why identity assignment is not an optional governance step. It is the prerequisite for any cross-hop detection logic to function at all.
What This Does NOT Solve on Its Own
Assigning an Entra agent identity and ingesting GitHub audit logs into Sentinel does not close the full gap.
The MCP server logs a token request. It does not log the instruction that caused the request. If the attack entry point is a poisoned support ticket in Atlassian or a malicious MCP message, the instruction-level evidence exists in the harness telemetry, not in the MCP log or the repository audit trail. Cross-hop correlation can tell you that an agent-attributed push happened after an anomalous token request. It cannot reconstruct the prompt that initiated the sequence without harness-level telemetry, which is not currently a standard SIEM data source.
Branch protection on GitHub stops unauthorized pushes to protected branches. By default, those rules do not apply to repository administrators. An agent running under administrator-equivalent credentials bypasses the control the rule was designed to provide. The documented default behavior means the most privileged accounts are the ones the control does not cover.
Conditional Access policy scoped to the agent service principal does not evaluate requests the agent makes on behalf of a delegating user. Narrow scope reduces blast radius; it does not make CA an authorization enforcement point for delegated actions.
None of this means the controls are not worth implementing. It means that implementing them without understanding these boundaries produces false confidence. The coverage map has real gaps, and those gaps need to be named before you brief a CISO on current posture.
Coverage Gap Map: Where Defenders Are Blind Today
| Layer | Available control | Documented gap |
|---|---|---|
| Harness | Content scanners, classifier-based action blocking (Claude Code), approval prompts (OpenAI, Cursor, GitHub) | Responsibility assigned to the user in harness terms of service; no standard telemetry format for SIEM ingestion |
| MCP Server | Token usage logging | Instruction that triggered the token request is not logged; intent is not recoverable from MCP logs alone |
| GitHub (native agents) | actor_is_agent audit log marker, branch protection rules | actor_is_agent applies to agents running on GitHub; source does not confirm it marks pushes from local agents (e.g., Claude Code running off-platform); branch protection does not apply to admins by default |
| Entra / Conditional Access | Agent service principal identity, narrow scope, token expiry | CA policy on the agent identity does not cover delegated requests; risky activity is attributed to the delegating user |
| SIEM (Sentinel) | Ingestion of GitHub audit log, Entra sign-in logs | No native cross-hop correlation; custom KQL required; harness telemetry is not a standard connector today |
| Multi-agent / sub-agent pipelines | No consensus framework applies | CoSAI identifies an apparent tension at L4-L5 autonomy; CSA assigns non-delegable accountability to the Agent Owner, but sub-agent delegation accountability is unresolved across all frameworks |
Governance Controls That Change the Risk Posture
The governance argument reduces to four decisions that must be made before an agent reaches production, not after an incident forces the question.
Agent inventory and ownership. Every agent needs an owner: a named person or team accountable for its permissions, behavior, and revocation. The CSA framework introduces the concept of a non-delegable Agent Owner, and that principle is sound regardless of which framework your organization adopts. Without an owner, there is no one to revoke access when the agent is decommissioned, no one to review permission drift, and no one who receives the alert when the SIEM fires.
Identity assignment before deployment. Each agent needs its own Entra service principal, not a delegated user token or a shared service account. This is the prerequisite for every detection query below. A service principal that does not exist cannot be correlated across logs. The scope assigned to that service principal should reflect only what the agent needs for its defined task, with explicit token expiry rather than long-lived credentials.
Branch protection that covers privileged accounts. GitHub's default behavior exempts repository administrators from branch protection rules. If an agent runs under administrator-equivalent credentials, the protection does not apply. The fix is explicit: configure branch protection to require pull request reviews even for administrators. The source is clear that the default does not provide this.
Audit log ingestion into the SIEM before the agent goes live. GitHub audit logs, Entra service principal sign-in logs, and any MCP server logs the organization controls should be flowing into Sentinel before the agent is in production use. Building detection after the fact, or discovering during an incident that a data connector was never configured, makes the coverage gap structural rather than temporary.
Detection Queries for the Coverage You Can Close Now
The three queries below target the coverage gaps that are closable today, using data sources that can be ingested into Microsoft Sentinel. Each has a stated dependency. Treat the dependencies as prerequisites, not caveats.
Query 1: GitHub agent-attributed pushes (requires GitHub audit log connector)
This query surfaces push events where actor_is_agent is true. It applies to agents running natively on GitHub. The source does not confirm that this marker is set for local agents (such as Claude Code) pushing via a personal access token off-platform.
GitHubAuditLog
| where TimeGenerated > ago(7d)
| where Action == "git.push"
| where actor_is_agent == true
| project TimeGenerated, Actor, Repository, Action, IpAddress, actor_is_agent
| order by TimeGenerated descQuery 2: Entra service principal sign-ins correlated with GitHub push events by time window
This query identifies Entra service principal sign-ins that occur in a narrow time window before a GitHub push. It requires that your agents have dedicated service principals (not delegated user tokens). There is no stable universal join key between Entra service principal names and GitHub actor usernames across these two log sources without an explicit enrichment table. This query uses a time-window proximity approach. To use it operationally, you must maintain a lookup table (AgentIdentityMapping) that maps your Entra service principal display names to their corresponding GitHub actor names.
let AgentPushes = GitHubAuditLog
| where TimeGenerated > ago(7d)
| where Action == "git.push"
| project PushTime = TimeGenerated, GitHubActor = Actor, Repository;
let AgentSPNSignIns = AADServicePrincipalSignInLogs
| where TimeGenerated > ago(7d)
| project SignInTime = TimeGenerated, SPNDisplayName = ServicePrincipalName, AppId;
// Requires an identity mapping table: Entra SPN DisplayName -> GitHub username
// Without this enrichment, no stable join key exists between these two sources.
// Replace the lookup below with your maintained mapping.
let AgentIdentityMapping = datatable(SPNDisplayName: string, GitHubActor: string)
[
"my-coding-agent-spn", "org-coding-agent",
"deploy-agent-spn", "org-deploy-agent"
// Add rows for each agent identity in your tenant
];
AgentSPNSignIns
| join kind=inner AgentIdentityMapping on SPNDisplayName
| join kind=inner AgentPushes on GitHubActor
| where PushTime between (SignInTime .. (SignInTime + 5m))
| project SignInTime, PushTime, SPNDisplayName, GitHubActor, Repository, AppId
| order by SignInTime descThe join above requires the AgentIdentityMapping lookup table populated with your actual service principal-to-GitHub-actor mappings. Without that table, this query returns no results. Entra service principal display names and GitHub actor usernames are different namespaces with no automatic correspondence.
Query 3: Conditional Access coverage gap — agent service principals where user-delegated requests exist
This query identifies sign-in events where an agent service principal authenticated but the sign-in was classified as a delegated user action, which are the events CA policies on the agent identity do not evaluate. It is a gap indicator, not a threat indicator on its own.
AADServicePrincipalSignInLogs
| where TimeGenerated > ago(7d)
| where ConditionalAccessStatus != "success" or isempty(ConditionalAccessStatus)
| where ResourceDisplayName has_any ("GitHub", "MCP", "agent")
| project TimeGenerated, ServicePrincipalName, AppId, ConditionalAccessStatus,
ResourceDisplayName, IPAddress, Location
| order by TimeGenerated descBefore running these queries in production, confirm: (1) GitHub audit log is ingested via the GitHub connector in Sentinel; (2) AADServicePrincipalSignInLogs is flowing (requires Entra Diagnostic Settings with sign-in logs enabled); (3) agents have dedicated service principals rather than delegated user tokens — Query 2 and Query 3 return no useful signal without this prerequisite in place.
The Decision You Cannot Defer
The frameworks will not resolve the ownership question for you. The five that exist disagree on who holds agent identity, split on whether behavior accountability is shared or individual, and leave sub-agent delegation explicitly unresolved. Waiting for consensus is not a viable posture.
My recommendation is to treat agent identity assignment as a deployment gate, not a post-deployment task. An agent that reaches production without a dedicated service principal, documented scope, and audit log ingestion active cannot be detected, cannot be correlated across the chain, and cannot be revoked cleanly. The governance gap the attack walks through is not a technical failure. It is an ownership decision that was not made in time.