Get a free audit

Field Notes / Threat Research

AI coding tools are your new attack surface, and two live CVEs prove it

Claude Code, GitHub Copilot and Cursor now run business workflows with full system access. In February 2026 Check Point disclosed flaws that turn a cloned repository into a remote shell. Here is what the access reaches, and how to close it before an attacker walks in.

Author
Red Team Partners
Read
11 MIN READ
Filed
13 March 2026
An operator at a dark terminal, an AI coding tool session open across two screens.

01 Why your dev tools are now a boundary

developer opens a repository at 09:12. By 09:13 a hook has run, a key has left the building, and nothing on screen looks wrong. The tool did what it was built to do. It read the project, initialised, and executed the configuration it found. The configuration belonged to someone else.

Claude Code is having what analysts call its ChatGPT moment. A January 2026 developer survey from UC San Diego and Cornell University ranks it beside GitHub Copilot and Cursor as one of the three most adopted AI platforms among professionals. The adoption story runs past engineering. At Epic, more than half of Claude Code usage comes from non-developer roles: product managers, analysts and operations staff. Microsoft, which sells the competing Copilot, has rolled Claude Code across its own engineering teams.

Read what those teams actually do with it and the security picture snaps into focus. They scrape LinkedIn profiles and competitor intelligence. They automate CRM updates and email campaigns. They build dashboards and data pipelines on the fly. They reach into payment processors, customer databases and cloud infrastructure. A tool with terminal access, file-system reach and command execution has become the everyday interface to sensitive business operations, and much of that use sits with staff who were never trained to judge whether a repository is safe to open.

02 The two flaws that open a shell

Check Point Research disclosed both vulnerabilities in February 2026 Check Point 2026 . They exploit the configuration mechanisms every modern AI coding tool relies on: hooks, Model Context Protocol servers and environment variables. Give the tool a project that carries hostile settings, and the settings run.

CVE CVSS What it does
CVE-2025-59536 8.7 High Remote code execution through malicious project configuration
CVE-2026-21852 5.3 Medium API key exfiltration from a malicious repository

The high-severity flaw needs almost nothing from the victim. An attacker publishes a legitimate-looking repository with hostile Claude Code configuration inside it. A developer clones it. The developer starts the tool in that directory. Malicious hooks then execute arbitrary commands with the developer's full system privileges Dark Reading 2026 . No prompt is approved, no warning is dismissed. Opening the project is the whole exploit.

Check Point framed the second-order risk plainly. A single compromised developer account or insider can inject malicious configuration into company codebases and reach entire development teams, which makes it a supply chain attack. In a shared engineering organisation, one poisoned config file lives in version control and propagates to every developer who pulls the code. One compromised key becomes a gateway to broader exposure, and CVE-2026-21852 is built to lift exactly the keys, tokens and secrets that business teams leave sitting in project directories.

03 How far one poisoned config reaches

Claude Code is not a special case. The whole category of AI development tools opens attack surface that traditional security models never scoped. GitHub Copilot carried CVE-2025-53773 in 2025, a remote code execution reachable through prompt injection, exposing the machines of millions of developers who lean on it for code generation. Microsoft Copilot's EchoLeak flaw introduced a new class again: zero-click prompt injection. An attacker sent an email with hidden instructions, Copilot ingested it automatically, and the assistant pulled data out of OneDrive, SharePoint and Teams, exfiltrated over trusted Microsoft domains that slide past network controls.

Open-source agents raise the ceiling. OpenClaw, an AI agent with more than 135,000 GitHub stars, triggered the first major AI agent security crisis of 2026, with multiple critical vulnerabilities, hostile marketplace exploits and over 21,000 exposed instances left reachable on the internet. Prompt injection sits under most of these, and it is not a corner case. It affects roughly 73% of production AI applications OWASP LLM 2025 . OpenAI has said plainly that prompt injection is unlikely to ever be fully solved.

The blast radius is the honest measure here, the same as with any breach. Not how clever the entry was, but how far the access carried. The McKinsey Lilli breach makes the shape concrete: the firm ran the system in production for two years without detecting 22 unauthenticated endpoints The Hacker News 2026 . AI systems are being deployed faster than they are being secured, and AI coding tools are the sharpest version of that gap, because non-developer staff bring less caution to which repositories they trust and where they store a key.

04 Close the gap before it is used

None of this needs a large budget to close. It needs someone to treat the configuration as executable code and test it that way. Start by knowing what is in use. Inventory every AI development tool, who runs it, and with what permissions. Then audit the configs already sitting in your repositories: the .claude/ directories, the MCP server definitions, the hook files. Those are the doors the two CVEs walk through.

From there the controls map onto the risk. Restrict configuration changes to trusted contributors, because not every developer needs to alter how a tool behaves for the whole team. Put AI tool configs into code review the same as any other change to hooks, MCP servers or environment variables. Test the integrations as part of your security assessment, drawing on current attack methods from the OWASP Top 10 for LLMs and the NIST AI Risk Management Framework NIST AI RMF , rather than a static checklist. Monitor API key usage for the anomalous patterns that mark exfiltration. Then write the policy down: approved tools, configuration standards, and the trust rules for opening a repository. Once the findings are closed, RTP Robin lets your team re-run the same attacks as the tools and configs change, so the picture stays current between formal assessments.

Remediation Log
  • Inventory every AI development tool in use, by whom, and with what permissions
  • Audit .claude/, MCP server configs and hook definitions across all repositories
  • Restrict AI tool configuration changes to trusted contributors and require review
  • Test AI tool integrations in your security assessment against OWASP LLM and NIST AI RMF
  • Monitor API key usage for exfiltration, and set a recurring re-test cycle

References

Sources

  1. Check Point Research. Caught in the Hook: RCE and API Token Exfiltration Through Claude Code Project Files. Check Point Software, February 2026. research.checkpoint.com
  2. The Hacker News. Claude Code Flaws Allow Remote Code Execution and API Key Exfiltration. The Hacker News, February 2026. thehackernews.com
  3. Dark Reading. Flaws in Claude Code Put Developers’ Machines at Risk. Dark Reading, 2026. darkreading.com
  4. OWASP. Top 10 for Large Language Model Applications, 2025 Edition. OWASP Foundation, 2025. owasp.org
  5. NIST. Artificial Intelligence Risk Management Framework (AI RMF 1.0). National Institute of Standards and Technology, 2023. nist.gov