Claude Code security
Anthropic's agentic coding tool for the terminal, IDEs and GitHub.
The Injection has tracked 49 security stories affecting Claude Code since September 17, 2026 (research 11, supply chain 10, incident 9, vulnerability 9, attack 4, tool 3, benchmark 3), 10 rated high or critical. The most recent, disclosed November 26, 2026, is "TrojanPony: fake skill forks ship a Windows trojan to agent folders".
49
Stories
10
High or critical
3
With a CVE
2026-11-26
Latest disclosure
CVEs
| CVE | CVSS | Severity | Story |
|---|---|---|---|
| CVE-2026-109331 | 7.5 | Medium | Network-AI: a payload in a second field slips past the hook's deny list |
| CVE-2026-86063 | 7.7 | Medium | Claude Code: a branch named like a commit defeated plugin SHA pinning |
| CVE-2026-103435 | 7.7 | Medium | Claude Code: symlink race allowed writes outside the project |
Every Claude Code story
CRIT
Supply chain · AIR Security
TrojanPony: fake skill forks ship a Windows trojan to agent foldersTrojanPony is a live campaign that publishes fake improved copies of popular coding-agent skills and plugins. AIR Security counts 487 public repositories carrying the kit, which drops the MopsStealer trojan on Windows machines.
INFO
Tool · Elastic Security Labs
Elastic: 143 detection rules for AI agents and LLM platformsElastic 9.6 ships 143 SIEM detection rules tagged Domain: GenAI, covering hijacked coding agents, malicious MCP servers, LLMjacking and prompt injection. The rules are published in the public elastic/detection-rules repository.
INFO
Research · arXiv
Markdown Is Not a Firewall: a rules file did not hold four agentsA one page rules file acted as advice, not enforcement, when four coding agents met planted security boundaries, Sandeep Dhuri reports in a pre-registered study of Claude Code, Codex CLI, Gemini CLI and OpenCode.
INFO
Tool · NVIDIA
SkillEvaluator 1.0: NVIDIA's scanner for agent skills and pluginsSkillEvaluator 1.0 is NVIDIA's open-source checker for AI agent skills and plugins. The first full 1.0 release adds HarnessCheck, a static test for six coding agents, and runs its security tier without a model key.
HIGH
Supply chain · Bitdefender
Bitdefender: 22 GitHub repos make coding agents run a credential stealerBitdefender Labs found 22 GitHub repositories that run a credential stealer when a developer opens them in an AI coding tool, through planted agent instruction files and a Claude Code session-start hook.
INFO
Tool · Prime Radiant
External Sandbox: the coding agent stays outside the sandboxExternal Sandbox is a set of three Apache-licensed sandbox servers from Prime Radiant that run a coding agent's commands inside a Linux guest while the agent itself stays outside, behind a deny-by-default network proxy.
INFO
Incident · Google Threat Intelligence Group
exploit_agent: patch to exploit with no human in the loopexploit_agent is a multi-agent framework that compares software before and after a patch, works out the flaw, writes an exploit and runs it without a person. Google Threat Intelligence Group found it on an exposed staging server.
HIGH
Supply chain · GitGuardian
wfx-loot: an npm hook runs the CI secret stealer GitHub's holds missedwfx-loot is a credential-theft campaign that pushes a CI secret stealer into public repositories with stolen GitHub credentials. GitGuardian counted 28,500 payload patches from 2,367 accounts across 17,715 repositories.
HIGH
Incident · Cursor
Cursor: agent traces held the credentials that reached its marketplaceCursor says an access key it issued to Fireworks AI let an attacker read stored coding agent traces that still contained unredacted credentials, and that those credentials opened the SaaS tools used to tamper with its marketplace.
MED
Attack · Darktrace
Living off the AI: Claude memory stores carry an attacker's ordersDarktrace Signal Labs built a command-and-control channel that tasks Claude Code agents through Claude memory stores. The researchers say the chain uses no vulnerability, but needs a host foothold and the user's Claude Console credentials.
INFO
Supply chain · Microsoft Security
Trained to Betray: backdoored checkpoints hijack coding agent harnessesMicrosoft reports that a backdoor planted during post-training carries into coding agents: a poisoned open-weight checkpoint ran the attacker's action in 97% of trials under the Claude Code harness.
INFO
Benchmark · Wiz
Cyber Model Arena: Wiz scores 59 AI agents on offensive tasksWiz relaunched Cyber Model Arena, a benchmark that runs 59 agent configurations against 327 offensive security challenges with deterministic graders, and reports that the harness around a model shifts its score by about 5 points.
MED
Vulnerability · GitGuardian
Claude Code: 5,343 live secrets in public approval filesClaude Code approval files on public GitHub hold 31,088 distinct secrets, 5,343 of them still valid when GitGuardian detected them, because choosing Yes, and don't ask again saves the shell command as typed, keys included.
MED
Supply chain · Socket
strutil-core: a RubyGems worm writes itself into AI agent configsstrutil-core 1.0.1 is a malicious RubyGems package that steals credentials during install and edits AI coding tool config files so agents run it again. Socket reports RubyGems removed both published versions.
MED
Vulnerability · AIR Security
Office Party: a planted temp file runs code in Anthropic's Office skillsOffice Party is a code execution flaw in Anthropic's docx, pptx and xlsx skills. Their LibreOffice helper preloads a shim library from a fixed temp path without checking who wrote it. Anthropic calls the flaw out of scope.
LOW
Vulnerability · Anthropic
Claude Code: the agent put the user's email in User-Agent headersClaude Code added the signed-in account's email address to the User-Agent header on web requests it made, sending it to third-party sites. Version 2.1.317 added a built-in check on shell calls that carry the address.
INFO
Incident · Acronis
BOSSAI: one operator ran 12 AI agents against hundreds of targetsBOSSAI is a 12-agent attack mesh that one operator in Taiwan ran against hundreds of organizations in 11 countries, Acronis reports, after finding 9GB of the operator's own logs on an exposed server.
MED
Supply chain · Check Point Research
Prompt adware: a Codex jailbreak bundle rewrites the agent's instructionsHaiou is a jailbreak bundle for OpenAI Codex that rewrites the agent's global instructions so that greetings return an advertisement for an opaque LLM gateway. Check Point Research found no sign the gateway itself is malicious.
HIGH
Supply chain · Glow Labs
MCPhantom: agents install deprecated MCP servers with unpatched RCEAI coding agents pick deprecated Model Context Protocol servers out of their training data and install them, Glow Labs reports. The archived servers carry four high-severity flaws, including a prompt-injection RCE, and no fix is coming.
MED
Incident · SpyCloud
SpyCloud: commodity stealers now take Claude Code and Codex tokensCommodity infostealers have added modules that collect OAuth tokens, API keys and session files from local AI coding tools, SpyCloud reports. It has ingested more than 130,000 unique WardenStealer infections since August 3, 2026.
INFO
Research · CERT-EU
CERT-EU: a backdoored agent plugin never touches the modelCERT-EU modified plugins for Claude Code and pi so that a trigger phrase in user input sent host data to a collection endpoint. No tool call appeared, the conversation looked normal, and the agents' approval prompts never saw it.
HIGH
Supply chain · Symantec
AI relays: a setup script points Codex and Claude Code at a proxyA grey market relay service installs the real Codex and Claude Code CLIs, then rewrites their config to route prompts and keys through its own servers and turns off Codex sandboxing. Symantec counts a dozen affected organizations.
HIGH
Supply chain · Cursor
Cursor: a backdoored Claude Code extension opened SSH tunnelsCursor served tampered builds of the Anthropic.claude-code extension, versions 2.1.312 and 2.1.313, from its own extension marketplace for part of October 29, 2026. Cursor said at most 5,000 users were affected.
INFO
Research · Snyk
Snyk VulnBench 2.0: SAST and AI agents each miss what the other findsSnyk Labs reports that Snyk Code found 82.4% of 108 attacker-reachable vulnerabilities and Claude Code's security review found 79.3%, and that the two together reached 101 of 108, the best result of any configuration tested.
HIGH
Supply chain · JFrog Security Research
testmetest: 42 armed repos run a payload when an agent opens themJFrog found 42 armed GitHub repositories across 11 legitimate owners in the testmetest npm campaign. Each carries startup hooks for Claude Code, Gemini CLI, Cursor and VS Code, so opening the workspace starts a credential stealer.
INFO
Research · Manifold Security
Manifold: small models rarely refuse to tamper with their own logsManifold reports that two small open models refused no more than 4% of requests to delete or fake their own agent logs when no policy forbade it, and that removing a learned morality direction cut refusals further.
INFO
Incident · Dream
Dream: a chained PHP2Shell exploit rooted 25 serversA suspected China-nexus operator chained PHP2Shell with the Fragnesia kernel flaw to root 25 internet-exposed firewalls and servers, Dream Research reports, including three in a US government-affiliated network.
HIGH
Attack · Forever Security
Markdown in Downloads: a planted AGENTS.md hijacks Codex and Claude CodeA planted AGENTS.md file in a user's Downloads folder makes OpenAI Codex install malware, Forever Security reports, and a matching CLAUDE.md reroutes Claude Code's traffic to an attacker server that captures its OAuth token.
MED
Vulnerability · Anthropic
Claude Code 2.1.309: sandbox and permission checks could be bypassedClaude Code 2.1.309 fixes several ways the agent's sandbox and permission rules could be bypassed, including sandboxed Bash commands running shell startup files outside the sandbox and an Edit deny rule that did not block a Bash redirect.
MED
Attack · HiddenLayer
Man-in-the-Model: a compromised LLM gateway plants agent tool callsHiddenLayer shows that an attacker who controls an LLM gateway or inference server can insert tool calls into a coding agent's stream, so the agent runs file edits and commands the user never sees and the model never requested.
INFO
Incident · CrowdStrike
CrowdStrike: four unreported actors ran Claude Code intrusion agentsCrowdStrike found four previously unreported threat actors running offensive agent harnesses built on Claude Code, each recovered from an open directory the actor left exposed. Victims include Argentine healthcare and government bodies.
INFO
Research · Datadog Security Labs
Datadog: CodeGuard rules left an access flaw in agent-built appsProject CodeGuard's security rules did not stop coding agents from shipping an insecure direct object reference, Datadog Security Labs reports. Only GPT 5.5 closed the flaw with rules on, while Sonnet 5 and Composer 2.5 kept it.
INFO
Research · arXiv
AutoRedClaw: auto-generated attacks beat hand-built agent benchmarksAutoRedClaw generates agent attacks and the environments to run them, validated by execution. The authors report most of seven harnesses exceeded a 50% attack success rate, and their 330-case benchmark draws higher rates than AgentDojo.
MED
Vulnerability · Noma Security
SneakPeek: a big HTML file let Claude Code Desktop's preview read local keysSneakPeek is a data theft flaw in Claude Code Desktop's preview pane. HTML files over 256KB loaded as file:// URLs, skipping the content security policy, so embedded JavaScript read SSH and cloud keys. Anthropic fixed it in 1.30096.1.
INFO
Research · Redwood Research
Screwtape: edited agent transcripts slip past action-only monitorsScrewtape is a Redwood Research pipeline that edits real agent transcripts into attacks on the monitors watching AI agents. In 252 runs over 94 Claude Code and Codex transcripts it produced 35 attacks that evaded the authors' own monitors.
INFO
Research · Signals Corps
llms.txt: 2,035 sites ask AI agents to act on a user's behalfSignals Corps read the llms.txt files of 113,457 sites in Common Crawl and found 2,035 that ask an AI agent to take an action. Two sites tried to override the model, and one documentation site tells agents to sign users up and hide it.
INFO
Research · RST Cloud
RST Cloud: 18 of 293 in-the-wild AI cases were malware calling a modelRST Cloud screened 3,980 public threat reports from August 2025 to September 2026 and found 293 in-the-wild cases involving AI. Only 18 were malware that calls a model at runtime, 185 used AI as a helper and 29 were attacker-run agents.
MED
Vulnerability · VulnCheck · CVE-2026-109331 · CVSS 7.5
Network-AI: a payload in a second field slips past the hook's deny listNetwork-AI's ClaudeHookBridge matches deny patterns against only the first present field of a tool call, so a blocked command hidden in a second field, such as Write content, still runs. Fixed outside the 5.14.0 to 5.15.2 range.
INFO
Benchmark · Snyk
VulnBump: a dependency fix only counts if the tests still passVulnBump is an open benchmark from Snyk that counts a dependency upgrade as fixed only when the vulnerabilities are gone and the build and tests still pass. Four approaches scored 46.9% to 90.2% across 307 tasks.
INFO
Research · arXiv
Last Secure Code Benchmark: agents pass the tests, miss the securityLast Secure Code Benchmark asks six frontier coding agents to rebuild code that once held a known flaw, never mentioning security. The authors report up to 91.3% of tasks work and at most 25.1% are both working and secure.
MED
Vulnerability · Anthropic · CVE-2026-86063 · CVSS 7.7
Claude Code: a branch named like a commit defeated plugin SHA pinningCVE-2026-86063 let an attacker who controls a plugin repository bypass Claude Code's commit SHA pin by creating a branch named after the pinned hash. Anthropic fixed the check in 2.1.179.
MED
Attack · Straiker
Session Inception: an untrusted repo's hook runs in a child Claude sessionSession Inception makes a parent Claude Code session start a second session inside an untrusted repository, where a SessionStart hook in that repo's settings runs attacker code without the folder-switch confirmation.
INFO
Incident · ReversingLabs
ReversingLabs: behavior beat hashes on an AI-assisted spy campaignReversingLabs says it classified two GTG-20006 implants as malicious in August, two months before Anthropic's September report named the actor, and that behavior-based hunting held up while Claude was used to rebuild detected files.
INFO
Incident · CrowdStrike
ARTEX: attackers paired an agentic pentest tool with Claude CodeARTEX, an open-source agentic pentesting tool developed in China, was used with Claude Code and DeepSeek against South Korean financial organizations in late September 2026, CrowdStrike reports. Zscaler later found targets in 19 countries.
INFO
Incident · SOCRadar
CyberXero: an access broker ran 51 Claude Code agents against UkraineCyberXero is a Russian-speaking initial access broker driving 51 specialized Claude Code agents. SOCRadar found its exposed working directory and confirmed theft of over 628,000 records from four Ukrainian organizations.
INFO
Benchmark · arXiv
HarnessSecurity-Bench: auto-approve lifts attack success to 95.6%HarnessSecurity-Bench tests nine security mechanisms across six coding agent harnesses and reports that enabling auto-approve raises attack success from 29.2% to 95.6%, while command denylisting cut attack effects with a utility gain.
MED
Vulnerability · Anthropic · CVE-2026-103435 · CVSS 7.7
Claude Code: symlink race allowed writes outside the projectCVE-2026-103435 is a time-of-check to time-of-use race in Claude Code before 2.1.129. A user who can write to a shared workspace could swap a file for a symlink and make Claude Code write outside the project.
MED
Research · arXiv
Explosive prompts: dormant injections fire on 'thanks' in agentsExplosive prompts are dormant prompt injections that wait for a harmless trigger such as 'thanks'. A new paper reports 43% to 83% success on nine production agents, versus at most 3% for plain injections, and proposes the DeFuse detector.
HIGH
Vulnerability · AIR Security
Plugin4Shell: zero-click plugin RCE in four AI coding agentsPlugin4Shell is a zero-click remote code execution flaw in how Claude Code, Codex, GitHub Copilot and Gemini CLI install pinned plugins. AIR says Claude Code and Codex are fixed, Copilot is not, and Gemini CLI will not be patched.
Questions people ask
- Does Claude Code have known security vulnerabilities?
- Yes. The Injection has tracked 3 stories about Claude Code with a published CVE: CVE-2026-109331 (CVSS 7.5), a payload in a second field slips past the hook's deny list; CVE-2026-86063 (CVSS 7.7), a branch named like a commit defeated plugin SHA pinning; CVE-2026-103435 (CVSS 7.7), symlink race allowed writes outside the project. Check each story for fixed versions.
- What is the latest Claude Code security issue?
- The most recent story is "TrojanPony: fake skill forks ship a Windows trojan to agent folders" (critical severity), disclosed November 26, 2026 by AIR Security. TrojanPony is a live campaign that publishes fake improved copies of popular coding-agent skills and plugins. AIR Security counts 487 public repositories carrying the kit, which drops the MopsStealer trojan on Windows machines.
- Which attack techniques have been used against Claude Code?
- Stories about Claude Code on The Injection most often involve coding agents, credential theft, ai threat intelligence, detection. Each technique has a glossary entry with a definition and every related story.