Anatomy of an AI Coding Tool Supply Chain Attack: Backdoor Plugin Details and a User Self-Check Guide

    A supply chain attack on a popular AI coding assistant exposed up to 5,000 users to a backdoored plugin for roughly 11 hours. This article breaks down the full attack chain—from leaked API keys to a poisoned plugin cache—and provides a step-by-step self-check guide covering SSH key backdoors, persistence artifacts, cleanup steps, and hardening best practices for developers.

    1. Incident Background and Attack Chain Reconstruction

    As AI-assisted programming becomes mainstream, developers increasingly rely on intelligent plugins integrated into their editors. However, supply chain attacks are emerging as a major threat. Recently, a mainstream AI coding tool (referred to here as “the tool”) disclosed a security incident: attackers stole a leaked partner access key, tampered with a popular AI coding assistant plugin, and published the modified version to the tool’s official plugin marketplace cache. The compromise lasted approximately 11 hours, and up to 5,000 users may have installed the backdoored version.

    Key Stages of the Attack Chain

    1. Key leak: The tool had a technical partnership with a model provider and shared an access key with them. The provider’s insufficient internal security led to the key being leaked, giving attackers their starting point.
    2. Session data theft: Using that key, the attackers accessed a sample of the tool’s user session records (mainly from 2025, from users who had not enabled privacy mode). A small number of these records contained unredacted temporary credentials.
    3. Internal system penetration: With the stolen credentials, attackers compromised several SaaS management tools used by the vendor (such as task tracking, configuration management, and plugin publishing), obtaining permission to publish plugins.
    4. Malicious plugin delivery: The attackers uploaded a tampered version of the AI coding assistant plugin (versions 2.1.312 and 2.1.313) to the tool’s plugin marketplace cache, overwriting the legitimate version. Any user who installed or updated the plugin during the affected window downloaded the malicious package.

    Official Clarifications and Fact Check

    • The upstream open extension registry was never directly poisoned; the issue existed only in the tool’s self-hosted cache layer.
    • The AI coding assistant plugin itself had no vulnerabilities; the attack originated entirely from a third-party link in the supply chain.
    • The tool’s main program and official update channels were unaffected; only the plugin marketplace cache was compromised.

    2. Scope of Impact and Eligibility Criteria

    The blast radius of this incident is relatively narrow, but users should still verify carefully. Only if all three of the following conditions are met do you need to proceed with the full check:

    Criteria Requirement
    Time window October 29, 02:27–13:35 Pacific Time (October 29, 17:27 – October 30, 04:35 Beijing Time)
    Action During this window, installed or updated the AI coding assistant plugin through the tool’s built-in marketplace (including automatic updates)
    Operating system macOS or Windows (the malicious plugin was built only for these two platforms)

    If you are unsure about the timing, check your locally installed extensions directly:

    1. # macOS / Linux
    2. ls ~/.cursor/extensions | grep -i "anthropic.claude-code"
    3. # If the tool provides a CLI, you can query the extension version
    4. cursor --list-extensions --show-versions | grep -i claude-code

    If no matching directory or version is found, you are most likely not affected.

    3. Core Check: SSH Public Key Backdoor

    One of the malicious plugin’s primary behaviors was appending an attacker-controlled SSH public key to the local authorized_keys file, enabling persistent remote access. The key’s comment string is svc-telemetry, which is the most direct indicator of compromise.

    macOS official check command

    1. grep -qs svc-telemetry ~/.ssh/authorized_keys && echo "svc-telemetry key found" || echo "No key found; machine not impacted"

    Windows PowerShell check command

    1. $files = "$HOME\.ssh\authorized_keys", "C:\ProgramData\ssh\administrators_authorized_keys" | Where-Object { Test-Path $_ }
    2. if ($files -and (Select-String svc-telemetry $files)) {
    3. "svc-telemetry key found"
    4. } else {
    5. "No key found; machine not impacted"
    6. }

    If the output is “No key found”, the machine was not infected. If the key is found, do not delete it immediately. Back up the entire file first, then contact your security team or a professional security tool for analysis, in case the attackers planted additional backdoors.

    4. Deeper Investigation: Persistence Files and System Artifacts

    Even if the SSH key check passes, it is still advisable to scan for other persistence mechanisms the attackers may have left behind. Based on the officially published indicators of compromise (IOCs), check the following locations:

    macOS / Linux paths

    1. # Check for suspicious files in hidden directories
    2. ls -la ~/.config/.smt
    3. # Check startup items and scheduled jobs
    4. launchctl list | grep -i smt
    5. crontab -l | grep -i sil
    6. # Check user-level systemd services (if used)
    7. systemctl --user list-unit-files | grep -E 'smt|sil'

    Windows paths

    1. # Check the Startup folder and registry
    2. Get-ChildItem "$env:APPDATA\Microsoft\Windows\Start Menu\Programs\Startup"
    3. Get-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Run"
    4. # Check scheduled tasks
    5. Get-ScheduledTask | Where-Object {$_.TaskName -like "*smt*"}

    These file names and parameters come from publicly released IOC reports. Real-world attackers may use variants, so combine these checks with behavioral signals such as running processes and network connections for a comprehensive assessment.

    5. Cleanup and Hardening Recommendations

    If you confirm you were affected, take the following actions immediately:

    1. Remove the malicious plugin: Uninstall the AI coding assistant plugin via the plugin manager, and manually delete leftover files in the extension directory.
    2. Revoke SSH access: Remove the attacker’s public key from authorized_keys, and audit the fingerprints of all SSH keys to ensure no other unauthorized keys remain.
    3. Rotate credentials: The attackers may have stolen temporary credentials that appeared in session data. Rotate sensitive credentials such as cloud service keys and database passwords associated with the tool.
    4. Inspect network egress: Look for unusual outbound connections and block suspicious traffic using a firewall or security software.
    5. Upgrade and audit: Update the tool to the latest version and enable privacy mode to prevent session content from being cached.

    6. Security Principles Drawn from This Incident

    This incident once again underscores the complexity of supply chain security. Even if you don’t use this particular tool, as a developer you should adopt the following habits:

    • Principle of least privilege: Restrict the scope of any API keys you expose externally and rotate them regularly.
    • Verify trusted sources: Before installing any plugin, verify hashes, signatures, and the publisher, and prefer official direct channels whenever possible.
    • Automated security checks: Add integrity monitoring for critical files into your CI/CD pipeline—for example, use git hooks or inotify to watch for changes to ~/.ssh/authorized_keys.
    • Backups and incident response plans: Prepare an incident response playbook so you can quickly isolate, analyze, and recover from similar events.

    Security is never a small matter—every incident is a test of your defenses. By following the four-step self-check and hardening methods in this article, developers can reduce their risk and build a stronger security baseline into their daily workflows.