Press Enter to search · Esc to close

Anthropic's Claude Code extension on Open VSX shipped with an SSH backdoor

Anthropic's Claude Code extension on Open VSX shipped with an SSH backdoor
Claude logo

Image: Anthropic

Anthropic's Claude Code extension for VS Code was distributed in a backdoored build on Open VSX, according to security researchers. Version 2.1.313 of anthropic.claude-code carried code that plants an attacker SSH key on the machine, opens a reverse SSH tunnel and sets up persistence on macOS, Linux and Windows.

In its security advisory, endpoint security firm Phorion said the malicious code was prepended to the extension's extension.js file and runs as soon as the module loads, before the extension's normal activation. The user does not need to interact with the extension for it to fire. OpenSourceMalware said the rest of the package, including the bundled binary, matched the normal release.

Both reports say the implant appends an Ed25519 key labeled svc-telemetry to ~/.ssh/authorized_keys, tries to enable the local SSH service, and connects to 134.209.82.225 as a user named tunnel, with a reverse port forward back to port 22. It also sends a beacon with host details and the names, not values, of environment variables that look like keys or tokens. Phorion found a bug that often stops the macOS variant from switching on Remote Login, but warned that it should not be relied on as a defense.

Open VSX supplies extensions to VS Code compatible editors such as Cursor and Windsurf, Phorion said, and VSCodium also uses the registry. On Open VSX, version 2.1.313 is no longer available and 2.1.314 is the latest release. Phorion said Anthropic also pulled 2.1.313 from npm and the VS Code Marketplace, and the npm package currently lists 2.1.312 followed by 2.1.314. OpenSourceMalware said it could only confirm the Open VSX build was malicious and that how it was published is still unknown.

Phorion advised organizations to review their environments for version 2.1.313 and to engage incident response wherever it is found. The firm said uninstalling the extension alone does not remove the backdoor. Affected users should kill ssh or autossh processes connecting to 134.209.82.225 and remove the svc-telemetry key from authorized_keys. They should also delete ~/.config/.smt, ~/.config/.smtk and any .stk_ files in the temporary folder. On macOS the persistence file is ~/Library/LaunchAgents/com.apple.sysmond.plist, on Linux it is an @reboot crontab entry, and on Windows it is a SysMon scheduled task or a sysmon.cmd file in the Startup folder. Phorion also advised rotating credentials the account could reach and checking SSH logs for logins from localhost using that key.

No public statement from Anthropic or the Eclipse Foundation, which runs Open VSX, had been found at the time of this writing.

Comments