We Shipped the Check 17 Days Before Google Named the Attack. A Planted .claude/settings.json Was the Backdoor; Our Free Scanner Blocks That Shape. Run It on Every Repo

If your developers use Claude Code, Cursor or any AI coding agent, scan your repositories for files that run commands when the agent opens them, starting with .claude/settings.json. It is free and takes a minute: ask the check-repo tool on our Jeevesus MCP server, or add the DugganUSA Checks GitHub Action so every pull request gets the same check.
On November 16, Google's Threat Intelligence Group (GTIG) reported that a suspected North Korean cluster it calls MIDNIGHT NEPTUNE reached cryptocurrency staff through fake recruiters and ClickFix lures, then edited Claude Code configuration inside victims' own repositories. In GTIG's words, the actor was "modifying .claude/settings.json configuration files so that when users started up Claude Code, it would automatically trigger the download of the SOMBERMEME backdoor."
We had shipped a free check for that file on October 30, 17 days earlier. Today we're celebrating that, because speed to protection is the whole game, and this time we got there first.
The timeline, from our own records
October 8. We published a warning that the Shai-Hulud npm worm (in the tensorlake package) was reading and planting AI agent config, .claude/settings.json included, and that its cleanup order mattered: remove the watcher before revoking tokens. 39 days before GTIG's report.
October 20, 14:46 UTC. The day after NorForge published its look inside CAIRN control panels, we put two of the operators' staging servers into our IP blocklist at confidence 80. GTIG's November report names CAIRN among the frameworks it saw in live intrusions.
October 30, 21:18 UTC. check-repo went live in production (deploy ledger entry checkrepo-300039cd). It reads .claude/settings.json, .claude/settings.local.json, .mcp.json, .cursor, .vscode/tasks.json, dev container commands and package install hooks, and reports what will run when an agent or editor opens the folder. We published it the same day as a guide to scanning a recruiter's coding test before you open it. Fake recruiter, then code from a stranger, is the route GTIG describes.
November 16. GTIG publishes "Agentic threat activity crosses a significant threshold."
November 17. We fed check-repo a SessionStart hook that downloads a script and pipes it to a shell, the shape GTIG describes. It returned block (rule RLS-003, critical). We published that the same day, with the hunt steps.
What we are claiming, and what we are not
We are claiming protection shipped first: a free, public check for the exact file and the exact lure, live 17 days before a nation-state campaign using them was reported.
We are not claiming more than that:
We did not detect MIDNIGHT NEPTUNE. GTIG published no IP addresses, domains or hashes for SOMBERMEME, and nothing of theirs is in our feed. If GTIG or Mandiant publish indicators, we will add them with the source named.
We have no evidence check-repo stopped this attack anywhere. It was available, not used to stop this attack as far as we know.
GTIG does not say which setting in the file was abused. check-repo flags hooks, status line commands, credential helpers and MCP server definitions in that file, so it covers the file, not one confirmed mechanism.
The CAIRN servers we blocked came from NorForge's research, and GTIG does not tie them to the CAIRN activity it saw against US aerospace targets. Credit for finding them is NorForge's; what we did was get them into a blocklist the same day.
check-repo is pattern matching on a short list of files. "No findings" means none of its patterns matched, not that the repository is safe. A determined author can hide a lure somewhere it doesn't look.
Why this one worked
The trick was visible before the campaign was. Agent config that runs commands was already being abused by a worm in October, and fake coding tests were already a known way to reach developers. Neither needed a named actor to be worth a check. When an attack works by getting a trusted tool to run a stranger's file, you can protect the file before you know who is coming. That is the bet behind Membrane, our pre-install checks for agents and packages: check what the agent is about to run, before it runs it.
It doesn't always work out this way. On plenty of stories we are behind, and we say so when we are.
Where Membrane and Dredd fit
Membrane is the name for the whole layer: free checks an agent or a developer runs before something new gets to execute on their machine. Each check answers one question at one moment.
check-repo: what runs when I open this folder? Before an agent or editor opens a repository, it reads the files that start commands on their own: agent settings and hooks, MCP server definitions, editor tasks, dev container commands, install hooks. This is the check that covers the GTIG case.
check-package: should I install this dependency? Before an npm, PyPI, RubyGems or Packagist package goes in, it checks our deny-list of known-malicious packages, the package's reputation, and known vulnerabilities for that exact version.
check-workflow: is this GitHub Action safe to run in CI? It reads a workflow for script injection: text an outsider controls (an issue title, a comment, a branch name) pasted into a shell, a privileged trigger that checks out a pull request's code, and an AI agent action that a stranger can trigger.
Dredd: should my agent trust this MCP server? Dredd is the judge for MCP servers. Before you add a server to .mcp.json or your agent's settings, or upgrade one, it checks who the server is, the dependencies it pulls in, and published vulnerabilities in the server itself, then returns a signed verdict: block, advisory, review or allow.
How they fit this attack: a planted .claude/settings.json can do two things. It can run a command at startup, which check-repo flags. Or it can add an MCP server the agent will trust, which check-repo also flags as a definition to review, and Dredd is the second opinion on whether that server is one you'd want. Dredd's limit is honest and measured: for many lesser-known servers it has too little to go on and answers "unknown" rather than guess. Unknown is never a pass. Treat it as review.
None of these checks reads the code of everything you install, and none of them replaces reading a file you didn't write. They answer the cheapest question at the moment it matters, before anything runs.
Meanwhile, at our edge: someone wants to read these files too
GTIG's case is about writing agent config. Our own edge traps show the other half: people asking web servers for it. Between November 21 and the morning of November 23, our decoy paths for agent config caught 9 requests for /.mcp.json, /mcp.json, /claude_desktop_config.json, /.claude/settings.json and /.cursor/mcp.json, in two bursts:
November 21, 04:49 to 04:50 UTC: one address walking those paths with plain curl.
November 23, 08:12 and 10:30 UTC: two addresses that switched their user agent between Googlebot and a Mac browser from one request to the next. The real Googlebot doesn't do that.
All three addresses were Cloudflare egress (104.28.x.x), which covers WARP and other relay users, so we can't say who was behind them, and we are not tying them to MIDNIGHT NEPTUNE or anyone else. Nine requests in two days across our own sites is small. What they show is that someone thinks these files are worth asking for. An MCP config can hold API keys, server URLs and tokens, and a settings file shows what an agent is allowed to run.
Check yours: request https://your-site/.mcp.json, /.claude/settings.json and /.cursor/mcp.json from outside. Anything other than a 404 or 403 means a deploy shipped your repo's dot-files to the web root. Add those paths to your deploy's exclude list, and if any of them answered, rotate every key inside.
Run it now
Scan with the MCP tool. Connect the Jeevesus MCP server (docs.dugganusa.com/agents/jeevesus/) and ask your assistant to run check-repo on a repository. Send the files that matter: .claude/settings.json, .claude/settings.local.json, .mcp.json, .vscode/tasks.json, .devcontainer/devcontainer.json, package.json, .npmrc, .yarnrc.yml, setup.py. No key needed. Nothing is fetched, run or stored.
Gate pull requests. The DugganUSA Checks GitHub Action runs the same check on what each pull request adds or changes, so a planted hook gets flagged before anyone merges it.
Read the history anyway. In each repository, git log --format='%h %an %ae %ad %s' -- .claude/settings.json. Every change should come from someone you know, through a reviewed pull request.
If you find a planted hook, remove it before you revoke anything, then rotate tokens and review personal access tokens, especially any named after an AI tool that nobody remembers creating. GTIG says the actor made GitHub tokens named after Microsoft Copilot.
Get started free. Registration for the threat feed is at analytics.dugganusa.com/stix/register.
Sources
Google Threat Intelligence Group, "Agentic threat activity crosses a significant threshold," November 16, 2026: cloud.google.com/blog/topics/threat-intelligence/agentic-threat-activity-crosses-a-significant-threshold
DugganUSA, "Fake Coding Test Malware: How to Scan a Recruiter's Repo Before You Open It," October 30, 2026: https://www.dugganusa.com/post/fake-coding-test-malware-scan-recruiter-repo-before-opening
DugganUSA, tensorlake / Shai-Hulud agent-config post, October 8, 2026: https://www.dugganusa.com/post/tensorlake-npm-shai-hulud-steals-ai-agent-config-wipe-on-revoke
DugganUSA, "AI Agents Are Now Attack Labor at About $5 a Task. Two of the Operators' Servers Are on Our Blocklist," October 20, 2026: https://www.dugganusa.com/post/ai-agents-are-now-attack-labor-at-about-5-a-task-two-of-the-operators-servers-are-on-our-blocklis
NorForge, "Inside Cairn," October 19, 2026 (as cited in our October 20 post)
DugganUSA deploy ledger, entry analytics-dashboard-wp--checkrepo, October 30, 2026 21:18 UTC
How do AI models see YOUR brand?
AIPM has audited 250+ domains. 15 seconds. Free while still in beta.
Was this useful? Thirty seconds, no cookies, no tracking, no third parties, your address hashed and never stored. The question lives here: https://analytics.dugganusa.com/nps.html#post=ahead-on-protection-claude-settings-check-before-google-gtig



Comments