MediumNewsLLM-specific
Claude Code OAuth Tokens Can Be Stolen Through Stealthy MCP Hijacking
- Published
- Record updated
Summary
Mitiga Labs reported that a tailored npm package can redirect Claude Code MCP traffic through an attacker's proxy, exposing OAuth tokens stored in plain text in ~/.claude.json. The attack requires installing the package on a machine where Claude Code is configured with dynamic authorization MCP servers, and the post-install hook persists across token rotation. Mitiga reported the issue to Anthropic on April 10, 2026, and Anthropic replied on April 12, 2026 that it was out of scope.
Topics
Related items
- InfoPrompting AI to be ‘thorough’ can drive sandbox escapes, Anthropic saysSame vendor · CSO Online
- InfoDespite doom and gloom headlines, AI attacks are thin on the groundSame vendor · CSO Online
- InfoDrupal Flaw Found by Anthropic Scanner Exploited in AttacksSame vendor · SecurityWeek
- InfoCrowdStrike Accelerates the Shift to the Agentic SOCSame vendor · CrowdStrike Blog
- InfoThree LLM inflection points in twelve monthsSame vendor · Simon Willison's Weblog