Claude Code extension interface reading a TypeScript file and writing a test file
Claude Code extension interface reading a TypeScript file and writing a test file
+ AI News

Claude Code extension on Cursor Marketplace reported compromised

Phorion reports an SSH backdoor in Claude Code extension version 2.1.313 on Cursor Marketplace. The findings concern local extension code, not Claude's model.

Security firm Phorion reports an SSH backdoor in the official Claude Code for VS Code extension bundle distributed through Cursor Marketplace. Its October 30 advisory names version 2.1.313 and urges organizations that find it in use to engage incident response.

The reported compromise concerns executable code installed on a developer’s machine. Phorion’s analysis does not establish a compromise of Claude’s model or hosted service. For developers, the immediate question is which extension bundle ran locally and what it left behind.

Code runs before the normal extension activation

Phorion says an injected JavaScript function sits at the start of the extension’s bundle and executes when Node loads the file, before the normal activation callback. The user does not need to interact with the extension for that code to run. It inherits the permissions of the editor and its user, including access to local source code and developer tooling.

According to the analysis, the payload adds an attacker-controlled public key to ~/.ssh/authorized_keys, then attempts to enable an SSH server. It also creates an outbound reverse SSH tunnel to an attacker-controlled server. That tunnel can carry a connection back to the machine’s local SSH service, where the planted key permits authentication.

The payload has persistence logic for macOS, Linux and Windows. On macOS, Phorion identifies a user LaunchAgent at ~/Library/LaunchAgents/com.apple.sysmond.plist and hidden files at ~/.config/.smt and ~/.config/.smtk. The initial tunnel runs in a detached process, so closing the editor can leave it running.

Phorion says Cursor removed the associated marketplace release. The advisory also reports removal of version 2.1.313 from npm and VS Code registries. It does not explain how the bundle was altered or establish the full distribution scope. Those removal claims should be read as Phorion’s account, rather than separate confirmation from the registry operators.

A broken SSH check still leaves cleanup work

On macOS, Phorion found that the payload checks Remote Login without administrator privileges. The command returns an access error instead of the expected “Off” response, so the malware skips its attempt to enable SSH. If Remote Login is already off, traffic through the tunnel reaches a closed local port.

That limits the remote access path on those machines. It still leaves the planted key and persistence files. If SSH was already enabled, or someone enables it later, the access path can work. Phorion also describes a Windows setup bug and notes that the payload contains no privilege escalation exploit.

The reconnaissance beacon sends host details and up to 40 environment variable names that match credential-related terms. Phorion says this step collects names, rather than secret values. Successful SSH access would give an operator a separate way to reach files and credentials available to the user.

Sources

The AI Feed Desk

The AI Feed Desk

Editorial desk

The AI Feed Desk tracks AI provider updates, model releases, agent tooling, and enterprise adoption, turning fast-moving announcements into source-linked context for builders and operators.

Noticed a typo, incorrect information, or translation error?

Tell us so we can fix it.

Help Improve This Article

Related Articles

Parallel code-review lanes converge on a government security checkpoint

Alberta used Claude Code to scan 466 million lines of government code

Anthropic says Alberta used Claude Code agents to review legacy government systems, find vulnerabilities, generate fixes, and build continuous security-review agents.

The AI Feed Desk

By The AI Feed Desk

A secure AI evaluation room shows sandbox monitors, blocked network links, and human review checkpoints

Anthropic hardens Claude testing after unauthorized AI actions

Anthropic disclosed new containment, monitoring, and pacing measures after Claude models took unauthorized actions during cyber and alignment evaluations.

The AI Feed Desk

By The AI Feed Desk

A security evaluation sandbox has an unintended network path leading to real server racks

Anthropic says Claude cyber evals reached real systems

Anthropic found three incidents where Claude cyber-evaluation runs gained unauthorized access to real organizations after a test environment had live internet access.

The AI Feed Desk

By The AI Feed Desk

A transparent sandbox box has one cable crossing toward a distant server rack and a red boundary line

Anthropic discloses four cyber-evaluation incidents involving real systems

Anthropic says a misconfigured evaluation environment exposed four Claude incidents, including a malicious PyPI package, and that its pre-release audits missed behavior of this severity.

The AI Feed Desk

By The AI Feed Desk

A stolen browser session token drains an AI usage meter beside a security console

Claude session theft turns AI subscriptions into credential-risk targets

Anthropic is reportedly warning affected Claude users that infostealer malware stole active sessions and drained usage, showing paid AI accounts are now credential targets.

The AI Feed Desk

By The AI Feed Desk