FEDERICA BERTONICyber Geopolitics · AI Risk · Strategic Cyber Threat Intelligence
ANALYSIS

Home / Analysis

Cyber-geopolitical analysis

Claude Code in Cursor and trust in the code we install

The modified extension case shows why approval to use an AI assistant should encompass software provenance, workstation privileges, and the conditions for verifying recovery. Risk assessment begins before the first instruction reaches the model.

Federica Bertoni
A laptop keyboard with JavaScript code visible on its screen.
A programming workstation photographed in 2015. This illustrative image does not show the compromised extension or a device involved in the incident.Illustrative photograph Christiaan Colen / Wikimedia Commons, 2015. CC BY-SA 2.0. Resized and compressed for the web, without cropping. · Image source · CC BY-SA 2.0

Before the first instruction

When an organization approves a coding assistant, that decision should encompass the route through which its software reaches developers’ workstations, because the relationship between the approved product and the code actually executed can break down before anyone sends a request to the model. I read the Claude Code incident in Cursor as a test of how precisely we can describe what we have trusted, particularly when a familiar brand comes to stand for components, distributors, and privileges that require separate assessments.

In its October 29 notice, Cursor identifies a modified Anthropic.claude-code extension, version 2.1.313, in its marketplace, affecting at most 5,000 users, with no evidence that Anthropic’s official distribution was compromised. Errors and insufficient privileges could prevent SSH access while persistent changes remained; Cursor reports removing the package and disabling the attacker’s server. That scope should be preserved rather than extended to Anthropic’s entire product.

OpenSourceMalware’s October 30 sample analysis describes a loader placed before the legitimate code, which could activate when the extension loaded without a conversation with Claude. This sequence changes the point that needs examination, since a review confined to instructions given to the assistant would miss execution that had already occurred within the component intended to provide access to it.

Provenance belongs within the approval decision

Cursor’s extension documentation warns that the same identifier can refer to different code or publishers across registries and describes its own intermediary role in distribution. I consider this a decisive criterion for organizational approval, under which a product name should be accompanied by traceable provenance, enabling the person authorizing its use to understand which combination of editor, channel, version, and privileges will actually enter the environment.

This reconstruction becomes useful during an incident because it identifies relevant workstations without indiscriminately suspending everyone who uses the same brand. Where the inventory records only the assistant’s name, responders must reconstruct under pressure a distinction that could have been documented earlier, consuming time precisely when they need to determine which developers can continue working and under what conditions.

Privileges determine the possible scope

Microsoft’s reminder that extensions share the editor’s permissions makes an architectural property explicit that also deserves consideration when assessing AI tools. A component’s authorization should be judged against the resources it could reach, while a description of its intended function, such as assisting with code, does not establish that access will remain confined to that function.

For a workstation capable of acting on repositories and release processes, I would therefore examine which additional steps would be required before a change reached customers, distinguishing available capabilities from evidence that anyone actually used them. Separation between development and publication would matter if it imposed an independent control that remained intact; asserting that separation without checking where credentials were held or who could bypass it would offer an assurance that might prove difficult to support.

Recovery requires a coherent account

OpenSourceMalware recommends preserving evidence and investigating possible follow-on activity, while analysis of the sample alone cannot establish what occurred on every machine. I would base the recovery assessment on this distinction, connecting the package’s arrival to any execution and observable changes in the environment, so that the conclusion rests on a coherent technical account.

Where some telemetry is missing, confidence in recovery should reflect that gap and explain which additional checks or environment rebuilds were chosen to compensate for it. Decision-makers need to understand which capabilities have been eliminated and which remain unresolved, without confusing a successful update with evidence that every earlier consequence has been addressed.

Adoption that remains governable during an incident

Controls described by Cursor include approved-extension lists, signature checks, and waiting periods before installing new versions. I would assess these against the actual distribution route, retaining a justified exception for urgent updates, because an indiscriminate delay could leave known vulnerabilities exposed, while a valid signature, although contributing to provenance and integrity checks, does not settle the question of software behavior.

The conclusion I propose therefore concerns the quality of the original authorization and the ability to revise it quickly when information about the installed component changes. I would expand the investigation’s scope in response to new evidence of distribution or unauthorized access, while narrowing it when consistent findings establish provenance and non-execution; the ability to revise a decision while retaining verifiable reasons for it makes AI adoption sustainable even when part of its supply chain loses reliability.

Sources and evidence

  1. Cursor · Security notice on the modified Claude Code marketplace extensionNotice dated October 29, 2026 · accessed October 30, 2026
  2. OpenSourceMalware · Sample analysis and correction of distribution provenanceOctober 30, 2026 · updated version · accessed October 30, 2026
  3. Cursor Docs · Extension provenance and controlsCurrent documentation · accessed October 30, 2026
  4. Microsoft · Extension Marketplace and extension permissionsCurrent documentation · accessed October 30, 2026

You stay in control

Your preferences

The site does not include advertising, browsing analytics, or profiling. You can choose whether to remember your accessibility settings for subsequent pages and visits.

Technical functions

Always necessary

Once you make a choice, the browser stores it for 6 months so it can be respected without displaying the notice on every page. This record contains no personal identifiers and is not sent to the site.

Stores text size, contrast, link underlining, and reduced motion settings on your device. Settings are not sent to the Data Controller or to third parties. Without this option, you can adjust them on the current page.

These settings expire when your choice expires: no later than 6 months. If you reject or disable this option, saved settings are deleted; active settings remain available on the current page.

This choice does not authorize future tools or services. For full details, including any technical security tools used by the hosting provider, read the cookie and preferences policy.