Poisoned AI Coding Plugin: Incident Postmortem and a Four-Step Self-Check
A popular AI coding tool disclosed the findings of a security investigation showing that a tampered version of its coding agent extension reached roughly 5,000 users through the plugin marketplace cache. This article walks through the full attack chain, defines the vendor's affected-scope criteria (date, source, platform), and gives copy-paste commands for macOS, Linux, and Windows to check the vulnerable plugin versions (2.1.312 and 2.1.313), look for the injected SSH public key tagged svc-telemetry in authorized_keys, hunt for persistence files, and review SSH login logs — followed by credential rotation guidance and an enterprise remediation checklist covering key governance, log redaction, plugin controls, and endpoint baselines. It also explains why "not affected" does not mean "no action required."
1. What Happened: From a Leaked Key to a Backdoor in the Marketplace
The security team of a mainstream AI coding tool published its conclusions on a recent security incident, and several security outlets reported on it. The path was not “the client was breached.” Instead, a series of individually unremarkable links were chained together:
- Entry point: a leaked partner key. The vendor had issued an access key to a third-party compute and model hosting provider it worked with. That key leaked on the provider’s side.
- First hop: session records exposed. Using the key, the attacker read a batch of conversation records. These were mostly from 2025 and were all Agent conversations recorded without privacy mode enabled. A small number contained credentials that had never been redacted.
- Second hop: lateral movement into SaaS. The attacker used the stolen credentials to get into several SaaS tools the vendor used.
- Payload: a tampered plugin written into the cache. Using the stolen credentials, on October 29 the attacker wrote two modified versions of the coding agent extension — 2.1.312 and 2.1.313 — directly into the tool’s plugin marketplace cache.
- Backdoor: an SSH public key plus a persistence file. An infected plugin performs two actions on the host:
- It appends the attacker’s SSH public key to the authorized keys list, with the key comment set to
svc-telemetry. - It drops a persistence file in a configuration directory.
- It appends the attacker’s SSH public key to the authorized keys list, with the key comment set to
Based on the disclosure, the delivery window was about 11 hours, and up to roughly 5,000 users may have installed a backdoored build. The vendor published a security advisory afterward and drew the boundaries of the impact clearly:
- The upstream public plugin repository was never poisoned.
- This is not a vulnerability in the coding agent itself.
- The coding tool’s client itself and its official update channels are not affected.
Those three points matter, because they determine what you actually have to do: there is no need to reinstall the tool and no reason to panic-remove upstream plugins. What needs attention is the plugin installed on your machine, plus the credential and SSH access risk that follows from it.
2. Scope: Narrow It Down Before You Start Looking
The vendor limited the affected population to devices meeting all three of the following conditions, which is what the attack chain dictates:
- The plugin came from the poisoned cache.
- The version falls inside the tampered range.
- The tampered build only targets desktop operating systems, so the platform matters too.
| Condition | Criteria | Notes |
|---|---|---|
| Time | October 29, 02:27–13:35 Pacific Time (09:27–20:35 UTC) | US daylight saving time did not end until November 1, 2025, so local time was UTC-7 during this window; the local timestamp is what the vendor’s logs use |
| Source | The extension was installed or updated from the tool’s plugin marketplace, including automatic updates from that marketplace | A manual offline install from another source does not count |
| Platform | Desktop operating systems; the vendor’s server-side product is unaffected | Server-side users can be ruled out outright |
Check in this order: time → source → platform → version. If any of the first three fails, stop there. One caveat on the version check: if the plugin was auto-updated to 2.1.312/2.1.313 during the window and then auto-updated again to a clean, higher version, the version number you see today will look normal while the machine is not clean. So even if the version looks fine, if you know you used the extension daily inside that window, still complete step 2 below.
Step 1: Confirm the plugin version
Graphical interface:
- Open the extensions/plugin management panel.
- Find the coding agent extension.
- Note the installed version and compare it against the marketplace’s version history to see whether 2.1.312 or 2.1.313 was installed or updated between October 29 and 30.
Command line — the following works on desktop Unix-like environments. Replace EDITOR_HOME with your actual install directory first: the default is ~/.cursor, and for a custom install check Settings → Extensions → Extension location in the editor.
# List installed extension directories whose names contain "anthropic", with versionsEDITOR_HOME="${EDITOR_HOME:-$HOME/.cursor}"ls -1 "$EDITOR_HOME/extensions" | grep -i "anthropic.claude-code"# If the CLI is configured, query installed extensions and versions directlycursor --list-extensions --show-versions | grep -i "claude-code"
PowerShell on the same platform:
$ext = Join-Path $HOME ".cursor\extensions"Get-ChildItem $ext -Directory |Where-Object Name -Like "anthropic.claude-code-*" |Select-Object -ExpandProperty Name# If the CLI is configured, query directlycursor --list-extensions --show-versions | Select-String "claude-code"
If the output shows anthropic.claude-code-2.1.312 or anthropic.claude-code-2.1.313, you are very likely affected. Go straight to step 2 in section 3 to verify, and stop using the plugin.
3. The Core Check: Is svc-telemetry in authorized_keys?
Why authorized keys are the thing to look at
A coding agent can execute commands. The tampered plugin, in effect, ran one command on your machine with your privileges: “append this SSH public key.”
- The key is written to
~/.ssh/authorized_keyson Unix-like desktops, or toC:\Users\<username>\.ssh\authorized_keysandC:\ProgramData\ssh\administrators_authorized_keyson Windows. - The key’s trailing comment is
svc-telemetry, which is meant to look like a bot account belonging to some telemetry service. - Once the key is in place, anyone holding the matching private key can log in without a password and without second-factor authentication. Under default configuration, SSH sessions leave no command-level audit trail.
Looking for svc-telemetry is therefore the most direct and most reliable indicator.
macOS / Linux:
grep -qs "svc-telemetry" ~/.ssh/authorized_keys \&& echo "svc-telemetry key found" \|| echo "No key found; machine not impacted"
Windows PowerShell:
$files = "$HOME\.ssh\authorized_keys", "C:\ProgramData\ssh\administrators_authorized_keys" |Where-Object { Test-Path $_ }if ($files -and (Select-String -Path $files -Pattern "svc-telemetry" -Quiet)) {"svc-telemetry key found"} else {"No key found; machine not impacted"}
Interpreting the result:
- No key found means the public key was not present in the locations the command covers.
- If you already confirmed the version in step 1 and it is outside the affected range, you can conclude the machine is not affected.
- If the version is inside the range but the key is not there, weigh two more things: the plugin only covered certain platforms, which has already narrowed the field; and failed deployments on individual hosts are not unusual for this kind of attacker. The safest move is to continue with step 3.
While you are here, review the configuration of privilege-escalation tools such as sudo and doas. If NOPASSWD allows passwordless escalation, an injected key means the attacker gets full control of the system.
Advanced check: change history for authorized_keys
These commands apply to macOS and Linux and are meant to reconstruct when the authorized keys file last changed:
# Modification time — does it line up with October 29–30?stat -f "%N modified: %Sm" -t "%Y-%m-%d %H:%M:%S" ~/.ssh/authorized_keys# List existing keys and comments only (type and comment; no key material)awk '{print $1, $NF}' ~/.ssh/authorized_keys# Look for backups or editor temp files to compare against the current contentls -la ~/.ssh/ | grep -Ei "authorized_keys"
If authorized_keys never existed, or was last modified well before the incident and contains only your own keys, the likelihood of an appended key is low.
4. Cleanup: Persistence Files and Autostart Entries
The indicators of compromise (IOCs) published by the vendor show the backdoor may also drop a persistence file in the user’s configuration directory. Do not delete anything immediately; work through find → confirm → remediate → re-verify.
1. Look for suspicious files
# List files added or modified in the last two weeks in common config directories# find prints a notice for missing paths; it does not affect the other directoriesfind ~/.config ~/.local/share ~/.cache -type f -mtime -14 2>/dev/null \| grep -vE "/Cache/|/CachedData/"# Specifically inspect hidden (dot-prefixed) config directoriesls -lad ~/.config/.[!.]* 2>/dev/null
2. Match against the official IOC list
Compare the output with the IOC list in the official advisory one entry at a time, focusing on file paths and SHA-256 hashes:
shasum -a 256 <file-path>
Windows PowerShell:
Get-FileHash <file-path> -Algorithm SHA256
3. What to do when you find a suspicious file
- Preserve the scene. Do not delete the file right away. Save a sample copy first (for example, as
.bak) for comparison or for handing to your security team. - Inspect the content. Persistence scripts typically trigger at boot or login. Common forms:
- User-level launch agent directory
~/Library/LaunchAgentsand cron jobs (crontab) on Unix-like desktops; - shell configuration files such as
~/.zshrcand~/.bash_profileon Unix-like desktops; - registry
Runkeys, the startup folder, and scheduled tasks on Windows; - any script fragment pointing at a suspicious URL or containing a download command.
- User-level launch agent directory
- Only delete after the sample is isolated and confirmed harmless, and remove the corresponding autostart entry. Disconnect from the network before remediating so the backdoor script cannot phone home.
5. Blast Radius: What to Check Beyond This Machine
No suspicious public key on your machine does not mean you are in the clear. Review the following three areas as well.
1. Exposure of your SSH private keys. If your SSH private keys live in the default locations under ~/.ssh (for example id_ed25519, id_rsa), then an injected public key means the attacker already had code execution on the machine, and those private keys must be treated as compromised. For every server those keys can reach, rotate the keys or the credentials. Then compare fingerprints with ssh-keygen -lf <private-key-path> and update the corresponding known_hosts entries on each target host.
2. Credentials and sensitive information. List the credentials stored long-term on the machine and confirm item by item whether each needs rotation:
- Access tokens for cloud platforms and code hosting platforms;
- Connection strings and access keys for databases, message queues, and object storage;
- API keys and container image registry credentials;
- VPN and bastion host credentials for the corporate network.
Be especially careful with any Agent session that falls inside the contamination window and that had credentials stored on the machine; see section 6 for the practical approach.
3. Remote login logs. On the host whose ~/.ssh directory you are inspecting, check the server-side authentication logs for successful logins from unfamiliar sources:
sudo grep -iE "Accepted (publickey|password)" /var/log/auth.log 2>/dev/null | tail -50
On Linux servers, these records live in journald:
sudo journalctl -u ssh -u sshd --since "2025-10-29" 2>/dev/null | grep "Accepted" | tail -50
On Windows, login auditing is in the Security event log, with event IDs 4624 (successful logon) and 4625 (failed logon):
Get-WinEvent -FilterHashtable @{LogName='Security'; Id=4624,4625; StartTime='2025-10-29'} -MaxEvents 100 |Select-Object TimeCreated, Id, @{N='Account';E={$_.Properties[5].Value}}, @{N='Source';E={$_.Properties[18].Value}} |Format-Table -AutoSize
All-in-one self-check script
#!/usr/bin/env bash# AI coding plugin poisoning incident - self-check script (read-only, no system changes)set -uAUTH_KEY="$HOME/.ssh/authorized_keys"echo "== 1. Version check =="EDITOR_HOME="${EDITOR_HOME:-$HOME/.cursor}"ls -1 "$EDITOR_HOME/extensions" 2>/dev/null | grep -i "anthropic.claude-code"echo "== 2. Backdoor public key check =="if grep -qs "svc-telemetry" "$AUTH_KEY" 2>/dev/null; thenecho "HIT: svc-telemetry public key found"elseecho "No hit"fiecho "== 3. authorized_keys modification time =="[ -f "$AUTH_KEY" ] && stat -f "%Sm %N" -t "%Y-%m-%d %H:%M:%S" "$AUTH_KEY"echo "== 4. Config files added/modified in the last 14 days =="find ~/.config ~/.local/share ~/.cache -type f -mtime -14 2>/dev/null \| grep -vE "/Cache/|/CachedData/"
6. Attack Chain Postmortem: Four Structural Risks
1. The “longest-lived, broadest-permission key” assumption
Handing a partner a long-lived, over-privileged key moves the security boundary of the entire data path outside your own environment. Least privilege, short-lived credentials, per-partner issuance, and scheduled rotation are not just compliance items — they directly determine the blast radius of a single leak. In a general cloud environment, a key management capability can host credentials centrally, enable rotation, and replace long-lived keys with temporary security tokens.
2. Credentials in plaintext inside logs and session data
An Agent session is essentially an execution log that can replay the entire sequence of operations. Once it contains keys, connection strings, or tokens, the log becomes a credential store. Redacting secrets before logs and session records are persisted is the most frequently overlooked and highest-payoff control in incidents like this one.
3. Cache synchronization turns a mis-delivery into distribution
The attacker bypassed the plugin marketplace’s front-end review but exploited the backend mechanism that syncs the cache to clients, so one write became a network-wide distribution — 11 hours was enough to reach thousands of people. Plugin distribution scenarios like this need end-to-end integrity checks, including:
- publisher signing;
- version and hash allowlists;
- a rollback mechanism;
- alerting on anomalous releases.
At the same time, auto-update on by default hands the “should I update?” decision to upstream, so organizations have reason to pin versions for critical plugins.
4. “Not affected” does not mean “no action needed”
The advisory is explicit: the upstream repository is clean, the coding agent has no vulnerability, and the client is unaffected. What is actually at risk is the plugin on your machine and SSH access to it. You have to read a security advisory all the way through to know what to do next.
7. Enterprise Remediation Checklist
| Area | Key actions | Implementation |
|---|---|---|
| Key governance | Per-partner key issuance, least privilege, scheduled rotation, alerting on anomalous usage | Centrally managed through a key management capability, wired into monitoring and alerting |
| Log redaction | Identify and mask credentials in session and debug logs before they are persisted | Configure redaction rules in the logging service; tighten access permissions and retention periods |
| Plugin control | Pin versions of critical plugins, disable plugin auto-update, run an internal plugin source with hash verification | Enforce consistently in team configuration and CI; include the review checklist in the artifact repository |
| Endpoint baseline | Detect unexpected authorized_keys changes, suspicious hidden files, cron jobs and autostart entries |
Continuous inspection and alerting via host security or endpoint detection capabilities |
| Access auditing | Restrict SSH login sources, collect authentication logs centrally | Bastion host plus centralized log search |
| Incident drills | Add plugin-poisoning scenarios to the desktop security incident plan | Pre-stage self-check scripts; define notification, isolation, credential rotation, and recovery procedures |
8. Incident Response Recommendations
Individual developers:
- Uninstall the coding agent plugin immediately, or downgrade to a clean version, and only upgrade again after confirming it is safe.
- Remove the attacker’s public key from
authorized_keys(keep a sample first) and handle the associated persistence files. - Rotate any credential that may have been exposed: platform tokens, cloud access keys, SSH private keys, database connection strings, and so on.
- Check whether any secrets were ever pasted into historical session records, and replace those too if so.
- Going forward, enable privacy mode when using Agent-style tools, and never paste plaintext credentials into a session.
Team leads and managers:
- Collect plugin versions across the team, focusing on anyone who updated the plugin through the marketplace during the incident window.
- Add detection for the
svc-telemetrypublic key and the known persistence paths to your endpoint management platform or host security policy. - Review SSH access controls and trace the source of any unfamiliar logins that occurred during the incident window.
- Afterward, review the key lifecycle and log redaction process, and turn the findings into standing policy.
Closing
What makes supply chain incidents like this one dangerous is not the complexity of any single vulnerability. It is that laxity at any link gets amplified at every step: one leaked key, one unredacted session log, one unverified cache sync, and the end result is persistent backdoors on thousands of developer machines.
For developers, the key actions are simple: check the version, inspect the public keys, clean up persistence files, rotate credentials. For organizations, the focus should shift from single vulnerabilities to the slow-moving variables — key lifecycle, log redaction, and endpoint baselines. Once a security advisory is out, completing your self-check as early as possible is the cheapest way to limit the damage.
