Skip to content
CSA Labs Research·Indexed by this site · Originally published· Event →SelectedAttention44

Claude Code extension in the Cursor extension marketplace was implanted with a trojan

Trojanized Claude Code Extension on Cursor’s Marketplace

AI summary

On October 29, 2026, the Cursor extension marketplace distributed a trojanized Anthropic Claude Code extension (versions 2.1.312 and 2.1.313) to macOS and Windows users over about 11 hours, and Cursor estimated that up to 5,000 users may have installed it. According to analyses cited in the article, including by StepSecurity, the payload was an approximately 7 KB JavaScript loader prepended before the normal extension.js, which ran automatically with the user's full privileges with the extension, attempting to implant the attacker's SSH key, enable the SSH service, establish a reverse tunnel to 134.209.82.225, and send reconnaissance beacons; it also collected the names of up to 40 environment variables matching patterns such as KEY, TOKEN, and SECRET but did not steal the variable values. CSA believes that the mirror marketplace built by the IDE fork created a trust layer beyond the reach of publisher identity controls, and recommended investigating affected hosts, removing persistence mechanisms one by one, and rotating credentials.

Why it was selected

The incident reveals that the IDE downstream image marketplace is a trust layer that publisher identity controls cannot cover; the article provides an actionable checklist for investigation and removal based on persistence mechanisms.

Read originallabs.cloudsecurityalliance.org