Cursor Extension Store malware attack affects up to 5,000 users

icon MarsBit
Share
AI summary iconSummary
Cursor revealed that a malicious version of the Claude Code 2.1.313 extension was uploaded to its store on October 29, potentially exposing up to 5,000 users to a Sybil attack. The unauthorized package, not developed by Anthropic, remained in the store for 11 hours before being removed. Attackers embedded 66 lines of code to collect device data, add SSH keys, and enable remote access. Cursor has shut down its store and taken down the attacker’s server. Users are urged to scan for the `svc-telemetry` key and run the cleanup script. The incident underscores risks such as reentrancy attacks in open-source ecosystems.

Dynamic Watch Beating AI News: Cursor disclosed that on October 29, a maliciously tampered version of Claude Code 2.1.313 appeared on its extension marketplace. This installer was not created by Anthropic and remained listed for approximately 11 hours. Cursor estimates up to 5,000 users may have been affected and will contact them directly. Analysis by the security research firm OpenSourceMalware revealed that attackers inserted 66 lines of malicious code before the plugin’s legitimate code. The malicious code executes as soon as the editor loads the extension, even without any user interaction with Claude. The malware collects system information such as the computer name, Git email, and public IP address, and silently adds the attacker’s SSH public key to the authorized keys list. It then attempts to enable remote login, establishes a reverse SSH tunnel to the attacker’s server, and sets up a background task to run at startup, retrying connection every ~60 seconds. However, the attack code contains flaws. Cursor noted that most Mac and Windows systems did not grant it the administrative privileges required to enable the SSH service, preventing attackers from typically establishing tunnel access. Nevertheless, the addition of malicious keys, installation of background scripts, and transmission of device information may still succeed. Systems that already have SSH enabled cannot be assumed safe. Cursor has removed the malicious version, temporarily shut down its entire extension marketplace, and assisted in taking down the attacker’s servers. Affected users must check their SSH authorized_keys file for the entry `svc-telemetry` and use the official cleanup script to remove all traces. Simply uninstalling the extension is insufficient—the backdoor may continue running in the background.

Disclaimer: The information on this page may have been obtained from third parties and does not necessarily reflect the views or opinions of KuCoin. This content is provided for general informational purposes only, without any representation or warranty of any kind, nor shall it be construed as financial or investment advice. KuCoin shall not be liable for any errors or omissions, or for any outcomes resulting from the use of this information. Investments in digital assets can be risky. Please carefully evaluate the risks of a product and your risk tolerance based on your own financial circumstances. For more information, please refer to our Terms of Use and Risk Disclosure.