Back Heise.De Claude Code extension infected with malware on Cursor marketplace
Millions of developers use Cursor, a fork of Microsoft’s Visual Studio Code. The official Claude Code for VS Code extension on Cursor’s marketplace was equipped with an SSH backdoor. The malware includes routines for Linux, macOS and Windows; Cursor says tampered packages for macOS and Windows were involved. A cleaned-up version is now available, and admins should update to at least Claude Code for VS Code 2.1.314.
That’s according to IT security firm Phorion . In their analysis, the company’s employees explain that the Cursor marketplace distributes extensions for the Cursor editor. These run with the permissions of the integrated development environment (IDE) and the users who launch them. A backdoor in an extension therefore provides immediate access to local files, source code and developer tools as soon as the module loads. According to Cursor , the tampered version 2.1.313 did not come from Anthropic. It was online from 10:27 a.m. to 9:35 p.m. Central European Time on Thursday; according to Reuters , up to 5,000 users were affected.
The backdoor had a logic flaw, however, so it generally did not work as its criminal operators had hoped. It assumes it can check the current remote login status without root privileges. When the function it uses for this, systemsetup -getremotelogin , runs with standard user permissions, it returns an error message saying admin privileges are missing and exits with status 0 instead of reporting “Off”. Because the script enables SSH on macOS only when the result is “Off”, it skips enabling it entirely. At least this generally keeps the backdoor’s entryway closed. The malware still drops SSH keys, establishes persistence and sends information the computer to the attackers.
The analysis goes into further detail how the backdoor behaves, particularly on macOS. Phorion also lists countermeasures. Uninstalling the extension alone does not remove the backdoor. Admins must also kill active tunnel processes. Then they should remove the artifacts that enable persistence. On macOS, they must unload and delete “~/Library/LaunchAgents/com.apple.sysmond.plist”; on Linux, they must remove the “@reboot” cron entry; and on Windows, they must delete the scheduled task named “SysMon” and the startup script.
They should also remove the files “~/.config/.smt” and “~/.config/.smtk”. , they should clean up the SSH keys by removing the public key “svc-telemetry” from the file “~/.ssh/authorized_keys”, then clear the session status by deleting “/tmp/.stk_*”. If SSH was enabled on the host or there are other signs of incoming connections, admins should also change the credentials. The analysis also lists indicators of compromise (IOCs) that can be used to identify an infection.
This article was originally published in German . It was translated with technical assistance and editorially reviewed before publication.
The full story
This article is one source in a clustered incident — the cluster page carries the summary, timeline and every other outlet covering it.
