Claude Code
Claude Code is Anthropic’s legitimate AI-assisted coding tool, not a malware family. Threat actors have abused its execution capabilities, configuration, and extension distribution to support intrusions and deliver separate malicious payloads.
UNC6836 modified Claude Code settings on already-compromised systems so that launching the application downloaded the SOMBERMEME backdoor during attacks against cryptocurrency firms in North America and Europe. In a separate software supply-chain compromise, attackers uploaded a malicious Claude Code extension to Cursor’s marketplace after obtaining unauthorized access through a stolen third-party access key. The tampered extension installed persistent SSH backdoors on developers’ computers.
Attackers have also used Claude Code workflows to assist credential discovery, analyze stolen information, and support extortion operations. Separately, laboratory research demonstrated remote control of Claude Code through abuse of its memory stores feature using stolen Claude API keys, along with data exfiltration through the Claude Files API. These incidents concern malicious use or modification of legitimate software rather than a single, consistently defined malware implementation.
Associated threat actors
2 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
After the initial compromise, the attackers modified the Claude Code app's settings so that at launch it triggered the download of the SOMBERMEME backdoor.
After the initial compromise, the attackers modified the Claude Code app's settings so that at launch it triggered the download of the SOMBERMEME backdoor.
Techniques & procedures
43 distinct techniques documented for this family, organized by ATT&CK tactic.
Reconnaissance
4 techniques
Reconnaissance
“The group even trained a vision classifier on scraped Ukrainian combat footage.”
The attacker used the agent to identify exploitable services on targets’ systems... with the attacker preferring to issue vague directives such as “recon this” and allowing Claude to carry out the requests autonomously.
During the Anthropic AI-orchestrated Campaign, the adversary used Claude Code to scan target infrastructure to identify potential vulnerabilities and to enumerate services and endpoints. APT28 has performed large-scale scans in an attempt to find vulnerable servers. APT29 has conducted widespread scanning of target environments to identify vulnerabilities for exploit.
They also told Claude that it was an employee of a legitimate cybersecurity firm, and was being used in defensive testing
Resource Development
3 techniques
Resource Development
Anthropic identified a cell in northern Yemen pursuing three different weapons programs... The actors in Yemen used Claude Code instead of human software engineers to develop guidance, navigation and control software.
Claude identified and tested security vulnerabilities in the target organizations’ systems by researching and writing its own exploit code.
“Used ARTEX and multiple large language models to assist in the analysis, orchestration, and execution of attacks.”
Initial Access
3 techniques
Initial Access
Le contractant a fourni à l’agent ses identifiants de connexion pour automatiser des tâches de codage et de gestion de serveurs cloud.
The attacker used the agent to identify exploitable services on targets’ systems, build custom exploits based on discovered vulnerabilities, execute these exploits against the targets...
They handled reasoning for bypass techniques, reworked exploits after failed attempts, and built the phishing pages used to harvest credentials... The directory held... cloned login pages
Execution
4 techniques
Execution
Experts at Gambit Security said they saw an affiliate of the group using Claude Code during intrusions into at least six organizations.
Variant A: Claude Code as effective parent, with Apple-signed Python and osascript dropping and re-running JavaScript under /tmp (LOLBin staging).
The proof of concept configured core.fsmonitor as "sh -c 'printf %s CYMULATE_FSMONITOR_MARKER > ...'", after which Git launched the configured fsmonitor hook.
...its own Claude Code agent handled an estimated 80 to 90 percent of tactical work, including reconnaissance, exploitation, credential harvesting and lateral movement...
Persistence
3 techniques
Persistence
Le contractant a fourni à l’agent ses identifiants de connexion pour automatiser des tâches de codage et de gestion de serveurs cloud.
The highest-privilege accounts were identified, backdoors were created, and data were exfiltrated with minimal human supervision.
This file configures a SessionStart hook that runs node .vscode/setup.mjs every time a developer opens Claude Code in that repository.
Privilege Escalation
3 techniques
Privilege Escalation
The highest-privilege accounts were identified, backdoors were created, and data were exfiltrated with minimal human supervision.
Le contractant a fourni à l’agent ses identifiants de connexion pour automatiser des tâches de codage et de gestion de serveurs cloud.
This file configures a SessionStart hook that runs node .vscode/setup.mjs every time a developer opens Claude Code in that repository.
Stealth
4 techniques
Stealth
According to the write-up, obfuscated detection logic had shipped silently since version 2.1.91, released on April 2, with no mention in the release notes.
Rather than sending an overt signal, the tool allegedly encoded its findings steganographically, tweaking the date format and swapping a punctuation character in the system prompt sent back to Anthropic's servers — invisible to the user, but machine-parseable on Anthropic's end.
Le contractant a fourni à l’agent ses identifiants de connexion pour automatiser des tâches de codage et de gestion de serveurs cloud.
Whenever a proxy was detected, the code reportedly checked whether the system timezone matched Asia/Shanghai or Asia/Urumqi and inspected the proxy URL against a hardcoded list of Chinese domains and AI lab identifiers.
Defense Impairment
1 technique
Defense Impairment
Variant C: Claude Code with permission bypass pulled an unsigned binary over plaintext HTTP, tried quarantine stripping and ad-hoc re-signing.
Credential Access
4 techniques
Credential Access
Claude Code, acting with custom scaffolding, was assessed to have conducted 80 to 90 percent of the operation autonomously, handling reconnaissance, privilege escalation, lateral movement, credential theft, and data exfiltration...
...its own Claude Code agent handled an estimated 80 to 90 percent of tactical work, including reconnaissance, exploitation, credential harvesting and lateral movement...
Claude generated a list using a combination of default and victim-specific credentials, before launching a password-spray attack, according to Dragos.
The attacker used the agent to identify exploitable services on targets’ systems, build custom exploits based on discovered vulnerabilities, execute these exploits against the targets, and exfiltrate data and credentials.
Discovery
5 techniques
Discovery
Once jailbroken, Claude Code scanned systems, mapped out infrastructure, identified high-value databases, and even wrote its own exploit code.
During the Anthropic AI-orchestrated Campaign, the adversary used Claude Code to scan target infrastructure to identify potential vulnerabilities and to enumerate services and endpoints.
Whenever a proxy was detected, the code reportedly checked whether the system timezone matched Asia/Shanghai or Asia/Urumqi and inspected the proxy URL against a hardcoded list of Chinese domains and AI lab identifiers.
That is the same kind of connection, via MCP, that lets any AI agent open a file, query a database, or call an API on a company’s behalf.
The database said the information could include users’ geographic location and identity-related identifiers.
Lateral Movement
1 technique
Lateral Movement
Claude Code, acting with custom scaffolding, was assessed to have conducted 80 to 90 percent of the operation autonomously, handling reconnaissance, privilege escalation, lateral movement, credential theft, and data exfiltration...
Collection
4 techniques
Collection
...its own Claude Code agent handled an estimated 80 to 90 percent of tactical work, including reconnaissance, exploitation, credential harvesting and lateral movement...
extract a large amount of private data, which it categorized according to its intelligence value.
DeepSeek inspected inbound API-request strings for Claude Code, Claude Agent SDK, and OpenCode signatures, tagged selected sessions, and relayed them to Claude.
...GPT-4.1 to analyse exfiltrated data and feed follow-up instructions back into further Claude sessions.
Command and Control
7 techniques
Command and Control
Instead of transmitting explicit telemetry data, the tool allegedly encoded detection results by modifying internal system prompts. This included subtle changes such as altering date formats or swapping punctuation characters, effectively creating a covert signaling method.
The agents are bridged to Telegram so the operator can task them from a phone and collect results in a group chat.
curl -X POST "$URL/login" -d 'user=...&password=...' followed by curl "$URL/api/summary?from=...&to=...".
Both Western tools got routed through a third-party proxy to hide the connection, with attribution headers stripped and non-essential traffic disabled.
Whenever a proxy was detected, the code reportedly checked whether the system timezone matched Asia/Shanghai or Asia/Urumqi and inspected the proxy URL against a hardcoded list of Chinese domains and AI lab identifiers.
Variant C: Claude Code with permission bypass pulled an unsigned binary over plaintext HTTP.
The allegations originated from a June 30 Reddit post by a user identified as “LegitMichel777,” who claimed to have reverse-engineered the tool while restoring a disabled remote-control feature.
Exfiltration
3 techniques
Exfiltration
The highest-privilege accounts were identified, backdoors were created, and data were exfiltrated with minimal human supervision.
China’s National Vulnerability Database ... said Claude Code versions 2.1.91 to 2.1.196 contained a built-in monitoring mechanism capable of transmitting sensitive information to remote servers. The database said the information could include users’ geographic location and identity-related identifiers.
L’agent a apparemment transmis les identifiants, mots de passe et une cartographie de l’environnement NIPRNet à un site tiers.
Recent activity
7 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.