· AI dev tools
Token Security examines shared responsibility gap for AI agents across platforms
In a scenario where a coding agent processes a support ticket containing malicious instructions, leading it to push a change to GitHub using a developer's credentials, the core question arises: who…
In a scenario where a coding agent processes a support ticket containing malicious instructions, leading it to push a change to GitHub using a developer's credentials, the core question arises: who is accountable for preventing that harmful push? This situation exemplifies a growing shared responsibility gap as AI agents function across numerous platforms, meaning no single vendor possesses complete visibility or control over their operations.
The software that executes the agent possesses the most comprehensive view, knowing where the instructions originated, even if it doesn't grasp the underlying reason for them, and it knows the command about to be executed. For instance, Claude Code performs checks on both fronts; a server-side probe "scans incoming tool results and flags suspicious content before Claude reads it," and in auto mode, which is now the default for interactive sessions, a separate classifier prevents actions that appear "driven by hostile content Claude read."
However, this level of technical capability does not automatically confer responsibility; the onus is placed squarely on the user, both through interface design and stated terms. The malicious ticket arrived via MCP, a protocol specifically designed for model clients, which one might anticipate should bear some of the burden, conceptually suggesting expanded liability for its developers. Yet, the MCP specification shifts this burden back to the client, stating that clients "SHOULD validate tool results before passing them to the model," and further mandates that "there SHOULD always be a human in the loop with the ability to deny tool invocations."
The server's functions are limited to managing tokens, inputs, access controls, and rate limits; consequently, a typical MCP server verifies who initiated a request, not whether that request was appropriate. This limitation stems from the MCP specification itself, which omits the term "prompt injection" and provides the server with no verified data regarding the caller; client information is merely "self-reported," and the spec plainly states that "MCP itself cannot enforce these security principles at the protocol level."
Furthermore, Atlassian classifies the utilization of MCP clients within its products as "a customer-elected action." The push ultimately reaches GitHub with a valid token; unless an administrator has established a branch protection rule for the main branch, nothing halts it, and by default, such rules "don't apply to people with admin permissions to the repository." While GitHub's audit log includes an agent marker, actor_is_agent, for agents operating on its platform, the documentation does not specify this marker applies to pushes made by a local agent. Moreover, the terms of service mirror those of others: "You are responsible for all content posted and activity that occurs under your Account."
In an ideal operational state, every agent should possess its own distinct identity, one that would inherently possess narrower, time-limited permissions. Microsoft, for example, furnishes agents with unique identities; a Microsoft Entra agent identity functions as a service principal within your Entra tenant. Microsoft's framework also designates per-action authorization as shared, but its documentation notes that "risky activity is attributed to the user" when an agent acts on behalf of that user, because a Conditional Access policy targeting an agent identity "doesn't cover agent requests made on behalf of the user." This illustrates the problem within a single vendor ecosystem. Even when a framework suggests shared responsibility, the product ultimately assigns the risk to the user when the action takes place, leaving the organization exposed.
This situation is likely to persist because, despite platforms theoretically having more power, agents are viewed as extensions of human intent, even when they exhibit their own form of "will." This novel landscape necessitates an honest assessment of the inherent risk and a decision regarding the level of that risk one is prepared to accept. This assessment is complicated because the agent cannot be viewed as a singular entity; the harness provides its telemetry, Atlassian maintains its MCP log, and GitHub holds the developer's push record.
Since coding agents like the one described operate under the developer's credentials by default, their actions appear to originate from that developer. No single vendor in this chain sees the agent in its entirety; only the identity the agent utilizes spans all three systems, making it the crucial point where a single owner can define scope, set expiration dates, and implement revocation. While branch protection and allowlists offer some assistance, the identity mechanism is what links everything together.
The optimal approach is to treat the agent as one unified identity, regardless of how many vendors it interacts with. An organization cannot offload accountability for an agent's actions to a model provider, nor can it deduce intent merely from an authenticated request. Instead, the organization can appoint an owner, restrict the agent's access, trace its activities across various systems, and devise methods to halt its operation. These measures enable the adoption of agents in a governable manner without presupposing that any one vendor can observe the entire workflow. If the responsibility rests with your organization, then exercising that responsibility proves beneficial. For those prepared to secure their AI Agents for future expansion, engaging with the Token Security team to book a demonstration is recommended.
Why it matters
For developers building and deploying agentic systems, this ambiguity means current security tooling lacks a clear framework for accountability. Organizations must define agent ownership and permissions to mitigate risks from compromised or rogue agent actions.





