Malicious Anthropic Claude‑code Model Versions Discovered in Cursor VS Code Extension Marketplace
What It Is — Security Affairs reported that two compromised releases of Anthropic’s Claude‑code model (versions 2.1.312 and 2.1.313) were published in the Cursor extension for Visual Studio Code. The malicious packages embed hidden payloads that, when executed, can download additional malware, exfiltrate source‑code, and achieve remote code execution on the host operating system. The threat was identified by reverse‑engineering the extension’s binaries and observing network traffic to a high‑risk command‑and‑control domain. No public exploit code has been released, but the behavior is fully functional in the wild. The affected extension is distributed through the official VS Code Marketplace, meaning any developer who installs the Cursor extension from the store may be exposed. The issue was disclosed on 8 November 2026; the publisher has since removed the malicious versions, but the incident highlights the difficulty of vetting AI model artifacts in third‑party software supply chains.
Affected Products — Cursor VS Code extension (versions 2.1.312 and 2.1.313) containing the compromised Anthropic Claude‑code model.
Why It Matters for Trust & Control Assurance — This incident tests the control objective of third‑party software supply‑chain oversight. Organizations must demonstrate they can continuously monitor and validate the integrity of externally sourced AI components, a requirement that maps across many frameworks (e.g., NIST CSF 2.0 Identify‑Supply Chain Risk Management).
Recommended Actions —
- Immediately uninstall the affected Cursor extension versions and any derived configuration files.
- Verify the integrity of all locally stored AI model files using hash‑based checks against trusted vendor hashes.
- Update internal policies to require cryptographic signing verification for all third‑party AI models and extensions before deployment.
- Enable continuous monitoring of VS Code Marketplace assets through an automated SBOM and provenance service.
- Conduct a rapid third‑party risk assessment of the extension publisher, documenting due‑diligence evidence for audit purposes.
Source: Security Affairs AI‑Cybersecurity Newsletter Round 7