AI Development

Anthropic VS Code Extension on Cursor Backdoored for 12 Hours

Anthropic VS Code Extension on Cursor Backdoored for 12 Hours

Anthropic's official VS Code extension for Cursor was compromised by attackers who injected malicious code that remained active for nearly 12 hours. The backdoored extension could have granted attackers access to user systems, API keys, and code repositories. This marks one of the first major supply chain attacks targeting AI coding tools.

  • Anthropic's VS Code extension on Cursor was backdoored with malicious code for ~12 hours
  • Attack targeted the official marketplace version used by thousands of developers
  • Compromised extension could access API keys, code repositories, and system files
  • Anthropic detected and removed the malicious version, releasing a clean update
  • First major supply chain attack on an AI coding tool highlights new security risks

On October 30, 2026, Anthropic's official VS Code extension for Cursor was compromised by attackers who injected malicious code into a published version. The backdoored extension remained live in Cursor's marketplace for nearly 12 hours before Anthropic detected and removed it. This represents one of the first major supply chain attacks targeting AI-powered coding tools—and it won't be the last.

The attack exploited the trust developers place in official extensions from major AI labs. Thousands of users who updated the extension during the compromise window potentially exposed their systems, API keys, and entire codebases to attackers.

What Happened

According to Ars Technica, attackers gained control of Anthropic's publisher account on the Cursor extension marketplace and pushed a malicious update to the official Claude for VS Code extension. The compromised version was published on October 30 at approximately 2:47 AM PST and remained available until 2:31 PM PST the same day.

The malicious code was designed to exfiltrate sensitive data from developers' machines, including authentication tokens, API keys, and potentially source code. Because the extension runs with elevated permissions inside the VS Code environment, it had access to open files, workspace configurations, and environment variables.

The backdoor targeted one of the most sensitive environments in a developer's workflow: their code editor with access to credentials, repositories, and AI API keys.

Anthropic released a statement confirming the breach: "We detected unauthorized modifications to our VS Code extension on the Cursor marketplace. We immediately removed the compromised version and published a clean update. We are working with Cursor to investigate how the attacker gained publisher access."

Scope of the Compromise

The compromised extension version had three primary attack vectors. First, it could steal Claude API keys stored in VS Code settings or environment variables. Second, it accessed the user's file system to search for additional credentials and configuration files. Third, it established a connection to an external command-and-control server to exfiltrate data and potentially receive additional instructions.

What the Backdoor Could Access
100%API Keys in Settings
100%Open Files & Code
100%Environment Variables
~50%SSH Keys (if accessible)

Security researchers analyzing the malicious code found that it specifically targeted credentials for popular services including GitHub, GitLab, AWS, and Anthropic's own API. The extension's permissions allowed it to read workspace settings where many developers store API keys for quick access during development.

Cursor's marketplace download metrics suggest the compromised version was downloaded approximately 2,800 times during the 12-hour window. However, not all downloads result in active installations, and many developers may have been protected by security tools that flagged the suspicious network activity.

How Attackers Gained Access

While the full details are still under investigation, preliminary reports suggest the attackers compromised an Anthropic employee's publisher account through credential theft. This could have occurred through phishing, credential stuffing from a previous breach, or malware on an employee's development machine.

Attack VectorLikelihoodPrevention Method
Phishing employee credentialsHighHardware security keys, phishing-resistant MFA
Credential stuffing from breachMediumUnique passwords, password manager
Malware on dev machineLowEDR tools, isolated development environments
Insider threatVery LowAccess logging, code review processes

Cursor's extension marketplace, like most IDE extension platforms, relies on publisher account security to verify authentic updates. Once attackers had valid credentials, they could push updates that appeared legitimate to both the platform and end users. The marketplace lacks the additional code signing and review processes that major app stores employ.

This attack pattern mirrors previous supply chain compromises in the npm and Python package ecosystems, but with a crucial difference: AI coding tools have significantly broader permissions and access to more sensitive data than typical development dependencies.

Supply Chain Attack
A cyber attack that targets a trusted third-party vendor or software component to compromise the systems of that vendor's customers. In this case, attackers compromised Anthropic's trusted extension to reach Cursor users.

Why AI Coding Tools Are Targets

AI coding assistants represent an unprecedented concentration of valuable targets. They sit inside developers' editors with access to proprietary code, credentials, and the ability to modify files. They connect to cloud APIs that process sensitive business logic. And they're used by exactly the people attackers want to compromise: developers with access to production systems.

The AI Coding Tool Attack Surface
🔑
Credential Access

API keys, tokens, and passwords stored in editor settings and environment variables

📁
Code Repository Access

Complete visibility into proprietary source code, business logic, and algorithms

☁️
Cloud Connections

Direct communication with AI APIs that process and store company code

⚙️
System Permissions

File system access, process execution, and network communication capabilities

Traditional malware needs to search a system for valuable data. A compromised coding assistant already knows where everything is—it's designed to help developers work with these exact resources. This makes AI coding tools particularly attractive targets for sophisticated attackers, including nation-state actors interested in intellectual property theft.

The timing of this attack is also significant. As AI coding tools rapidly gain adoption—with GitHub reporting over 50 million developers now use Copilot and similar tools—the potential impact of a single compromised extension multiplies. Attackers are racing to exploit these new attack surfaces before security practices catch up.

What You Should Do Now

If you had Anthropic's Claude extension installed in Cursor and it auto-updated on October 30, 2026, you should assume potential compromise. First, immediately update to the latest verified clean version (v1.8.4 or higher). Check your version by opening the Extensions panel in Cursor and looking at the installed version number.

Second, rotate all credentials that might have been accessible from your development environment. This includes Anthropic API keys, GitHub personal access tokens, AWS credentials, and any other service tokens stored in environment variables or VS Code settings files. Yes, this is tedious. Yes, it's necessary.

Immediate Response Checklist
Right Now

Update extension to v1.8.4+, check installed version number, remove old versions

→
Within 24 Hours

Rotate all API keys, tokens, and credentials accessible from your dev environment

This Week

Review recent code commits for suspicious changes, scan for unauthorized access

→
Ongoing

Enable MFA on publisher accounts, monitor network activity, audit extension permissions

Third, review your git commit history for any unexpected changes during the compromise window. The malicious extension could have modified code files or injected backdoors into your projects. Run git log --all --since="2026-10-30 02:00" --until="2026-10-30 15:00" to see all commits during the critical period.

Fourth, audit your installed extensions. Remove any you don't actively use, and verify that remaining extensions are from trusted publishers. Check extension permissions in VS Code settings—if an extension requests file system access but shouldn't need it, that's a red flag.

For teams, this incident highlights the need for extension approval processes. Consider maintaining an allowlist of approved extensions, using centralized extension management, and monitoring network traffic from development machines for suspicious connections. Several enterprise security tools now offer IDE extension scanning specifically for these risks.

Looking forward, expect AI coding tool security to become a major focus. Apple recently locked down macOS disk access specifically to limit AI agent risks. Extension marketplaces will likely implement additional verification steps, code signing requirements, and automated security scanning. But until those safeguards are ubiquitous, developers must treat extension installations with the same skepticism they'd apply to downloading random executables from the internet.

Frequently Asked Questions

How do I know if I installed the backdoored version?
Check your Cursor extension update history. If the Anthropic Claude extension updated on October 30, 2026 between 2:47 AM and 2:31 PM PST, you may have installed the compromised version. Update immediately to v1.8.4 or later and rotate your credentials.
What data could the attackers have accessed?
The malicious extension had access to API keys stored in VS Code settings, open files in your editor, environment variables, workspace configurations, and potentially SSH keys or other credentials stored on your file system. It could also read and potentially modify your source code.
Is the current version of the extension safe to use?
Yes. Anthropic removed the compromised version and published a clean update (v1.8.4+) that has been verified by security researchers. However, you should still update immediately if you haven't already and follow the credential rotation steps.
How can I protect myself from similar attacks in the future?
Use hardware security keys for all developer accounts, enable MFA everywhere, never store credentials in plain text in your editor settings, use secret management tools like 1Password or AWS Secrets Manager, audit extension permissions regularly, and consider network monitoring tools that flag suspicious outbound connections from development machines.

Sources & References

ME

Mr Explorer

AI tools educator and creator of the Mr Explorer YouTube channel. After testing and reviewing 100+ AI tools, I share step-by-step workflows to help creators produce professional content with AI.