Security notice — malicious version of Anthropic.claude-code (2.1.312 and 2.1.313) identified in the Cursor VS Code Extension Marketplace · Cursor
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.
Related posts
- How we contain Claude across products
Anthropic Engineering mediumAdeptAnthropic 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. The post also covers vulnerabilities they missed, including project config hooks executing before the trust dialog and a red-team phish in which a user-pasted prompt exfiltrated AWS credentials 24 of 25 times. Its main lesson is that only environment-level controls such as egress blocking and filesystem boundaries reliably stop attacks that model-layer defenses cannot see.
- How we built Claude Code auto mode
Anthropic Engineering mediumAdeptClaude 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. The classifier runs a fast yes/no filter first, then chain-of-thought only on flagged transcripts, and it is deliberately reasoning-blind by stripping assistant text and tool outputs. Evaluated end to end, it cut false positives on real internal traffic to 0.4% while letting through 17% of real overeager actions and 5.7% of synthetic exfiltration attempts—so it is positioned as safer than --dangerously-skip-permissions but not a replacement for careful manual review on high-stakes infrastructure.
- Coding Agent Horror Stories: The Command You Already Approved
Docker mediumAdeptCVE-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. The chain in Pillar Security's research ended with SSH private keys being exfiltrated. Running the agent inside Docker Sandboxes microVMs does not stop the injection, but it keeps the key file out of reach, discards `~/.zshrc` persistence and limits egress through deny-by-default network policy. Caveats remain: the live host workspace (Git hooks, Makefiles), the shared skills store, and a forwarded SSH agent socket, which declarative kits and org-level governance with SIEM audit logs are meant to constrain.
- Making Claude Code safer with sandboxing
Anthropic Engineering mediumAdeptClaude 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. Both boundaries are required, since without network isolation a prompt-injected agent can exfiltrate secrets and without filesystem isolation it can escape the sandbox. Internally this cut permission prompts by 84%, and the runtime is open-sourced for sandboxing other agents and MCP servers. Claude Code on the web runs sessions in cloud sandboxes that never hold real credentials. A git proxy validates a scoped credential and the push target before attaching the GitHub token.
- Our response to the TanStack npm supply chain attack
OpenAI easyNovice
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. OpenAI isolated systems, revoked sessions, rotated credentials, blocked new notarizations with the old certificate, and is rotating signing certificates, which requires macOS users to update apps before the revocation deadline (extended to June 26, 2026). The affected devices had not yet received hardening controls rolled out after the Axios incident, including package manager minimumReleaseAge settings and provenance validation, which would have blocked the malicious package. No customer data, IP or signed malware was found.