
Microsoft Flags npm Trojan Targeting Crypto Wallet Credentials
Microsoft security researchers identified two malicious npm packages that deliver a remote access trojan capable of stealing cryptocurrency wallet credentials, screenshots, and keystroke data. The packages exfiltrate data through Hugging Face infrastructure, posing a supply-chain risk to developers.
Key Takeaways
- 1## The Malicious Packages Microsoft researchers disclosed that two npm packages distribute a remote access trojan (RAT) designed to harvest sensitive data from infected systems.
- 2The packages compromise developer machines by deploying code that intercepts wallet credentials, captures screenshots, and logs keystrokes.
- 3Data exfiltration routes through Hugging Face, a machine-learning model repository, to mask command-and-control traffic as legitimate service requests.
- 4## Attack Surface and Vector The trojan operates as a supply-chain attack, reaching developers who install the compromised packages as dependencies or development tools.
- 5Once installed, the malware runs with the privileges of the npm process, granting it broad access to the developer's file system and input devices.
The Malicious Packages
Microsoft researchers disclosed that two npm packages distribute a remote access trojan (RAT) designed to harvest sensitive data from infected systems. The packages compromise developer machines by deploying code that intercepts wallet credentials, captures screenshots, and logs keystrokes. Data exfiltration routes through Hugging Face, a machine-learning model repository, to mask command-and-control traffic as legitimate service requests.
Attack Surface and Vector
The trojan operates as a supply-chain attack, reaching developers who install the compromised packages as dependencies or development tools. Once installed, the malware runs with the privileges of the npm process, granting it broad access to the developer's file system and input devices. The use of Hugging Face as an exfiltration conduit allows attackers to blend malicious traffic within legitimate platform traffic, complicating detection by network monitoring tools.
Implications for Wallet Security
Developers who store unencrypted wallet seed phrases, private keys, or exchange API credentials on their machines face direct exposure. The trojan's keystroke-logging capability creates a secondary attack surface: attackers can capture passwords entered during wallet unlocking or fund transfers. Microsoft did not disclose which specific wallet software or exchanges were targeted, only that the packages broadly harvest credentials from infected systems.
Why It Matters
For Traders
Developers running trading bots or staking operations on infected machines could face unauthorized fund transfers; audit your npm dependencies and dev machine access immediately.
For Investors
Supply-chain attacks on developer tooling increase operational friction and insurance costs for infrastructure projects; they also reduce confidence in open-source dependency models.
For Builders
Protocol teams and wallet developers should audit their own npm dependencies and consider hardening local key management to resist keystroke loggers and screenshot tools.






