---
title: "Security notice — malicious version of Anthropic.claude-code (2.1.312 and 2.1.313) identified in the Cursor VS Code Extension Marketplace · Cursor"
description: "Tampered builds of the Anthropic.claude-code extension (2.1.312 and 2.1.313, macOS and Windows) were served from Cursor's VS Code Extension Marketplace for about 11 hours on Oct 29, 2026."
url: "https://swe.quest/articles/security-notice-malicious-version-of-anthropic-claude-code-2-1-312-and-2-1-313-2c482f0e7cb14708"
canonical: "https://cursor.com/blog/claude-code-extension-security-notice"
source: "Cursor"
published: "2026-10-29"
difficulty: "medium"
kind: "Incident"
reading_minutes: 4
tags: ["supply-chain-security","threat-detection","incident-response","developer-tools"]
---

# Security notice — malicious version of Anthropic.claude-code (2.1.312 and 2.1.313) identified in the Cursor VS Code Extension Marketplace · Cursor

A post on [Cursor](https://swe.quest/sources/cursor.md), published 2026-10-29, 4 min read, Incident. Original: [https://cursor.com/blog/claude-code-extension-security-notice](https://cursor.com/blog/claude-code-extension-security-notice)

## Summary

Tampered builds of the Anthropic.claude-code extension (2.1.312 and 2.1.313, macOS and Windows) were served from Cursor's VS Code Extension Marketplace for about 11 hours on Oct 29, 2026. The payload collected host and user details, added an attacker SSH key labeled svc-telemetry to authorized\_keys, and tried to open a persistent reverse SSH tunnel through a LaunchAgent or a SysMon scheduled task. Without admin rights the SSH service step usually failed, and the attacker server has since been taken offline. Cursor pulled the versions, rotated keys and rebuilt the marketplace. It provides detection and remediation scripts plus full IOCs (hashes, IP, file paths, process command lines) and advises removing persistence and rotating credentials, since uninstalling the extension alone is not enough.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Supply chain security](https://swe.quest/tags/supply-chain-security.md) (Security)
- [Threat detection](https://swe.quest/tags/threat-detection.md) (Security)
- [Incidents & postmortems](https://swe.quest/tags/incident-response.md) (Reliability & operations)
- [Developer tools](https://swe.quest/tags/developer-tools.md) (Engineering practices)

## Prerequisites

- SSH keys and reverse tunnels
- OS persistence mechanisms

## Keywords

Cursor, Claude Code, VS Code Extension Marketplace, VSIX, SSH, LaunchAgent, autossh

## Related posts

- [How we contain Claude across products](https://swe.quest/articles/how-we-contain-claude-across-products-b42a3aa0de1e1d62.md): Anthropic Engineering · 2026-05-25 · Medium · 19 min read · Sandboxing & isolation, AI agents, Security, Virtualization, AI safety
  Anthropic caps the blast radius of Claude agents mainly through containment (sandboxes, VMs, egress controls) rather than human approval, after telemetry showed users approved about 93% of permission prompts. claude.ai runs code in ephemeral gVisor containers, Claude Code combines human approval with an OS-level sandbox (Seatbelt/bubblewrap) that cut prompts by 84%, and Cowork runs inside a full local VM with credentials kept on the host.
- [How we built Claude Code auto mode](https://swe.quest/articles/how-we-built-claude-code-auto-mode-f44e56ec24ef0ed6.md): Anthropic Engineering · 2026-03-25 · Medium · 16 min read · AI agents, AI safety, LLMs, Security, AI for coding
  Claude Code’s auto mode replaces most permission prompts with a two-layer defense: a server-side prompt-injection probe screens tool outputs before they enter context, and a two-stage transcript classifier gates risky actions such as shell commands, external fetches and out-of-project file operations.
- [Coding Agent Horror Stories: The Command You Already Approved](https://swe.quest/articles/coding-agent-horror-stories-the-command-you-already-approved-c2fceff8d5f4f4cc.md): Docker · 2026-08-18 · Medium · 14 min read · AI agents, Sandboxing & isolation, Application security, AI for coding, Virtualization
  CVE-2026-22708 in Cursor let shell built-ins like \`export\`, \`typeset\` and \`declare\` run outside the Auto-Run allowlist, so injected text could silently set variables such as \`PAGER\`, \`PYTHONWARNINGS\` or \`PERL5OPT\` and turn an approved command like \`git branch\` into arbitrary code execution, even with an empty allowlist.
- [Making Claude Code safer with sandboxing](https://swe.quest/articles/making-claude-code-safer-with-sandboxing-927e34fb9dfe9ca9.md): Anthropic Engineering · 2025-10-20 · Medium · 5 min read · Sandboxing & isolation, AI agents, AI for coding, Security
  Claude Code now sandboxes its bash tool using OS-level primitives (Linux bubblewrap, macOS seatbelt) to enforce filesystem isolation (writes limited to the working directory) and network isolation (traffic forced through a Unix domain socket to an external proxy that allowlists domains), covering all spawned subprocesses.
- [Our response to the TanStack npm supply chain attack](https://swe.quest/articles/our-response-to-the-tanstack-npm-supply-chain-attack-a4ee1bd194da9989.md): OpenAI · 2026-05-13 · Easy · 6 min read · Supply chain security, Incidents & postmortems, JavaScript, CI/CD
  Two OpenAI employee devices were compromised via the malicious TanStack npm package in the Mini Shai-Hulud supply chain attack, leading to credential-focused exfiltration from a limited set of internal repositories that held code-signing certificates for iOS, macOS and Windows apps.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
