Malicious npm Package “ansi-universal-ui” Delivers G_Wagon Infostealer Targeting Developer Secrets
Supply Chain Risk · 4 sources · Updated 5mo ago · First seen Jan 27, 2026

Security researchers reported a supply-chain attack delivered via a malicious npm package, ansi-universal-ui, masquerading as a legitimate UI component library. The package, dubbed G_Wagon by Aikido, used a multi-stage infection chain: after installation it executed an obfuscated loader, downloaded its own Python runtime to evade local restrictions, and then ran a Python-based stealer that exfiltrated sensitive data including browser credentials, cryptocurrency wallets, cloud credentials, and Discord tokens to an Appwrite storage bucket. The campaign showed rapid iteration, with roughly 10 package versions published over two days, progressing from basic scaffolding to adding C2 configuration and a “full Python payload with browser injection.”
Technical analysis indicated the payload included a large base64 blob that decoded to an XOR-encrypted Windows DLL, which was injected into browser processes using Windows native APIs (e.g., NtAllocateVirtualMemory). Separately, reporting highlighted that npm and Yarn package-manager behaviors can leave “unplugged holes” that attackers may exploit to bypass certain defenses aimed at malicious dependency activity (referencing “Shai-Hulud”), reinforcing the broader risk that package-manager edge cases and ecosystem trust can be leveraged for supply-chain compromise. A paywalled report about a Firefox WebRTC RCE with public exploit code appears unrelated to the npm malware activity and does not materially contribute details to this incident.