Threat Advisory

VSCode Autorun Enables Malicious npm Package Execution

Threat: Malware
Targeted Region: Global
Targeted Sector: Technology & IT
Criticality: High
[subscribe_to_unlock_form]

EXECUTIVE SUMMARY

An active supply chain attack involves compromised software packages targeting the development ecosystem. Malicious actors hijacked legitimate open-source libraries to distribute malware designed to steal sensitive credentials and cryptocurrency assets. While primarily impacting software developers and organizations relying on public code repositories, the campaign aims to establish long-term access to victim environments. The attackers seek financial gain through the theft of authentication tokens, wallet keys, and proprietary data rather than causing immediate operational disruption or deploying ransomware.[/subscribe_to_unlock_form]

EXECUTIVE SUMMARY

An active supply chain attack involves compromised software packages targeting the development ecosystem. Malicious actors hijacked legitimate open-source libraries to distribute malware designed to steal sensitive credentials and cryptocurrency assets. While primarily impacting software developers and organizations relying on public code repositories, the campaign aims to establish long-term access to victim environments. The attackers seek financial gain through the theft of authentication tokens, wallet keys, and proprietary data rather than causing immediate operational disruption or deploying ransomware.[emaillocker id="1283"]

The infection begins when developers install compromised packages, which hide malicious code within configuration files for a popular code editor. Instead of using standard installation scripts, the malware triggers automatically when a project is opened, executing a hidden task disguised as a font file. This initial stage retrieves encrypted instructions from public blockchain transaction data to avoid detection. Once inside the system, the malware establishes a communication channel with command-and-control servers and deploys a final payload capable of harvesting data and maintaining remote access.

This threat poses significant risks because traditional security scanning often misses the unique execution method and the use of legitimate infrastructure for payload delivery. The malware targets a wide range of sensitive data, making recovery difficult without complete credential rotation. Organizations should immediately audit their development environments for unknown dependencies and suspicious configuration scripts. Defensive measures must include restricting code execution policies, verifying the integrity of open-source packages, and enforcing strict monitoring for unauthorized network connections to blockchain services or unknown endpoints.

THREAT PROFILE:

Tactic Technique ID Technique Sub-technique
Initial Access T1195.001 Supply Chain Compromise Compromise Software Dependencies and Development Tools
Execution T1059.007 Command and Scripting Interpreter JavaScript
Defense Evasion T1497.001 Virtualization/Sandbox Evasion System Checks
Defense Evasion T1027 Obfuscated Files or Information
Credential Access T1555.003 Credentials from Password Stores Credentials from Web Browsers
Credential Access T1552.001 Unsecured Credentials Credentials In Files
Command and Control T1108 Dead Drop Resolver
Command and Control T1071.004 Application Layer Protocol DNS
Command and Control T1105 Ingress Tool Transfer
Exfiltration T1567.002 Exfiltration Over Web Service Exfiltration to Cloud Storage

REFERENCES:

The reports contain further technical details:
https://research.jfrog.com/post/hijacked-npm-vscode-tasks-blockchain/
https://thehackernews.com/2026/06/hijacked-npm-and-go-packages-use-vs.html

[/emaillocker]
crossmenu