Rust, AI, and the IDE Trap: What If Your Dev Tools Turned Against
Two malicious VS Code extensions, a dark theme and a fake AI assistant, were published on the official Marketplace and installed a payload that stole clipboard data, screenshots, Wi-Fi passwords and browser cookies. The same campaign also involved typosquatted packages in the Go, npm and Rust ecosystems that exfiltrated data or opened reverse shells.
Published on medium.com
You sit down to code, open Visual Studio Code, and do what every developer does sooner or later: you customize it.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the marketplace and package registries let anyone publish under a name that closely resembles a trusted one, and developers install without checking the publisher or the install scripts.
Impact
An attacker could steal source code, session cookies for admin panels, cloud consoles and CI/CD pipelines, and stored credentials from any developer who installed the extensions.
What the attacker needed
Developer installs the extension; Windows machine; no user interaction after install
The fix
The malicious extensions were removed from the Marketplace after researchers raised the alarm, but the article's advice is for developers to vet publishers and review dependencies rather than rely on removal alone.
How it was found
- The developer installs the theme or AI assistant extension from the VS Code Marketplace.
- The extension runs an embedded PowerShell script that contacts an external domain.
- The script downloads a password-protected ZIP and unpacks a payload using whatever tool is available.
- The payload loads a rogue DLL alongside the legitimate Lightshot screenshot tool.
- The malware collects clipboard, screenshots, Wi-Fi passwords and system details and sends them to an attacker server.
- It launches Chrome and Edge in headless mode to steal stored cookies and hijack sessions.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
A VS Code extension is a small add-on you install to change how your code editor looks or works. These two add-ons looked like a theme and an AI helper, but once installed they ran hidden code that copied your private data and sent it to a stranger's server. The article also warns that fake packages with names almost identical to real ones can do the same thing when you install them.
What is Leaked secrets?
Keys, tokens or passwords left in public code, apps, logs or responses, that grant real access.