
UpTrajectory Review
Anthropic's Claude Code has become the tool of choice for developers who want AI to write, review and ship code faster. It connects to Jira, Confluence, GitHub and internal systems through Model Context Protocol, and each connection leaves behind a bearer token in a plaintext file on the developer's laptop. Mitiga Labs showed last week how trivially that file can be hijacked. A malicious npm package with a post-install hook rewrites ~/.claude.json, redirects Claude Code's traffic to attacker infrastructure, and captures every token the developer had approved. The attacker then holds valid, long-lived credentials for every connected SaaS platform.
For a small business running a lean dev team, this attack is close to a worst case. Your developers likely install npm packages daily without a security review, and Claude Code likely holds tokens to your source code, your project tracker and your internal wiki — the three systems where your business logic, customer data and credentials live. One poisoned package and an attacker can read your codebase, file silent changes to your roadmap and pull documents your team assumed stayed internal. You would not see a login alert because the session is valid and the IP range belongs to Anthropic.
The detection gap is the part most coverage glosses over. Mitiga's point that nothing in the log row is wrong, but nothing in it is right either, should unsettle anyone who relies on SaaS audit logs for incident response. The user is real, the token is real and the egress IP belongs to Anthropic. Your SIEM or your provider's activity log will show a legitimate session doing legitimate things. If you are a five-person shop without a SIEM, you have almost no way to spot this until something downstream breaks.
We are skeptical of one framing in the original piece: that this is a Claude Code problem. The plaintext token, the silent config rewrite and the trust in package registries are industry-wide habits. Any AI assistant that stores OAuth tokens locally and pulls from npm inherits the same exposure. Anthropic's response, cut off in the excerpt, reportedly addresses hardening the config file, but the structural issue — developers granting broad scopes to tools that run arbitrary third-party code — remains unsolved.
The second-order effect lands on your vendors and your insurers. If an attacker uses a stolen GitHub token to push a malicious commit, your customers will blame you, not Anthropic. Your cyber insurance carrier will ask whether you had package integrity checks and token scope limits in place. If the answer is no, your claim may be contested. The cost of prevention — locking down npm installs, using short-lived tokens, auditing MCP configs — is trivial next to the cost of a contested claim.
Start this week. Audit which developers have Claude Code or similar tools installed, which MCP servers they have connected and what scopes those tokens carry. Move to short-lived tokens where the provider allows it, and require signed or verified packages for anything touching your build chain. Add a rule to your EDR or endpoint tooling that flags writes to ~/.claude.json or equivalent config paths. Watch whether Anthropic ships config encryption or token binding in the next release, and watch whether npm moves toward mandatory signed packages. If either stalls, treat every MCP connection as a liability.
“nothing in that log row is wrong — but nothing in it is right either” — CSO Online
Takeaway: Audit which AI coding tools your developers run, what tokens those tools hold, and add endpoint alerts for silent config rewrites before a poisoned npm package hands over your SaaS keys.
Excerpt from the original — CSO Online
Claude Code is Anthropic’s AI coding assistant — a command-line tool that developers are adopting fast. It connects to external services through Model Context Protocol, the standard that lets AI tools interact with Jira, Confluence, GitHub, databases and internal APIs. When a developer connects one of those services, Claude Code runs an OAuth flow, the user approves the scopes and the tool receives a bearer token it uses for every subsequent request.
That token is stored in plaintext in a configuration file on the developer’s machine. And researchers have now shown exactly how attackers are getting to it.
What researchers found
Last week, researchers at Mitiga Labs published an attack chain that should concern every security team whose developers use Claude Code. The attack starts with a malicious npm package — something that looks like a legitimate utility or wrapper. Hidden …