Plugin Marketplace Supply Chain Attack: From a Leaked Vendor Key to SSH Backdoor Installation
This article analyzes a plugin marketplace supply chain attack in which a leaked vendor access key led to SSH backdoors, a reverse tunnel, and tampered plugin packages reaching endpoints. Based on the official postmortem and security advisory, it explains the 11-hour incident window, the affected extension versions, the four-step attack chain, the scope of unaffected systems, practical remediation steps, and a hardening checklist for plugin distribution, credential management, data sanitization, and endpoint security.
Bottom line: The most important lesson from this incident is not simply that a backdoor was inserted into an extension. The attacker bypassed the target platform’s core systems and followed an overlooked trust chain: a leaked access key issued to a vendor, an unsanitized read-only storage bucket, and finally the distribution cache of the editor plugin marketplace. The plugin marketplace’s distribution and cache layers are a long-underrated attack surface.
1. The verified facts first
To avoid emotional interpretation, it is worth separating the facts that can be confirmed from the official postmortem and security advisory:
- Time window: 02:27 to 13:35 on a single day, approximately 11 hours.
- Affected targets: Two tampered versions, 2.1.312 and 2.1.313, of an AI coding assistant extension. They affected mainstream desktop operating systems only and did not reach server environments.
- Impact scope: Up to approximately 5,000 users may have installed the malicious versions.
- Malicious behavior: The extension collected the hostname, username, operating system version, version-control email address, and public IP address. It also wrote an attacker-controlled SSH public key, with a comment disguised as a telemetry service named svc-telemetry, into a passwordless-login authorization list. In addition, it established a reverse tunnel to maintain a remote channel.
- Key judgment: Uninstalling the extension alone is not enough to remove the threat. The malicious code released a standalone persistent script that continued running.
It is also important that the official statement clearly said: the two malicious versions were never published by the upstream AI vendor, and the malicious packages never existed in the upstream open-source plugin repository. The root cause was also not the AI model product itself. This shows that the attack landed on the distribution channel, not the upstream product.
2. The four-step attack chain
Each step crossed a trust boundary.
Step 1: A vendor-facing access key was leaked
The platform outsourced part of its inference and training workload to a third-party compute provider and issued an access key for that purpose. According to the official account, the key was exposed on the vendor side. After obtaining it, the attacker immediately read a read-only storage bucket that was shared by both parties.
Step 2: The bucket contained unsanitized agent trajectory data
The storage bucket contained programming agent run traces from sessions where privacy mode was not enabled. A small portion of the records still contained credentials that had not been properly cleaned. In total, less than about 0.01% of customer API credentials were exposed. The number was small, but it was enough to serve as a key for lateral movement.
Step 3: Leaked credentials were used to access multiple SaaS systems
The attacker used these credentials to log in to several SaaS systems used by the platform and touched some non-production source-code repositories, customer-support ticket data, and usage statistics. At this point, the attacker already had the ability to modify release artifacts.
Step 4: Malicious versions were pushed into the plugin marketplace cache
Using previously stolen release credentials, the attacker wrote the two malicious versions directly into the cache distribution layer of the plugin marketplace. This step was dangerous because once the cache was poisoned, the normal release-verification chain was bypassed. Even if the upstream had never published a version, endpoints could still pull the tampered package.
Taken together, the four steps form a classic supply chain attack path:
leaked key → unsanitized data → credential-based lateral movement → compromised distribution channel
No so-called 0-day was used anywhere in the chain. The attack relied on configuration weaknesses and excessive trust.
3. What was not affected
The official statement also clearly defined the unaffected scope:
- Prompts and code from privacy-mode sessions, which did not enter the storage bucket;
- Customer code repositories themselves;
- Ongoing inference requests and results;
- The official client’s official update channel.
The last observable attacker activity occurred on November 1 and was blocked.
4. What to do if you installed the affected version
Step 1: Check the version
Focus only on the two flagged version numbers: 2.1.312 and 2.1.313. If you are not using either version, you generally do not need to follow the emergency-response process. If you are, continue with the investigation.
Step 2: Do not just uninstall the extension
Uninstalling removes the extension itself, but the standalone script released by the malicious code may still be running. Check the following items according to the official security advisory.
First, check the passwordless-login authorization file, usually ~/.ssh/authorized_keys, to see whether an unfamiliar svc-telemetry public key has appeared:
# List the key type and comment of each authorized keyawk '{print $1, $NF}' ~/.ssh/authorized_keys# Verify the fingerprints of authorized keys one by onessh-keygen -lf ~/.ssh/authorized_keys
Second, check suspicious persistent scripts and autostart items:
# View user-level scheduled taskscrontab -l# Look for recently modified scripts in common autostart directoriesls -lt ~/.config/autostart/ 2>/dev/null
Third, check abnormal reverse-tunnel processes and outbound connections:
# Check listening and established connections; pay special attention to unusual ports and unfamiliar peer IPsss -tunp# Trace the executable source of suspicious processesls -l /proc/<pid>/exe
Step 3: Rotate credentials
Rotate all API keys and access tokens that may have been involved recently. Even if you confirm that you were not compromised, this step is still worthwhile, because logs often cannot prove with 100% certainty whether a key was read by an attacker.
5. Hardening checklist for developers and organizations
The value of this incident is that it puts several systemic risks in the software supply chain into focus. A general hardening checklist can be derived from it.
1. Apply least privilege and short-lived credentials
When issuing keys to third-party vendors, follow the principle of least privilege. Prefer short-lived credentials that can be rotated automatically, and audit key usage independently. Once a key is handed to a vendor, assume that it is at risk of exposure.
2. Sanitize data before it lands in shared storage
Any trajectory, log, or debugging data that enters shared storage should be treated as sensitive by default. Credential remnants inside agent trajectory records were the turning point of this incident. Sanitization should happen before the data is written, not after an incident.
3. Enforce strong validation for release channels and caches
The plugin marketplace’s distribution cache must have a mechanism combining artifact signing and integrity verification. Versions that were never published upstream should not appear in the cache. Endpoints should verify signatures before pulling packages, preventing cache poisoning from bypassing release review.
4. Isolate production credentials from office credentials
High-privilege credentials used for release and operations should be separated from daily office and SaaS login credentials. In this incident, the attacker was able to escalate from “able to view data” to “able to modify release artifacts” partly because office-side credentials and release-side credentials were not isolated.
5. Build a default-deny baseline on endpoints
For endpoints running AI coding tools, which often have relatively high filesystem permissions, establish a behavior baseline. Any attempt to write passwordless-login authorization entries, create persistent processes, or establish abnormal outbound connections should trigger an alert or be blocked.
Conclusion
The danger of supply chain attacks is not that one vulnerability is especially clever, but that the attacker only needs to find the weakest link in the trust chain: one leaked key, one unsanitized bucket, or one unvalidated cache.
The focus of defense should therefore shift from patching individual vulnerabilities to reducing the trust surface: make every key minimal, make every dataset sanitized, and make every distribution point verifiable. That is the fundamental way to resist this class of attack.
