{"id":8490,"date":"2026-11-02T21:21:13","date_gmt":"2026-11-02T21:21:13","guid":{"rendered":"https:\/\/lockitsoft.com\/?p=8490"},"modified":"2026-11-02T21:21:13","modified_gmt":"2026-11-02T21:21:13","slug":"cursor-removes-malicious-claude-code-extension-after-ssh-backdoor-attempt","status":"publish","type":"post","link":"https:\/\/lockitsoft.com\/?p=8490","title":{"rendered":"Cursor removes malicious Claude Code extension after SSH backdoor attempt"},"content":{"rendered":"<p>The cybersecurity community was rocked on October 29 when it was discovered that a malicious iteration of the Anthropic Claude Code extension had infiltrated the Cursor VS Code Extension Marketplace. This supply chain attack, which persisted for approximately 11 hours, targeted software developers by attempting to install persistent Secure Shell (SSH) backdoors on their workstations. The incident has raised significant alarms regarding the security of integrated development environment (IDE) ecosystems and the trust users place in third-party extension marketplaces.<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/lockitsoft.com\/?p=8490\/#The_Anatomy_of_the_Compromise\" >The Anatomy of the Compromise<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/lockitsoft.com\/?p=8490\/#Technical_Failures_and_Microsofts_Analysis\" >Technical Failures and Microsoft\u2019s Analysis<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/lockitsoft.com\/?p=8490\/#Official_Responses_and_Clarifications\" >Official Responses and Clarifications<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/lockitsoft.com\/?p=8490\/#The_Lingering_Threat_Why_Deletion_Isnt_Enough\" >The Lingering Threat: Why Deletion Isn&#8217;t Enough<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/lockitsoft.com\/?p=8490\/#The_Broader_Implications_for_Supply_Chain_Security\" >The Broader Implications for Supply Chain Security<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/lockitsoft.com\/?p=8490\/#Future_Mitigation_Strategies\" >Future Mitigation Strategies<\/a><\/li><\/ul><\/nav><\/div>\n<h3><span class=\"ez-toc-section\" id=\"The_Anatomy_of_the_Compromise\"><\/span>The Anatomy of the Compromise<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>The malicious activity, which occurred between 2:27 a.m. PT and 1:35 p.m. PT, involved versions 2.1.312 and 2.1.313 of the Claude Code extension. According to security researchers at Phorion, the malicious payload was injected directly into the beginning of the extension\u2019s primary JavaScript file. By placing the malicious code at the entry point of the script, the attackers ensured that the payload would execute automatically the moment the extension loaded\u2014bypassing any requirement for user interaction or manual activation.<\/p>\n<p>Once active, the malware performed a series of reconnaissance and persistence tasks. It sought to inject an attacker-controlled SSH key into the victim\u2019s <code>authorized_keys<\/code> file, which would have granted the perpetrator unfettered remote access to the developer\u2019s machine. Additionally, the malware attempted to establish a reverse tunnel to a command-and-control (C2) server, ensuring that the attacker could maintain a connection even if the initial session was terminated. To ensure long-term viability, the script also created startup entries designed to survive system reboots.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Technical_Failures_and_Microsofts_Analysis\"><\/span>Technical Failures and Microsoft\u2019s Analysis<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>While the intent of the malware was severe, technical flaws in the implementation appear to have hindered its full effectiveness. Phorion noted that on macOS, the malware attempted to use a system command to check if Remote Login was disabled. Because the command required administrative privileges, the script failed when running in a standard user environment, causing the SSH-enabling portion of the payload to abort. Similarly, researchers observed errors in the Windows-specific code that occasionally prevented the SSH service setup from executing correctly.<\/p>\n<p>Microsoft Threat Intelligence conducted an extensive analysis of the data-harvesting capabilities of the extension. Their findings revealed that the malware was designed to scrape a wide array of system metadata, including machine names, active usernames, operating system versions, and current working directories. Perhaps most concerning was the malware\u2019s focus on environment variables. The code specifically scanned for variables containing strings such as &quot;TOKEN,&quot; &quot;SECRET,&quot; &quot;AWS,&quot; &quot;GCP,&quot; and &quot;PASS.&quot; While the researchers noted that the malware appeared to collect the names of the variables rather than the sensitive keys themselves, the reconnaissance effort indicates a clear intent to identify high-value targets for future exploitation.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Official_Responses_and_Clarifications\"><\/span>Official Responses and Clarifications<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>In the wake of the discovery, both Cursor and Anthropic moved quickly to distance themselves from the incident and mitigate potential damage. Anthropic, the developer of the legitimate Claude Code extension, clarified through technical staff member Felix Rieseberg that the issue was not the result of a breach within Anthropic\u2019s own infrastructure. Rieseberg emphasized that the legitimate versions of the extension on official channels remained secure and unaffected.<\/p>\n<p>&quot;The versions on our official channels are not affected, and this only impacts Cursor users,&quot; Rieseberg wrote in a statement on X. Anthropic confirmed they were working in close coordination with Cursor to investigate the breach.<\/p>\n<p>Cursor, for its part, released a security notice acknowledging the presence of the malicious versions and outlining their remedial actions. The company confirmed that upon discovering the compromise, they removed the affected versions, temporarily suspended the marketplace, performed a full audit of access logs, rotated all internal security keys, and rebuilt the marketplace infrastructure from the ground up before restoring service.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"The_Lingering_Threat_Why_Deletion_Isnt_Enough\"><\/span>The Lingering Threat: Why Deletion Isn&#8217;t Enough<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>One of the most critical warnings issued by security experts concerns the persistence mechanisms employed by the malware. Because the malicious scripts were designed to operate outside the standard directory where VS Code extensions are installed, simply uninstalling the Claude Code extension does not guarantee the removal of the backdoor.<\/p>\n<p>Steve Povolny, Vice President of AI Strategy and Security Research at Exabeam, highlighted the gravity of this situation. &quot;Removing the extension only sends the visitor away while the spare key stays on the hook,&quot; Povolny explained. He warned that if an attacker successfully added an SSH key to a developer\u2019s <code>authorized_keys<\/code> file, that key remains valid regardless of whether the original malicious extension is present on the system.<\/p>\n<p>Consequently, security professionals are advising all affected developers to perform a deep-clean audit of their systems. This includes:<\/p>\n<ul>\n<li><strong>Inspecting SSH Keys:<\/strong> Manually reviewing <code>~\/.ssh\/authorized_keys<\/code> for any unrecognized or suspicious entries.<\/li>\n<li><strong>Credential Rotation:<\/strong> Assuming that any API keys, tokens, or environment variables mentioned in the Microsoft analysis may have been identified, and rotating them immediately.<\/li>\n<li><strong>Log Review:<\/strong> Checking system and network logs for unauthorized SSH login attempts originating from unknown IP addresses.<\/li>\n<\/ul>\n<h3><span class=\"ez-toc-section\" id=\"The_Broader_Implications_for_Supply_Chain_Security\"><\/span>The Broader Implications for Supply Chain Security<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>The Cursor incident serves as a stark reminder that extension marketplaces represent a critical, yet often overlooked, link in the modern software supply chain. Yash Kadakia, founder and CTO of Security Brigade, noted that developers frequently treat IDE extensions as &quot;trusted&quot; software, often installing them without the rigorous vetting processes applied to enterprise-grade applications.<\/p>\n<p>&quot;An extension marketplace is effectively another software supply chain,&quot; Kadakia observed. &quot;When malicious code can reach developers through what appears to be a legitimate, routine update, the traditional assumption that software from a trusted marketplace is safe starts to break down.&quot;<\/p>\n<p>The implications for enterprise security are significant. Developers often hold &quot;keys to the kingdom,&quot; possessing access to production environments, source code repositories, and cloud infrastructure. A single compromised workstation can serve as a bridgehead for lateral movement, allowing attackers to escalate privileges and exfiltrate sensitive intellectual property or customer data.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Future_Mitigation_Strategies\"><\/span>Future Mitigation Strategies<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>In light of this event, industry analysts are calling for a shift in how development tools are managed within organizations. Recommended best practices include:<\/p>\n<ol>\n<li><strong>Publisher Verification:<\/strong> Implementing stricter requirements for developers and companies to prove their identity before publishing to an extension marketplace.<\/li>\n<li><strong>Package Integrity:<\/strong> Moving toward cryptographic signing of extensions to ensure that what the user downloads is exactly what the developer intended to release.<\/li>\n<li><strong>Allowlisting:<\/strong> Enterprises should consider restricting the types of extensions developers can install, maintaining an &quot;allowlist&quot; of vetted, trusted tools.<\/li>\n<li><strong>Endpoint Monitoring:<\/strong> Utilizing advanced Endpoint Detection and Response (EDR) solutions to monitor for unusual outbound network connections or unexpected modifications to configuration files like <code>authorized_keys<\/code>.<\/li>\n<li><strong>Environment Segregation:<\/strong> Utilizing virtualized or containerized development environments that limit the damage an individual extension can do to the host machine.<\/li>\n<\/ol>\n<p>The Cursor-Claude Code incident is a sobering reminder of the &quot;trust tax&quot; paid in the digital age. As AI-powered tools become increasingly central to the software development lifecycle, they simultaneously become high-value targets for threat actors. While the immediate threat has been neutralized, the incident serves as a foundational case study for the necessity of robust supply chain security protocols in the era of rapid software deployment. As organizations continue to integrate more AI-driven extensions into their workflows, the balance between convenience and security will remain a primary challenge for developers and IT security teams alike.<\/p>\n<!-- RatingBintangAjaib -->","protected":false},"excerpt":{"rendered":"<p>The cybersecurity community was rocked on October 29 when it was discovered that a malicious iteration of the Anthropic Claude Code extension had infiltrated the Cursor VS Code Extension Marketplace. This supply chain attack, which persisted for approximately 11 hours, targeted software developers by attempting to install persistent Secure Shell (SSH) backdoors on their workstations. &hellip;<\/p>\n","protected":false},"author":6,"featured_media":8489,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[71],"tags":[5097,3892,88,72,669,5096,74,2416,73,3065,4220],"class_list":["post-8490","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cloud-computing","tag-attempt","tag-backdoor","tag-claude","tag-cloud","tag-code","tag-cursor","tag-devops","tag-extension","tag-infrastructure","tag-malicious","tag-removes"],"_links":{"self":[{"href":"https:\/\/lockitsoft.com\/index.php?rest_route=\/wp\/v2\/posts\/8490","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lockitsoft.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lockitsoft.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lockitsoft.com\/index.php?rest_route=\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/lockitsoft.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=8490"}],"version-history":[{"count":0,"href":"https:\/\/lockitsoft.com\/index.php?rest_route=\/wp\/v2\/posts\/8490\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lockitsoft.com\/index.php?rest_route=\/wp\/v2\/media\/8489"}],"wp:attachment":[{"href":"https:\/\/lockitsoft.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=8490"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lockitsoft.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=8490"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lockitsoft.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=8490"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}