# Official Claude Code extension backdoored to open persistent SSH access

Original title: Official Claude Code extension compromise

> Hacker News story 50300683 · language: en · submitted 2026-10-30
> Web version: https://zeli.app/story/50300683
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 967 · by [_chall](<https://news.ycombinator.com/user?id=_chall>) · 💬 547
[original](<https://phorion.io/blog/offical-claude-code-vsx-compromise/>) · [HN discussion](<https://news.ycombinator.com/item?id=50300683>)

## Summary

Phorion found a backdoor in the official Claude Code for VS Code extension (version 2.1.313) on the Cursor Marketplace. The injected code runs on load, plants an SSH key, opens a reverse tunnel to an attacker server, and sets up persistence on macOS, Linux, and Windows. A macOS bug in the SSH-enablement logic may block inbound access, but the malware still beacons host details and survives reboots. Cursor has pulled the release.

## Key quote

> It effectively treats “I don’t have permission to check if SSH is off” as “SSH is already on,” which also explains why you won’t see the enablement attempt in process telemetry when the extension runs as a normal user.

## HN discussion (547 comments)

### [felixrieseberg](<https://news.ycombinator.com/item?id=50304129>)

> Felix from Anthropic here.
>
> We’re working with Cursor on this incident, but it wasn’t a compromise of Anthropic’s systems or employee laptops. A malicious actor used access to Cursor’s marketplace to publish a tampered copy of the Claude Code extension, which we didn’t build or publish. The versions on our official channels are not affected and this only impacts Cursor users.

### [AdrianCX](<https://news.ycombinator.com/item?id=50302777>)

> https://www.reuters.com/business/media-telecom/cursor-says-u...
>
> \> Cursor said  the extension was not developed by Anthropic  and the maliciously modified extension was  live on the marketplace from about 2:27  a.m. PT to 1:35 p.m. PT on Thursday
>
> So is this or isn't this from Anthropic and how did this happen?

### [yubblegum](<https://news.ycombinator.com/item?id=50303141>)

> The original Phorion report really should be up here. It even details what exactly happened. So they simply added a ssh key to the authorized keys.
>
> https://phorion.io/blog/offical-claude-code-vsx-compromise/

### [helsinkiandrew](<https://news.ycombinator.com/item?id=50302743>)

> \> Yesterday, Anthropic were compromised and Cursor extension used by tens of millions of developers for Claude access was delivering a remote access trojan via an SSH reverse backdoor
>
> That's a bit hyperbolic: someone released a version of the Claude Code VS Code extension with a backdoor on the Cursor marketplace:
>
> \> a maliciously modified version of Anthropic’s Claude Code extension was made available in the Cursor VS Code extension Marketplace
>
> https://cursor.com/blog/claude-code-extension-security-notic...

### [xx_ns](<https://news.ycombinator.com/item?id=50302525>)

> I think it should be important to note that this affected the Claude Code extension on the Open VSX extension registry (and by extension, the Cursor marketplace). From what is currently known, the build on the official marketplace was/is clean.
>
> EDIT: I am now actually unsure if this is the case. From what I can see, all of the write-ups mention the Cursor marketplace and Open VSX specifically, but make no explicit mention of the official Microsoft registry.
>
> EDIT 2: The version that was compromised (2.1.313) seems to have never been published on the official Microsoft registry. As per the documentation [1], unpublished versions should still be discoverable:
>
> \> When you unpublish an extension, the Marketplace preserves the extension statistics. The extension remains publicly discoverable and available via an existing API.
>
> [1]: https://code.visualstudio.com/api/working-with-extensions/pu...

### [orlp](<https://news.ycombinator.com/item?id=50302955>)

> So if this happened to OpenAI it would've been instantly auto-updated everywhere? VS Code has an "auto update delay" which I have configured to a week, but I just found out that (https://code.visualstudio.com/updates/v1_123):
>
> \> Note: This delay does not apply to extensions from trusted publishers such as Microsoft, GitHub, and OpenAI. These extensions continue to update immediately.
>
> You can't even configure which publishers you "trust"...

### [1shooner](<https://news.ycombinator.com/item?id=50302231>)

> Cursor reporting this: 
>
> https://cursor.com/blog/claude-code-extension-security-notic...
>
> What appears to be an official Binance account reporting it also:
>
> https://www.binance.com/en/square/post/10-30-2026-claude-cod...

### [anon-3988](<https://news.ycombinator.com/item?id=50302764>)

> I have this realization recently that everyone that uses Claude Code or Codex have basically been running RCE code on a daily basis (me included). So much for "be careful about running curl | bash!". That puts it into perspective what does security and privacy really mean? For all I know, these CLIs could have been secretly scraping my entire directory. Who's checking?

### [rietta](<https://news.ycombinator.com/item?id=50305522>)

> Do publishers not sign their packages before it gets to Cursor for distribution? Does Cursor itself apply and enforce any package integrity?

### [paxy](<https://news.ycombinator.com/item?id=50305107>)

> So let me get this straight – Elon was trolling Binance on Twitter, when in fact it was his own company that got hacked and led to the theft?

---

## Cite

- Page: https://zeli.app/story/50300683
- Date: 2026-10-30
- Source: phorion.io (https://phorion.io/blog/offical-claude-code-vsx-compromise/)
- Hacker News: https://news.ycombinator.com/item?id=50300683

## Other languages

- zh: https://zeli.app/zh/story/50300683 · markdown: https://zeli.app/zh/story/50300683.md
- ja: https://zeli.app/ja/story/50300683 · markdown: https://zeli.app/ja/story/50300683.md
- ko: https://zeli.app/ko/story/50300683 · markdown: https://zeli.app/ko/story/50300683.md
- de: https://zeli.app/de/story/50300683 · markdown: https://zeli.app/de/story/50300683.md
- es: https://zeli.app/es/story/50300683 · markdown: https://zeli.app/es/story/50300683.md
- ru: https://zeli.app/ru/story/50300683 · markdown: https://zeli.app/ru/story/50300683.md
