AI coding tools are the new supply chain: four warnings from this autumn
A backdoored extension served to Cursor users, a poisoned AGENTS.md, a Docker sandbox escape and backdoored models. What is real, what is research, 9 defenses.
The KnowWhyy team · · 9 min read
Between late October and mid-November 2026, four separate reports showed how AI coding tools can be turned against the developers using them. One was a real attack that reached developers' machines. One was a real attempt that was blocked. Two were research. The coverage tends to blur those together, and the difference matters when you decide what to fix first.
This post takes each in turn, says plainly which kind it is, and ends with nine defenses. Sources are linked throughout.
Incident
What kind
Date
Tampered Claude Code extension served to Cursor users
Real attack
October 29
Poisoned AGENTS.md file in a Downloads folder
One real attempt, blocked; the rest is lab testing
Reported October 22 to 27
Docker Sandboxes file escape, CVE-2026-103916
Vulnerability found by a researcher; no known exploitation
Fixed November 3
Backdoored models and training data
Lab research
Published November 12
1. A backdoored extension reached Cursor users
What happened. On October 29, 2026, for about 11 hours, Cursor's extension marketplace served a tampered copy of the Claude Code extension. the attacker "placed malicious, unauthorized copies of Anthropic's Claude Code extension directly on the cache" that serves its marketplace, and that "Anthropic did not publish this copy, and this was not a vulnerability in Anthropic's product." The tampered versions were 2.1.312 and 2.1.313.
Get started
Ask your first question in minutes.
Create a workspace, connect a tool and choose what gets indexed. The free plan includes GitHub, Slack, Notion, Jira, Confluence and Google Drive.
That distinction is worth repeating, because some early coverage framed it as a breach of Anthropic. Anthropic says the copy was one "we didn't build or publish", and Microsoft's analysis says the bad copy was never on the Visual Studio Marketplace or npm. The copy was planted in Cursor's own distribution system.
What it did. According to Microsoft and Cursor, the code ran as soon as the extension loaded. It collected details about the machine, added an attacker's SSH key labeled svc-telemetry to the user's authorized keys, tried to turn on SSH and open a tunnel back to the attacker, and installed itself to keep running after a restart.
How bad it was. Cursor says at most 5,000 users potentially received the build. That is an upper bound on who may have downloaded it, not a count of machines an attacker entered. Cursor also says the step that enabled SSH failed on most macOS and Windows machines, so the attacker couldn't log in through the tunnel on those hosts. The key and the persistence were still written.
How the attacker got in. Cursor traces it to the breach at its AI provider, Fireworks: a key Cursor had issued to Fireworks was exposed, which led to a stolen credential and then to the marketplace cache. We cover that chain in The Fireworks AI breach.
If you used Cursor that day: check your SSH authorized_keys file for an entry labeled svc-telemetry. Cursor warns that uninstalling the extension may not be enough, because the payload leaves separate scripts behind. Its security notice has check commands and cleanup scripts.
2. A text file that tells your agent what to do
What happened. Coding agents read instruction files such as AGENTS.md and CLAUDE.md from the folder they're started in, and follow them. Forever Security found a malicious AGENTS.md in the Downloads folder of a real customer machine. It told the agent to install an npm package. The install was blocked before any code ran, and nobody has established how the file got there.
What is lab work. Everything else in the report is the researchers reproducing the idea. In their tests, using the attacker's own file, OpenAI's Codex followed it in more than 90% of attempts. Most runs used a harmless stand-in for the package. Against Claude Code, with a file the researchers wrote themselves, the agent rewrote a setting about 50% of the time. That leaks its login token at once and, the researchers say, sets up code execution the next time Claude starts in that folder. Code ran inside the same session about a fifth of the time. They note Claude "was much harder to fool".
Why there's no patch. The researchers say "There is nothing here for OpenAI or Anthropic to patch", because the agent is doing what it was designed to do: reading instructions from its working folder. The Cloud Security Alliance draws the practical conclusion: "treat instruction and agent-settings files as code."
3. The sandbox had a side door
What it is. Docker Sandboxes is meant to keep an AI agent's file access inside one workspace. Endor Labs found that the command for copying files in and out, sbx cp, followed symbolic links out of the workspace. An agent could prepare a link, and when the developer later ran a copy, a file from elsewhere on the machine would be read or overwritten.
Its limits. It needs the developer to run a copy command, and reading files out works one file at a time, with a filename the developer types. The researcher didn't demonstrate running code on the host and says so. No exploitation has been reported.
The fix. Upgrade to Docker Sandboxes 0.51.0, released November 3, 2026. A first fix in 0.48.0 was judged incomplete. Docker, which assigned the CVE record, rates the flaw 8.4 (high, CVSS 4.0). Endor Labs rates it 8.2 under CVSS 3.1 and 7.3 under CVSS 4.0.
The takeaway isn't that sandboxes are pointless. A sandbox is software too, and it needs updating like the rest.
4. The model itself can be the backdoor
What it is.Microsoft researchers tested whether a coding model could be trained to misbehave on a trigger. In one experiment they poisoned about 1% of a training set, 90 examples in roughly 9,000, and the fine-tuned model took the unsafe action in about 78% of trials on the setups it was trained for. In another, backdoored open-weight models triggered on repositories they had never seen in 84% to 95% of cases in the strongest setup tested, and 33% to 63% in a simpler one.
What it isn't. This is lab research, not an observed attack. Microsoft did find a few suspicious rows in one public training dataset, but couldn't tell whether they were deliberate. It says the results "don't indicate a weakness in the default Claude Code or Codex CLI configurations". The risk appears when a team runs a model from an untrusted source, or fine-tunes on data it hasn't reviewed.
Why it matters anyway. A backdoored model can be given a perfectly innocent prompt and still choose a harmful action. Checking the prompt may not catch it. Limiting what the agent is allowed to do still helps.
What the four have in common
In each case the developer did nothing unusual. They opened their editor, started an agent in a folder, copied a file, or loaded a model. The compromise arrived through something the tool trusted on their behalf: its marketplace, a file in the working folder, its sandbox, its model.
That's what "supply chain" means here. A coding agent runs with your permissions, your SSH keys and your cloud credentials. Anything that can steer the agent, or the tool around it, inherits all of that.
Nine defenses
Drawn from the sources above. Nearly all are free.
Start agents in the project folder, never in Downloads or your home directory.
Review instruction files like code.AGENTS.md, CLAUDE.md, rules files and agent settings should go through pull request review, with a named owner.
Stop agents from editing their own settings. Enforce it with file permissions or the sandbox, not a written rule the agent is asked to follow.
Leave approval prompts and sandboxes on, and treat any instruction to bypass them as a red flag. The real file in incident 2 told the agent to switch them off. It was stopped by a security tool that recognized the package.
Keep the sandbox updated. If you use Docker Sandboxes, be on 0.51.0 or later.
Restrict extensions to approved publishers, and set an install cooldown so newly published versions wait before installing. Microsoft recommends both for organizations using Cursor. Neither is proven against a tampered marketplace cache, but a delay longer than the 11 hours this copy was live would likely have limited who received it.
Keep production credentials out of the agent's reach. Don't run agents in a shell that has cloud keys loaded.
Run models only from sources you trust, and pin exact versions.
Check for leftovers after an incident. Removing an extension or a file doesn't remove what it installed. Look at SSH keys, startup items and agent config files, then rotate credentials from a clean machine.
None of these incidents involved KnowWhyy, and the reason is structural, not a claim to be more careful than anyone else: we don't run on your machine. KnowWhyy has no editor extension, no command-line agent and no MCP server. Nothing of ours runs on your computer, so nothing of ours can reach your shell, your SSH keys or the files on your machine. It's a web app that reads the sources you connect, GitHub, Slack, Notion, Jira, Confluence and Google Drive, and answers questions with citations.
That removes the first three kinds of risk: a tampered extension, a planted instruction file, a sandbox escape. It doesn't remove the fourth, since we rely on AI models too, and it doesn't remove all risk. Two points are worth being exact about:
Planted instructions can exist in your content too. A Slack message or a wiki page could contain text written to manipulate an AI. KnowWhyy's answering model is instructed to treat everything it retrieves as untrusted data and to ignore instructions inside it. That lowers the risk; no one can honestly say it eliminates it. What limits the damage is that KnowWhyy never posts, edits or deletes anything in your tools. Beyond reading, it can only join the Slack channels you pick and register its own Jira webhooks. A manipulated answer could still be wrong or misleading, which is why every claim carries a citation you can open, but it can't change a ticket, send a message or edit a page.
We depend on outside AI providers, as our Fireworks post explains in detail.
No. Cursor, Anthropic and Microsoft all say the tampered copy was served from Cursor's marketplace, and Cursor says it was placed in the marketplace's cache. Anthropic says it didn't build or publish it.
How many developers were affected by the Cursor extension attack?
Cursor says at most 5,000 users potentially received the malicious build during about 11 hours on October 29, 2026. It hasn't published a count of machines actually accessed.
What is instruction-file poisoning?
Planting a file such as AGENTS.md where a coding agent will read it, so the agent follows the attacker's instructions as if they were the project's.
Is CVE-2026-103916 being exploited?
No exploitation has been reported. Upgrade Docker Sandboxes to 0.51.0 or later.
Are AI coding agents safe to use?
With the same care as any tool that runs with your permissions. Keep approvals on, limit what the agent can reach, and review the files that instruct it.
The short version
A tampered Claude Code extension was served by Cursor's marketplace for about 11 hours on October 29, 2026, to at most 5,000 users. Anthropic wasn't at fault.
A malicious AGENTS.md was found on a real machine and blocked. In lab tests, agents followed planted files often.
Docker Sandboxes from 0.28.0 up to, but not including, 0.51.0 let a copy command reach files outside the workspace.
Microsoft showed in the lab that models and training data can carry backdoors that prompt checks don't catch.
Start agents in project folders, review instruction files as code, keep approvals on, delay extension updates, and keep production credentials away from agents.