Cursor and Claude Code: Avoiding Tricky Extensions



Cursor Claude Code security does not depend solely on the product code: a seemingly official extension can grant persistent access to the workstation, expose API keys, and reach internal services. On October 29, 2026, two versions of Claude Code distributed on the Cursor marketplace installed a backdoor SSH porte. For a company, the right approach combines extension control, least privilege, compartmentalization, and strict secret management.


Cursor and Claude Code: Avoiding Tricky Extensions

What happened with the Claude Code extension on Cursor?

On October 29, 2026, versions 2.1.312 and 2.1.313 of the extension anthropic.claude-code were distributed via the Cursor extension marketplace between approximately 2:27 a.m. and 1:35 p.m. Pacific Time. According to Cursor and Microsoft, these modified packages had not been published by Anthropic.

The malicious loader attempted to add an SSH key controlled by the attacker to the file authorized_keys. The key "por" was the label svc-telemetry, which was mundane enough to go unnoticed during a cursory inspection. The program also sought to enable the local SSH service, set up a reverse SSH tunnel, and maintain its presence after a reboot.

A reverse SSH tunnel creates a connection from the compromised machine to a remote server. The attacker can then use this tunnel to gain access to the computer, even if the firewall incorrectly blocks incoming connections. This is precisely the kind of detail that a decision-maker wouldn’t notice in a simple list of installed extensions.

Cursor removed the malicious extensions, suspended its marketplace as a precaution, and published indicators of compromise. Microsoft confirmed that its own Visual Studio marketplace and the npm package @anthropic-ai/claude-code were not affected. The SHA-256 digest published for the malicious package was ecb58cb29078d9646ad1dcdbe51526f2d9cfea06be5fb2ab183e8ecc3ab6bf15.

Verifiable details of the Cursor incident in 2026
Element Documented data Benefits for the Company
Affected versions 2.1.312 and 2.1.313, October 29, 2026 Search for matching cor installations and updates
Display Window Around 11:00 a.m. on October 29, 2026 Scope the analysis of network logs and workstations
Potential Distribution Up to 5,000 users, according to Cursor, on November 13, 2026 Assess the scope without assuming that an installation constitutes a successful compromise
Malicious action SSH Key, Reverse Tunnel, and Persistence According to Cursor and Microsoft in 2026 Expand the investigation beyond simply uninstalling the software
Unaffected channels Microsoft Visual Studio Marketplace and official npm package, according to Microsoft in 2026 Avoid indiscriminately blocking all Claude Code channels

Why doesn't a file extension's name guarantee its origin?

On Cursor, an identical ID under forme editor.extension may refer to different publishers or code between Open VSX and the Microsoft Visual Studio Marketplace. The 2026 Cursor documentation therefore recommends treating each extension as a software dependency and verifying its publisher, distribution channel, and artifact.

Read also  b2b marketing: steps to a winning strategy

The trap is counterintuitive. A well-known name, a familiar icon, and a consistent version number do not prove that the package comes from the expected publisher. A marketplace is a link in the software supply chain—that is, the network of suppliers and tools involved before the code reaches your computer.

On November 13, 2026, Cursor explained that the attack had begun with an access key he had given to Fireworks. A read-only storage location contained historical traces of agents that had used Privacy Mode. Credentials found in these traces were then used to gain access to certain SaaS tools belonging to Cursor.

Cursor reported that less than 0.05 % of its users had hor Privacy Mode traces exposed and that less than 0.01 % of its customers had API credentials in those traces. These figures, reported by Cursor in 2026, remain a statement by the company. Above all, they illustrate a common risk: a secret copied into an agent conversation can persist long after the task that required it has been completed.

Fireworks a publié le 17 novembre 2026 un bulletin décrivant deux incidents distincts : un accès non autorisé impliquant des identifiants volés et une vulnérabilité de service, puis la compromission de machines de development hébergées chez un fournisseur cloud tiers. Cette chaîne montre pourquoi la difference between agent-based engineering and ad-hoc development It also becomes a matter of governance.

How can Cursor and Claude Code be secured in a corporate environment?

Cursor Claude Code security relies on four complementary layers of protection: approved extensions, accounts without administrator privileges, isolated environments, and temporary secrets. A single barrier is not enough, because an automated extension can be compromised after validation, and a legitimate agent can expose an overly powerful key in its logs.

In 2026, Cursor will offer extension automation lists for teams, optional signature verification, and a minimum waiting period before installation or updates. This delay, expressed in hours in team checks, reduces the risk of immediately installing a version that has just been released. It gives publishers and researchers time to detect a malicious package.

The following checklist serves as the basis for an internal policy. Each rule must have a designated person in charge and evidence of compliance; otherwise, it will remain merely theoretical.

  • Install only extensions from approved publishers and verify the artifact or signature, if available.
  • Enable a team auto-update list and set a delay before a new version is automatically installed.
  • Run Cursor, Claude Code, and their extensions using an account without administrator privileges.
  • Block read and write access to the working directory, then restrict the agent's network connections.
  • Séparer les environnements d’agents des servers de production, des bases clients et des consoles d’hébergement.
  • Inject short-lived credentials at runtime, with only the strictly necessary permissions, from a secret vault.
  • Keep administrative logs, station events, and agent-assisted development activity separate.
Read also  The main trends in web development

From the agency’s perspective, the instinct is to distinguish between the developer’s access and what is actually necessary. Honestly, giving an assistant the same rights as an administrator is almost never justified. For a web or mobile project, the agent should work on an isolated copy, not directly on the environment that serves users.

This discipline complements the general practices of protection against cyber threats. It must also be part of the lor framework that a team adopts when implementing new artificial intelligence tools for development, rather than being added after an incident.

Where should the API keys used by code agents be stored?

The API keys for Cursor and Claude Code must be stored in a secret vault, injected only during execution, and then deleted. In 2026, a short-lived key with minimal privileges limits the damage, whereas a permanent key copied to a repository, a prompt, or a log can remain exploitable for a long time.

A secret vault is a service that encrypts credentials, controls access to them, and logs their use. The workstation or agent environment receives the secret when needed, without permanently storing it in the project. The key must also be restricted to a specific resource, environment, and action—provided the vendor allows it.

Avoid files tracked by Git, extension settings, prompts, support tickets, and screenshots. A file excluded by .gitignore reduces the risk of accidental disclosure, but does not replace a secure storage device: it remains readable by programs running on the machine.

In the projects we work on, we often see a test key become—for convenience’s sake—a permanent key shared by several people. At this point, it’s best to pause the workflow for a few minutes and create individual access credentials. This makes key rotation more targeted, makes assigning access more reliable, and makes it easier to manage when a contractor leaves.

What should you do if a suspicious Cursor extension has been installed?

If a suspicious version has been installed, uninstalling it is not enough: preserve all evidence on the computer, and search for the key svc-telemetry, persistence mechanisms, and SSH tunnels; then revoke the sessions and run the secrets from a machine known to be secure. The analysis must cover the entire exposure window for 2026.

Start by logically isolating the workstation from the network without shutting it down prematurely if your incident response team wants to capture its memory. Keep logs of extension installations, terminal telemetry (technical events on the workstation), network connections, and changes to authorized_keys. An immediate reinstallation sometimes deletes the evidence needed to determine what was viewed.

Read also  The complete guide to the semantic cocoon for optimizing your SEO

Key rotation involves invalidating old credentials and creating new ones. Also revoke active sessions, since changing a password does not always close a connection token that has already been issued. Perform these operations from a clean system to avoid handing the new credentials over to the attacker.

In 2026, Cursor Enterprise audit logs cover connections, roles, API keys, settings, integrations, and Cloud Agent environments. They do not record prompts, agent responses, generated code, or credentials included in these exchanges. Separate logging of development activity is therefore necessary to reconstruct the incident.

Pour un dirigeant, l’arbitrage est simple : quelques heures de blocage maîtrisé coûtent généralement moins qu’une reprise sans preuves qui laisserait subsister un accès. La réponse doit associer le responsable informatique, le prestataire de développement et, si des données personnelles sont concernées, la personne chargée de la conformité au RGPD.

Defining rights, secrets, and logs before automating code agents helps avoid most unpleasant surprises. An outside perspective can also help transform scattered configurations into verifiable rules tailored to the project’s risk level.

FAQ on the Cursor and Claude Code Extensions

Was Claude Code Officiel compromised in October 2026?

The official npm package @anthropic-ai/claude-code and the extension distributed through the Microsoft Visual Studio Marketplace was not affected, according to Microsoft on October 29, 2026. The compromised packages came from the Cursor marketplace and had not been published by Anthropic.

How do I check the version of an extension installed in Cursor?

The extension entry in Cursor and the installation logs allow you to identify the version and the update date. For the 2026 incident, the versions to look for are 2.1.312 and 2.1.313.

Does Cursor's Privacy Mode prevent all security incidents?

Cursor's Privacy Mode reduces the risk associated with leaving certain traces, but it does not neutralize a malicious extension running on the device. Account permissions, network access, secrets, and environment isolation remain separate safeguards.

Does a signature guarantee that an extension is safe?

A signature verifies the authenticity and integrity of a packet by reference to the signer; it does not prove that the code is free of vulnerabilities. Cursor Claude Code security also requires an authorization list, an update window, and restricted permissions.

English