Anthropic's claude code hit by critical vulnerabilities, api keys exposed
Check Point Research uncovered significant flaws in Anthropic's Claude Code, a popular AI coding tool, potentially allowing attackers to execute remote code and steal API credentials. The findings raise serious concerns about the security of even seemingly secure platforms.

Researchers exploited configuration weaknesses in claude code
Claude Code, which allows developers to interact with code via AI and a terminal interface, has gained traction for its cybersecurity features. However, a recent investigation revealed critical vulnerabilities stemming from flaws in its configuration management. Researchers demonstrated how malicious actors could manipulate the .claude/setting.json file to trigger hidden commands, bypassing authentication prompts. This manipulation, enabled by modifications to user permissions within the .mcp.json file – which governs external context access – could redirect data and ultimately compromise the API key.
The most alarming aspect of the discovery is the potential compromise of the Claude Code API key, the master password for communicating with Anthropic's servers. Attackers could redirect data to their own servers, effectively gaining control over the AI. Anthropic has since patched these vulnerabilities, but the incident underscores the persistent risks associated with using even official tools hosted on platforms like GitHub. The researchers collaborated with Anthropic to resolve the issues, demonstrating a swift response.
The attack involved manipulating the .claude/setting.json file to execute commands when the user typed “claude” in the terminal. The initial prompt asking “Do you trust this project?” was bypassed, allowing the malicious payload to activate before the user could respond. Furthermore, vulnerabilities in the Model Context Protocol (MCP) allowed unauthorized access to external resources. Modifying user permissions within the .mcp.json file enabled the redirection of data, effectively surrendering control of the AI to the attacker.
Anthropic's CEO, Dario Amodei, has been vocal in his criticism of Sam Altman and OpenAI's narrative, adding another layer of complexity to the ongoing competition in the AI space. The incident serves as a stark reminder that security is an ongoing process, even for leading AI developers. The ease with which these vulnerabilities were exploited highlights the need for rigorous security audits and cautious handling of configuration files, even within trusted development environments. The potential for data breaches and unauthorized access to AI systems is not a theoretical concern; it’s a rapidly evolving reality.
The incident highlights a broader challenge: as AI tools become increasingly integrated into software development, securing the underlying infrastructure and configurations becomes paramount. The potential consequences of a compromised API key—ranging from data theft to complete system takeover—are far-reaching.
The remediation efforts by Anthropic are commendable, but the incident serves as a cautionary tale for developers and security professionals alike. The security of AI systems is not a destination but a continuous journey.