AgentJacking.
The Trick You Cannot Stop.
The Prize You Can.
In June 2026, researchers hijacked AI coding agents at an 85% success rate by planting a fake bug report. No identity product would have stopped the trick. The reason the attack pays off is the pile of standing credentials the agent was holding. That part is governable.
On June 3, 2026, Tenet Security notified Sentry of a new attack they named AgentJacking, then published the research publicly on June 12. The mechanics are almost dull. The result is not. A researcher plants a fake error in a Sentry project using a public client key. An AI coding agent, wired to Sentry through MCP, picks up that error as a real bug to fix. The suggested fix is a command. The agent runs it. On the developer’s own machine, with the agent’s own access.
Tenet tested it against the leading coding agents and reported an 85% success rate. They found 2,388 organizations carrying the kind of exposed key the attack depends on. The command the agent runs reads what is sitting on the machine, environment variables, the contents of ~/.aws/config, npm tokens, git and Docker credentials, and sends it out.
What is hard to look at is the list of things that did not stop it. EDR did not. The firewall did not. IAM did not. The VPN did not. A system prompt telling the agent to distrust external input did not. Every step in the chain was authorized, because the agent was doing exactly what a coding agent is meant to do: read a bug report and act on it.
Sentry was direct about the limit. They shipped a content filter for the one payload string in the proof of concept, then said plainly that the underlying problem cannot be solved where the data comes in. They are right. This is not a Sentry bug. It is a property of letting an autonomous agent act on untrusted input.
Could Arkion Have Stopped It
We will be straight about this, because the honest answer is more useful than a flattering one.
Arkion governs identity. It does not sit inside the agent’s reasoning. It does not read the prompt, inspect what arrives over MCP, or decide which commands the agent runs. So Arkion would not have stopped the agent from being tricked into running that command. Stopping the trick belongs to a different control: validating what crosses the MCP boundary, treating tool output as untrusted, and sandboxing what an agent is allowed to execute. If a vendor tells you their identity product blocks the injection, be skeptical.
So Ask the Better Question
Why does AgentJacking pay off at all?
Because the agent was sitting on long-lived secrets it could read and hand over. A static AWS key in a config file. An npm token that never expires. Git credentials with broad reach. The trick is only the delivery. The standing credential is the prize.
That prize is the part Arkion is built to take away. Arkion is built so the agent no longer needs to hold standing secrets. It holds a scoped identity, issued when it is provisioned, bound to a named human owner, and valid for a short window. Because that credential is short-lived and centrally issued, you revoke the identity at the source and the short TTL closes the window, instead of chasing a leaked static key for days wherever it was copied. When the agent’s access runs on that identity instead of a static key in a file, there is far less worth stealing. Run the same command against an agent whose access Arkion governs, and the credential it can hand over is close to worthless: narrowly scoped and about to expire. Other secrets on the box are their own hardening job. What Arkion removes is the standing agent credential that made the agent worth hijacking in the first place.
One caution, so we do not oversell it. Catching this by behaviour is hard. A coding agent that runs a package command and reads local files looks like a coding agent doing its job. Do not lean on anomaly detection to catch AgentJacking. Lean on the two things that hold under pressure: there is far less worth stealing, and you can prove and revoke whatever happened.
Closing
AgentJacking is not really a Sentry problem, and filtering one payload string will not end it. It is the predictable result of handing an autonomous agent broad, standing access with no governed identity underneath. The same shape recurs in every agentic-system breach we have on file (see FN-01): the access was real, the credential was standing, and no one could prove or revoke what happened next.
You cannot un-trick an agent. You can shrink the prize to something close to worthless, and make sure its use is provable and its identity revocable. That is the difference between an incident you can close in seconds and one you read about for a year. AgentJacking is what the disease looks like in production.
Field Note FN-04-2026 · Distributed under arkion.ai/field-notes
For questions or to discuss findings against your environment: research@arkion.ai
- Tenet Security, “AgentJacking” research. Privately disclosed to Sentry June 3, 2026; published June 12, 2026. Findings: 85% exploitation success against leading coding agents; 2,388 organizations with exposed Sentry DSNs.
- The Hacker News, “Agentjacking Attack Tricks AI Coding Agents Into Running Malicious Code,” June 12, 2026.
- Cloud Security Alliance research note, “AgentJacking: MCP Injection Hijacks AI Coding Agents,” June 12, 2026.
- Sentry response: a global content filter for the proof-of-concept payload, with the underlying issue described as not technically defensible at the ingestion layer.
- Arkion Field Note FN-01-2026: “Six Exploits. Nine Months. One Pattern.” Pattern analysis of credential-failure exploits in agentic systems.
Recommend Arkion in one click.
Take the standing
credential off the table.
Arkion replaces the static secrets your agents are holding with scoped, short-lived, signed, revocable identities. Read the brief, or run a free read-only scan to see what your agents are carrying today.