{"id":223113,"date":"2026-10-30T11:36:23","date_gmt":"2026-10-30T11:36:23","guid":{"rendered":"https:\/\/www.europesays.com\/ai\/223113\/"},"modified":"2026-10-30T11:36:23","modified_gmt":"2026-10-30T11:36:23","slug":"claude-code-extension-poisoned-with-persistent-ssh-backdoor","status":"publish","type":"post","link":"https:\/\/www.europesays.com\/ai\/223113\/","title":{"rendered":"Claude Code extension poisoned with persistent SSH backdoor"},"content":{"rendered":"<p>A tampered build of Anthropic\u2019s Claude Code extension for VS Code-compatible editors planted an SSH backdoor on developers\u2019 machines, researchers at macOS security firm Phorion have found.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.europesays.com\/ai\/wp-content\/uploads\/2026\/10\/backdoor1-650.webp\" class=\"aligncenter\" alt=\"Claude Code extension backdoor\" title=\"Backdoor\"\/><\/p>\n<p>The malicious package, version 2.1.313, was published on Open VSX, an open-source marketplace for VS Code extensions run by the Eclipse Foundation. VS Code\u2019s default extension store is Microsoft\u2019s Visual Studio Marketplace, which never carried the compromised extension. Its terms of use limit it to Microsoft\u2019s own products, so editors built on the open-source VS Code codebase, including Cursor and Windsurf, can\u2019t use it and rely on Open VSX instead.<\/p>\n<p>Planted keys and a hidden tunnel<\/p>\n<p>\u201cThe compromised extension.js file starts with an injected immediately invoked function expression (IIFE) prepended to the minified extension bundle. The rest of the bundle looks like the standard extension, with Claude Code and VS Code strings, normal activate and deactivate exports, and UI code,\u201d Phorion CEO Calum Hall explained.<\/p>\n<p>\u201cThe injected prefix pulls in standard Node.js modules (child_process, fs, os, path, http, and crypto) and executes as soon as Node loads the file, before the extension\u2019s normal activate callback even runs. The user doesn\u2019t need to interact with the extension for the payload to fire,\u201d he <a href=\"https:\/\/phorion.io\/blog\/offical-claude-code-vsx-compromise\/\" target=\"_blank\" rel=\"nofollow noopener\">added<\/a>.<\/p>\n<p>Once running, the code adds the attacker\u2019s SSH key to the user\u2019s authorized keys file, which would let the attacker log in as that user. It then opens an outbound SSH connection to the attacker\u2019s server, creating a tunnel the operator can use to connect back to the victim\u2019s machine. The tunnel keeps running after the editor is closed, and the malware retries the connection about every 60 seconds.<\/p>\n<p>To survive a reboot, the malware sets up persistence on each platform. On a Mac it installs a startup file with an Apple-style name, on Linux it adds a cron entry that runs at reboot, and on Windows it tries to create a scheduled task called SysMon and falls back to the Startup folder if that fails.<\/p>\n<p>Developer data sent to the operator<\/p>\n<p>The extension also reports back to the attacker\u2019s server with the machine\u2019s hostname, the username, operating system, home directory, working directory, Git email address and public IP address.<\/p>\n<p>It sends the names of up to 40 environment variables that look like keys, tokens, passwords or AWS and GCP credentials, too. The values stay on the machine, but Hall noted that the list gives the operator an inventory of which hosts hold cloud credentials or API tokens, and which ones to go after first.<\/p>\n<p>Faulty check limits damage on macOS<\/p>\n<p>The planted key only works if the machine\u2019s SSH service is running, and on macOS the step that turns it on often never runs.<\/p>\n<p>Phorion traced the problem to a faulty check. The script asks the system whether Remote Login is off without administrator rights, gets an error message in return, and skips the step that would turn SSH on.<\/p>\n<p>Hall cautioned that the bug is no defence, since on a Mac with Remote Login already enabled, or one where the user turns it on later, the backdoor is ready to use.<\/p>\n<p>\u201cThe goal of this payload is long-term interactive access, and whilst the SSH backdoor bug minimises impact on macOS, the malware is still a significant threat that installs persistence and beacons host reconnaissance back to the operator,\u201d Hall stressed.<\/p>\n<p>Up to 5,000 Cursor users affected<\/p>\n<p>In a security notice, Cursor said the malicious version was available in its VS Code extension marketplace for about 11 hours on October 29, 2026. At most 5,000 users were affected, and the company plans to contact them directly.<\/p>\n<p>\u201cThis malicious version of the extension was not developed by Anthropic,\u201d the company stated, adding that it has no evidence other versions of the extension or the official distribution were affected.<\/p>\n<p>According to Cursor, turning on SSH requires admin rights the extension lacks on most Mac and Windows hosts, and on those machines the attacker could not have logged in through the tunnel. The company worked with the cloud provider hosting the attacker\u2019s server to take it offline, which stopped both the tunnel and the data reports from working.<\/p>\n<p>After pulling the malicious version, Cursor shut down its VS Code marketplace as a precaution, audited access and found no other tampered extensions. It then rotated its keys and rebuilt the marketplace, which it reinstated \u201cafter confirming there is no further risk,\u201d the company <a href=\"https:\/\/x.com\/cursor_ai\/status\/2116074289053175808?s=20\" target=\"_blank\" rel=\"nofollow\">said<\/a> on X. The incident does not affect other extensions downloaded from the Cursor marketplace, Grok Bot, Grok or the company\u2019s other SpaceXSI products, it added.<\/p>\n<p>Cleanup goes beyond uninstalling<\/p>\n<p>Uninstalling the extension won\u2019t remove the backdoor, Phorion warned. Cursor said removal alone may not be enough, because the payload drops standalone scripts that keep running.<\/p>\n<p>Anyone who installed or updated to version 2.1.313 should check their SSH authorized keys file for an entry labelled svc-telemetry. Cursor <a href=\"https:\/\/cursor.com\/blog\/claude-code-extension-security-notice\" target=\"_blank\" rel=\"nofollow noopener\">has<\/a> published commands for the check and cleanup scripts for macOS and Windows, and both companies have shared indicators of compromise.<\/p>\n<p>The company also advises isolating affected machines, considering a rebuild, and rotating any credentials and sessions the machine could reach, using a trusted system to do it. It noted that the limited data collection does not rule out later credential access through the backdoor. To find out whether an operator logged in, Phorion suggests checking SSH logs for logins from localhost that used the svc-telemetry key.<\/p>\n","protected":false},"excerpt":{"rendered":"A tampered build of Anthropic\u2019s Claude Code extension for VS Code-compatible editors planted an SSH backdoor on developers\u2019&hellip;\n","protected":false},"author":2,"featured_media":223114,"comment_status":"","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[53,3154,34143,182,2798,154,8345],"class_list":["post-223113","post","type-post","status-publish","format-standard","has-post-thumbnail","category-anthropic","tag-anthropic","tag-anthropic-claude","tag-backdoor","tag-claude","tag-claude-code","tag-cybercrime","tag-macos"],"_links":{"self":[{"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/posts\/223113","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/comments?post=223113"}],"version-history":[{"count":0,"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/posts\/223113\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/media\/223114"}],"wp:attachment":[{"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/media?parent=223113"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/categories?post=223113"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/tags?post=223113"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}