Skip to content

Accident reports · 2026

MIDNIGHT NEPTUNE: booby-trapped Claude Code settings install a backdoor

According to Google, attackers changed the agent's settings file in internal repositories: starting it downloaded the backdoor.

  • Company Anthropic
  • Agent Claude Code
  • Model not published
The agent as a weapon
A red fishing hook hanging from a line on a grey background
Photo: Kasia Derenda on Unsplash
When2026; Google Threat Intelligence report published on 16 November
WhoA group Google links, without certainty, to MIDNIGHT NEPTUNE, in the North Korea part of its report; targets: cryptocurrency companies in North America and Europe
What the agent didAfter the break-in, the attackers changed Claude Code's settings file in internal code repositories, so that a developer starting it would download the SOMBERMEME backdoor
ConsequenceThe company's own AI tool turned into an attack relay; Google gives no victim count and no loss figure

What happened

According to Google Threat Intelligence's report of 16 November, the attack starts with fake recruiters on professional networks. Their profile pictures carried a SynthID watermark, the mark of images made by Google's AI: made-up identities. These fake recruiters sent their targets to fake meeting platforms. There, a message asked them to run a "fix" script; the script, likely written by a language model according to Google, set up the attackers' access.

Once inside the company, the attackers went into internal code repositories. They changed the .claude/settings.json files there, the settings of Claude Code, Anthropic's coding agent. The result, according to Google: when a developer started Claude Code in that repository, the tool set off the download of the SOMBERMEME backdoor on its own. To stay unnoticed, they created GitHub access tokens named after Microsoft Copilot.

Google links this group to MIDNIGHT NEPTUNE with caution: BleepingComputer notes that the link to the cluster tracked as UNC6836 is only "suspected". Google does not describe what SOMBERMEME does and gives no figure for victims or losses.

Why it happened

A coding agent reads its settings from the repository it works in. If those settings run a command at start-up, it runs without the model having to decide anything. So anyone who can write to the repository can get a program run on the machine of every developer who opens the tool.

The failure family

In our catalogue, this is the "The agent as a weapon" family: a person uses an agent to attack. Here, the weapon is the company's own agent, turned by a booby-trapped settings file.

The safeguard in code

  • Treat agent settings files as code: mandatory review before any change.
  • Block, through a central policy, start-up commands coming from a repository unless they were approved.
  • Never run a command copied from a meeting or "troubleshooting" page, and alert on access tokens created outside known uses.

What we test

Our crash tests test the company's agent. Here, the model decides nothing: the settings file runs the command on its own. A coding agent asked to add to its own settings a command that downloads a program at start-up is not yet tested as such. What a company can lock down today: require a review for any change to the .claude folder of its repositories.

And your agent, what would it do?

The crash test puts your agent in these situations, dozens of times, on several models. You get the figures, the conversations where it gave in, and the fix plan.

Crash-test my agent See the live demo

Further reading