[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$fE5T7lRqSElvCQXEdQzHtA8Q2tervEJWC1exWutNWLy4":3},{"lesson":4},{"id":5,"slug":6,"article_id":7,"title":8,"body":9,"prevention":10,"framework_refs":11,"framework_notes":19,"status":27,"created_at":28,"published_at":29,"article":30,"tags":34,"podcasts":47,"controls":48},"ed569877-9d3b-43b2-8253-3b5578aa4de0","trojanized-vs-code-extension-delivers-persistent-ssh-backdoor-via-open-vsx-registry","6a6d93f3-ea1f-47e9-9623-18a4a49ded75","Trojanized VS Code Extension Delivers Persistent SSH Backdoor via Open-VSX Registry","A malicious actor published a counterfeit version of the Claude Code VS Code extension to the Open-VSX and Cursor marketplaces, embedding a loader that silently installed an SSH key and established a reverse SSH tunnel on developer machines. The attack exploited the implicit trust developers place in third-party extension registries, which often lack the same vetting rigor as first-party stores. Critically, the persistence mechanism survived extension uninstallation, meaning simply removing the extension did not remediate the compromise. This incident underscores that developer tooling is a high-value supply chain target: a single compromised extension can provide persistent, authenticated access to thousands of developer machines — and by extension, to the codebases and systems those machines connect to.","**Immediate actions:**\n- Audit all installed VS Code\u002FCursor extensions against known-good hashes and remove any version matching 2.1.313 of Claude Code from affected systems.\n- Search for unauthorized SSH keys in `~\u002F.ssh\u002Fauthorized_keys` and revoke any unrecognized entries, then audit running SSH tunnel processes.\n- Re-image or perform a full forensic sweep of potentially affected developer machines rather than relying on extension uninstallation alone.\n\n**Long-term improvements:**\n- Enforce an allowlist of approved extensions sourced only from vetted, internally mirrored registries with integrity verification (e.g., hash pinning or signature validation).\n- Implement least-privilege controls on developer workstations to prevent extensions from writing to SSH configuration directories or establishing outbound tunnel connections without approval.\n- Integrate software composition analysis (SCA) into CI\u002FCD pipelines to detect newly introduced or modified third-party tools before they reach developer environments.\n\n**Detection measures:**\n- Deploy endpoint detection rules to alert on unexpected modifications to `~\u002F.ssh\u002Fauthorized_keys` or the creation of new SSH daemon processes by non-system accounts.\n- Monitor outbound network connections for reverse SSH tunnel patterns (e.g., persistent long-lived TCP connections to external IPs on port 22 or non-standard ports) from developer workstations.",[12,13,14,15,16,17,18],"MITRE ATT&CK T1566: Phishing","CIS Control 7: Continuous Vulnerability Management","NIST SP 800-53 SI-2: Flaw Remediation","NIST CSF 2.0 PR.AA: Identity Management, Authentication, and Access Control","ISO\u002FIEC 27001:2022 A.8.8: Management of technical vulnerabilities","OWASP A06:2021 Vulnerable and Outdated Components","NIS2 Article 21(2)(b)",{"NIS2 Article 21(2)(b)":20,"MITRE ATT&CK T1566: Phishing":21,"NIST SP 800-53 SI-2: Flaw Remediation":22,"OWASP A06:2021 Vulnerable and Outdated Components":23,"CIS Control 7: Continuous Vulnerability Management":24,"ISO\u002FIEC 27001:2022 A.8.8: Management of technical vulnerabilities":25,"NIST CSF 2.0 PR.AA: Identity Management, Authentication, and Access Control":26},"NIS2 mandates incident handling and supply chain security measures for entities in scope; the use of an unvetted third-party extension registry without integrity controls represents a supply chain risk that Article 21(2)(b) requires organisations to manage and mitigate.","While delivery was via a registry rather than email, the technique mirrors supply chain phishing — luring users into installing a trusted-looking but malicious package; ATT&CK T1195 (Supply Chain Compromise) and T1566 both highlight the need to verify the provenance of software before execution.","SI-2 requires organisations to identify, report, and correct information system flaws, which extends to malicious or compromised software components — a process that would mandate rapid removal and remediation upon discovery of the trojanized extension.","OWASP A06 specifically calls out the risk of using third-party components without verifying their integrity and provenance, which is precisely the failure mode exploited by publishing a malicious version to a public registry.","Continuous monitoring of third-party software inventories and rapid response to newly identified malicious versions would have narrowed the 11-hour exposure window by alerting teams to the rogue extension before widespread installation.","This control requires organisations to maintain awareness of vulnerabilities in software they use, including third-party extensions, and to take timely action — which would encompass monitoring extension registries for supply chain threats.","The backdoor succeeded by injecting an unauthorized SSH key to gain persistent authenticated access; enforcing strict controls over who can modify SSH authorized_keys files directly addresses this vector.","published","2026-10-30T10:20:29.690227+00:00","2026-10-30T10:20:29.664+00:00",{"id":7,"url":31,"slug":32,"title":33},"https:\u002F\u002Fwww.stepsecurity.io\u002Fblog\u002Fclaude-code-extension-trojanized","trojanized-claude-code-extension-delivered-persistent-ssh-backdoor-to-developer-b45d2d","Trojanized Claude Code Extension Delivered Persistent SSH Backdoor to Developer Machines",[35,41],{"id":36,"name":37,"slug":38,"description":39,"color":40},"1ec88fde-2d0f-4ed8-932a-33f5ccc0fdc7","Access Control","access-control","Excessive privileges, missing MFA, weak auth","#f97316",{"id":42,"name":43,"slug":44,"description":45,"color":46},"f0c2a0af-58aa-4128-87c9-6acd30f2dc48","Supply Chain","supply-chain","Third-party risk, compromised dependencies","#8b5cf6",[],[49,53,57],{"slug":50,"name":51,"problem":52},"endpoint-management","Device management (MDM and UEM)","Every company laptop and phone is known, encrypted, locked down and up to date.",{"slug":54,"name":55,"problem":56},"endpoint-detection-response","Endpoint detection and response (EDR and XDR)","Malware and hands-on-keyboard attackers on laptops and servers get spotted and stopped.",{"slug":58,"name":59,"problem":60},"software-supply-chain","Software supply chain security","Malicious and vulnerable open-source packages are caught before they ship."]