20.1 C
Delhi
Friday, February 27, 2026

Anthropic Claude Code’s security flaws expose devices to silent hacking, triggered from remote code execution

Security researchers claim to have uncovered three security vulnerabilities in Claude Code, Anthropic’s command-line AI tool. These flaws could have allowed attackers to execute code remotely on a developer’s machine or steal sensitive API keys. According to a Check Point report, company’s researchers found and reported all three flaws to Anthropic, which issued fixes for all and CVEs for two. While Anthropic fixed the security flaw, researchers say that the issues illustrate a worrisome supply chain threat as enterprises incorporate AI coding tools like Claude into their development processes and essentially turn configuration files into a new attack surface.

The attack vector reportedly relied on a supply chain strategy wherein hackers could inject malicious configurations into public repositories, then simply wait for a developer to clone and open the compromised project. “The ability to execute arbitrary commands through repository-controlled configuration files created severe supply chain risks, where a single malicious commit could compromise any developer working with the affected repository,” Check Point researchers Aviv Donenfeld and Oded Vanunu said in the report.

The three security vulnerabilities are said to stem from Anthropic Claude’s design, which is intended to make it easier for development teams to collaborate. The AI coding tool enables this by embedding project-level configuration files (.claude/settings.json file) directly within repositories, so that when a developer clones a project, they automatically apply the same settings used by their teammates.

Report says that any contributor with commit access can modify these files. The researchers found that cloning and opening a malicious repository sometimes allowed them to bypass built-in safeguards and trigger hidden commands and execute malicious code.

Abusing Hooks for RCE

The first flaw involved the abuse of Claude’s Hooks feature. Designed to run user-defined shell commands at specific points in the tool’s lifecycle, Hooks were intended to automate routine tasks.

However, because these hooks are defined in the .claude/settings.json file—which is part of the repository—an attacker with commit access could embed malicious shell commands into a project. When an unsuspecting developer opened the project, Claude would execute these commands automatically without requesting permission.

“An attacker could configure the hook to execute any shell command—such as downloading and running a malicious payload,” the researchers warned, demonstrating the flaw by remotely launching a reverse shell on a victim’s machine. Check Point reported the malicious hooks flaw to Anthropic on July 21, 2025, and the AI maker implemented the final fix about a month later, publishing this GitHub Security Advisory GHSA-ph6w-f82w-28w6 on August 29.

MCP consent bypass bug

The second vulnerability allowed for Remote Code Execution (RCE) by circumventing the Model Context Protocol (MCP) safety prompts. While Anthropic had implemented warnings requiring user approval before running external MCP servers, researchers discovered a workaround.

By manipulating two specific repository-controlled settings, the team was able to override these safeguards, causing malicious commands to execute the moment Claude was launched—before the user could even see a trust dialog. This bypass (CVE-2025-59536) essentially rendered the tool’s security prompts useless against a crafted repository.

Redirecting traffic to steal API Keys

The final vulnerability targeted the developer’s credentials. Researchers found they could manipulate the ANTHROPIC_BASE_URL variable within a project’s configuration. Attackers can exploit the third flaw for API key theft. By redirecting this endpoint to an attacker-controlled server, all of Claude’s API traffic—including the plaintext authorization header containing the user’s API key—was exposed.

The researchers configured ANTHROPIC_BASE_URL to route through their local proxy, and watched all Claude Code’s API traffic in real time. Every one of Claude’s calls to Anthropic servers “included the authorization header – our full Anthropic API key, completely exposed in plaintext,” they wrote.

An attacker could abuse this trick to redirect traffic and steal a developer’s active API key. It’s important because the API includes a feature called Workspaces to help developers manage multiple Claude deployments by allowing multiple API keys to share access to the same cloud-based project files. Files are connected to the workspace – not the single key – and any API key belonging to the workspace also has visibility into any of the workspace’s stored files.

Latest

Google Gemini, ChatGPT and Claude were tested against each other in a simulated nuclear war game, here’s what happened next

Tech News News: Artificial intelligence chatbots from leading technology companies reportedly showed a willingness to escalate military conflicts to nuclear use

Salesforce CEO says SaaSpocalypse will not kill SaaS, AI agents make it stronger

Salesforce has dismissed fears of a "SaaSpocalypse," saying AI agents will strengthen, not weaken, software-as-a-service. CEO Marc Benioff said businesses are n

Samsung Galaxy S26 has lots of AI, here are 5 new features that really matter

Samsung’s Galaxy S26 series brings a range of advanced AI features aimed at simplifying everyday life. From proactive reminders that surface at the right time

Nvidia CEO says stock market is wrong, AI agents like Claude Cowork will not replace legacy software tools

Anthropic’s Claude Cowork rattled stock markets a few days ago, raising fears that AI could soon replace software companies. However, Nvidia CEO Jensen Huang

Samsung Galaxy S26 series launched: India price, full specs and everything else to know

Samsung has launched its latest flagship devices, the Galaxy S26 series. From design changes to a first-ever privacy display, and the launch prices, here are al

Topics

Champions League last 16 draw 2026: Date, time, teams, seeding rules and key details

Champions League last 16 draw: Here are all the key details about the upcoming event.

Gemini Horoscope Today, February 27, 2026: Day brings social glow and easy recognition

Horoscope Today News: Something clicks today, and you’ll feel it early. This is the best day of your week, with the Moon and Jupiter giving you a bright push

“Loser mentality”: Chris Cuomo hits back at Karoline Leavitt amid Team USA men’s Olympic hockey White House controversy

NHL News: Chris Cuomo did not hold back. Karoline Leavitt did not stay quiet. And suddenly, Team USA’s gold medal moment turned into a loud online fight. The

‘Benny did nothing wrong’: Lauren Boebart after leaking Hilary Clinton’s photo from closed-door Epstein hearing

US News: Hilary Clinton stopped her deposition on Jeffrey Epstein after her photo from the House Oversight Committee was leaked to Conservative commentator Ben.

Carlos Alcaraz lashes out at chair umpire in Doha as Kim Clijsters defends his time violation reaction

NFL News: Carlos Alcaraz rarely shows anger on court. But on February 19 at the 2026 Qatar Open in Doha, the World No. 1 could not hide his frustration. During

Charlotte Hornets vs Indiana Pacers injury report: Who’s playing, injured and questionable players, head-to-head records, team stats, and more (February 26, 2026)

NBA News: The Charlotte Hornets play the Indiana Pacers on February 26, 2026, at Gainbridge Fieldhouse. Both teams are dealing with injuries, which could affect

Outrage erupts in California as serial child molester granted parole, Newsom says his ‘hands are tied’

US News: Outrage and political backlash have erupted across California after state parole officials approved the release of David Allen Funston, a convicted se.

Almost five months after CEO Jensen Huang complained that Nvidia’s marketshare in China has fallen to Zero from 95%, CFO Kress gives an update;...

Tech News News: In October 2025, Nvidia CEO Jensen Huang complained that what some policy makers in America think harms China, often ends up harming the US, and
spot_img

Related Articles

Popular Categories

spot_imgspot_img