Skip to main content
Mallory
← Back to News
package-repository-poisoningcredential-stealer-activityloader-delivery-mechanismpayload-delivery-evasion

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

Malicious npm Package “ansi-universal-ui” Delivers G_Wagon Infostealer Targeting Developer Secrets

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.

Does this reach your builds?Trace attribution and downstream blast radius.
Trace the chain
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

5 events · Jan 21, 2026 – Jan 28, 2026
  1. Jan 28, 202610mo ago

    Snyk classifies G_Wagon package as critical

    Snyk published its assessment of the malicious package, rating the issue critical with a CVSS 4.0 score of 9.3 and classifying it under CWE-506. It warned that all versions of "ansi-universal-ui" were affected and should be avoided.

  2. Jan 27, 202610mo ago

    Defenders publish remediation guidance for affected developers

    Following disclosure, researchers and vendors advised developers to remove the malicious package, delete related dependencies, check for the ~/.gwagon_status marker file, and rotate or revoke exposed credentials such as browser passwords, cloud keys, SSH keys, and tokens. Guidance also recommended reviewing systems and logs for signs of Appwrite-related exfiltration traffic.

  3. Jan 23, 202610mo ago

    Technical analysis reveals credential theft and browser injection

    Analysis of G_Wagon showed it downloaded its own Python runtime, executed payloads in memory, and used an embedded Windows DLL injected into browser processes via native APIs. The malware was found stealing browser credentials, crypto wallet data, cloud and infrastructure secrets, and communication-platform tokens, then exfiltrating them to attacker-controlled Appwrite storage.

  4. Jan 23, 202610mo ago

    Researchers identify G_Wagon in fake npm UI library

    On January 23, 2026, researchers identified "ansi-universal-ui" as a malicious npm package delivering the multi-stage G_Wagon infostealer. The package used a postinstall hook to fetch and run obfuscated payloads while posing as a lightweight UI component library.

  5. Jan 21, 202610mo ago

    Attacker begins publishing malicious npm package versions

    The npm package "ansi-universal-ui" began a rapid series of malicious releases, evolving from initial scaffolding into a more capable infostealer delivery chain. Reporting indicates 10 versions were published over roughly two days, starting on January 21, 2026.

Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, breaches, and observables Mallory has linked to this story. Indicator values are masked here and available in full in the app.

Open in app →

Malware

1 linked

Affected products

1 linked
Npm

Organizations

1 linked
npm, Inc.

Observables

4 linked

Indicator values are masked on this page. See the values in Mallory Domains, IPs, hashes, and URLs are exportable to your SIEM.

Do you run this?See attribution and downstream blast radius, and whether this package or vendor reaches your builds.
Trace the Supply Chain
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.