News Analysis 10 min read

Poisoned Claude Settings Turn Repository Access Into Developer Execution

Google says poisoned Claude settings triggered SOMBERMEME when developers started Claude Code. Protect agent config, repositories, hooks and tokens.

By Protocol Report Editorial | Updated November 17, 2026
An amber executable configuration tile in a code repository reaches a developer workstation and download module while a cyan review path checks the same change
Short Version

Google Threat Intelligence Group says a suspected North Korea-linked MIDNIGHT NEPTUNE cluster used fraudulent recruiter personas and ClickFix lures to gain initial access at cryptocurrency organizations in North America and Europe. After reaching internal repositories, the actor modified `.claude/settings.json` so that starting Claude Code automatically downloaded the SOMBERMEME backdoor. Google says this happened in multiple intrusions. The campaign is not presented as a vulnerability in Claude Code, GitHub or Microsoft Copilot; it used repository write access and a legitimate local automation mechanism after the first compromise.

The defensive boundary is therefore larger than source code. A shared Claude project settings file can carry hooks, permissions, plugins and environment settings to every developer who trusts and opens the repository. Protect `.claude/` and other agent configuration paths with independent review, alert on new executable hooks and network commands, enforce managed policy where available, restrict repository tokens, and keep developer workstations segmented from signing and production authority. If suspicious configuration is found, preserve the commit history and local agent state, isolate systems that started the tool, revoke newly created repository credentials, and scope every repository and machine the compromised identity could reach.

Key Takeaways

  • check_circle Google observed the campaign in multiple intrusions targeting cryptocurrency organizations in North America and Europe.
  • check_circle Initial access came through recruiter personas, fraudulent meeting sites and ClickFix scripts before the actor altered internal repositories.
  • check_circle The poisoned `.claude/settings.json` executed through a legitimate startup mechanism and downloaded SOMBERMEME when a developer started Claude Code.
  • check_circle Google attributes the activity to a suspected MIDNIGHT NEPTUNE cluster; it does not publish a victim count, indicators, command sample or complete backdoor behavior in the report.
  • check_circle A repository-local agent configuration is executable policy and needs code ownership, change alerts and runtime restrictions, not only ordinary source review.
  • check_circle Personal access tokens named after Microsoft Copilot were camouflage according to Google, not evidence that Microsoft Copilot created or authorized them.

The Chain Began Before The Repository Was Poisoned

Google's November 16 threat report describes recent intrusions against cryptocurrency organizations in North America and Europe. The suspected MIDNIGHT NEPTUNE actor created fraudulent recruiter profiles on professional networks. Google says the profile images contained SynthID watermarks, supporting the assessment that generative tools helped create the personas. The profiles then directed targets to fake meeting platforms with ClickFix instructions that asked users to run diagnostic scripts.

Those scripts established the first foothold. Only after that compromise did the actor pivot into internal code repositories and edit `.claude/settings.json`. When another user started Claude Code in an affected project, the settings triggered a download of the SOMBERMEME backdoor. The repository change was therefore lateral execution and internal supply-chain propagation, not the original entry point.

Google first summarized altered Claude CLI hooks and SOMBERMEME in its September 8 adversarial AI report. The November update adds that the actor used the pattern in multiple intrusions, identifies the repository settings path, describes the recruiter and ClickFix sequence, and says the actor created GitHub personal access tokens named after Microsoft Copilot. The new report strengthens the operational pattern, but it does not establish that every earlier or later MIDNIGHT NEPTUNE intrusion used the same chain.

Project Settings Are Code Even When They Look Like JSON

Anthropic documents `.claude/settings.json` as the shared project settings file. Teams can commit it so everyone working in the repository receives common permissions, hooks, plugins and environment configuration. Hooks are user-defined shell commands that Claude Code runs at defined lifecycle events. That is useful for formatting, validation and notifications, but it also means a small configuration diff can cause deterministic local execution.

The incident turns an ordinary repository trust decision into an endpoint execution decision. A developer may review application source carefully while treating configuration as tooling metadata. Once the project is trusted and the relevant event fires, the hook can act with the permissions of the local Claude Code process and operating-system user. The blast radius then depends on network access, local credentials, repository tokens, cloud sessions, signing material and which other projects the user can modify.

This is not unique to one coding assistant. Repository-local task runners, editor settings, development containers, build scripts, package lifecycle hooks and MCP configurations can all cross from data into execution. The exact defense must match the tool, but the policy principle is stable: configuration that can launch a process, load a plugin, reach a service or broaden permission belongs in the executable-code review boundary.

Keep Confirmed Facts Separate From Missing Detail

Google attributes the activity to a suspected MIDNIGHT NEPTUNE cluster linked to North Korea and says the operations targeted cryptocurrency organizations. It directly states that altered Claude settings downloaded SOMBERMEME and that GitHub tokens were given Copilot-themed names. It also says likely LLM-authored staging scripts appeared in the ClickFix phase. Those are threat-intelligence assessments grounded in Google's incident response and platform visibility.

The report does not publish the affected organization count, repository names, commit hashes, malicious hook command, download domain, file hashes, persistence details, credential set or a complete SOMBERMEME capability description. It does not say whether every startup led to successful execution, which operating systems were affected, or whether a developer approved any prompt. Defenders should not invent indicators or claim autonomous spread where the public evidence does not provide it.

The product boundary is equally important. Google does not identify a Claude Code software flaw, a GitHub platform compromise or a Microsoft Copilot breach. The actor already had repository access and used a supported configuration path. Naming a token after Copilot is camouflage chosen by the attacker. Product names in logs can be useful labels, but token owner, creator, scopes, repositories, source address and usage are the evidence that determines whether the credential is legitimate.

Put Agent Configuration Behind Independent Review

Start by enumerating executable agent configuration across every repository: `.claude/settings.json`, local hook scripts, plugin manifests, MCP server definitions, skills, agent files and any wrapper that starts the coding tool. Build a known-good baseline and alert on additions or changes, especially commands that fetch from the network, decode content, launch shells, change permissions, write outside the repository or suppress errors. Review renames and case changes as well as direct edits.

Assign security or developer-platform owners to these paths with CODEOWNERS and require their approval through branch protection or rulesets. Protect the CODEOWNERS file itself, restrict direct pushes and force pushes, and do not give the same compromised identity unrestricted bypass authority. Review should examine the referenced script too; a harmless settings diff can call a mutable file elsewhere in the repository or a remote endpoint whose content is not pinned.

CI should parse the effective configuration rather than search for one string. Deny unexpected lifecycle events, command hooks, remote URLs, broad permission rules and new plugins. Compare against an approved schema and repository-specific policy. A check only on the default branch is insufficient if developers routinely run tools on pull-request branches, forks or freshly cloned incident repositories. Apply the guard before a human opens the branch in an agent-enabled workspace.

Managed Policy And Endpoint Isolation Limit Execution

Anthropic's managed settings can restrict project-level behavior across an organization. Current enterprise controls include allowing only managed hooks, allowing only managed permission rules, limiting MCP servers, forcing sandboxing and disabling bypass-permissions mode. Organizations that can enforce those controls should prevent a repository from silently introducing a new command hook. Teams without centralized enforcement can still deny network fetch commands, keep manual permission mode, enable sandbox network isolation and inspect `/hooks` before working in an unfamiliar repository.

These controls reduce risk but do not erase the need to protect the repository. Google describes an actor with internal write access, so the same identity may alter application code, CI workflows or task scripts. Keep developer workstations out of production administration paths, use short-lived credentials, separate package publishing and wallet signing, and require a distinct approval device for high-value transactions. A compromised developer session should not automatically inherit the authority to release software or move assets.

Egress policy is a useful second boundary. A startup hook should not have unrestricted access to arbitrary download hosts. Route developer traffic through observable controls, restrict sensitive build and signing environments to approved artifact sources, and alert on new binaries launched from project directories or user cache paths. Sandboxing must be enforced at the operating-system or managed-tool layer; a policy written inside the same repository an attacker can edit is not an independent control.

Respond Across Repository, Identity And Workstation Scope

If a suspicious `.claude` change appears, preserve the repository before reverting it. Capture the commit, author and committer metadata, pull request or direct-push path, branch and tag history, audit events, changed hook targets and all identities that could modify the file. Search every repository the same actor or token could access. A fast revert stops future clones from receiving the configuration, but it does not remove code already fetched or executed on developer machines.

Identify users and automation that checked out the affected commit and started Claude Code during the exposure window. Isolate those workstations, preserve process, network, shell, agent and endpoint telemetry, and look for downloads, child processes, persistence, credential access and later repository activity. Do not use the possibly compromised machine to rotate its own credentials. Rebuild when evidence or missing telemetry prevents a reliable clean state.

Review and revoke unexpected fine-grained GitHub tokens by owner, repository and permission, but remember that token revocation does not remove SSH keys the token may have created. Restrict classic token access, inspect new deploy keys, GitHub Apps, OAuth grants, workflow secrets and cloud credentials, and invalidate active sessions where supported. Close the incident only after the malicious configuration is gone, every exposed workstation is resolved, derived access is revoked and protected review controls cover the agent configuration paths that made the lateral step possible.

Checklist

  • Inventory shared agent settings, hooks, plugins, MCP definitions, skills and startup wrappers in every repository.
  • Put `.claude/` and equivalent executable configuration behind CODEOWNERS, required review, restricted pushes and protected ownership rules.
  • Reject new network downloads, shell hooks, mutable remote references and broad permission rules unless independently approved.
  • Enforce managed hooks, permission policy, sandboxing and MCP allowlists where available; otherwise use manual approval and network isolation.
  • Alert on token creation, unusual token names, new deploy keys, direct pushes and configuration changes by unexpected identities.
  • Preserve poisoned commits, then identify every workstation and automation run that opened the affected revision during the exposure window.
  • Isolate and investigate exposed developer systems, revoke derived access from a clean device, and separate signing or production authority.

Sources

Related Articles

Continue Reading