Home / Technology / Tiny Code Package, Huge Hack: Millions Downloaded Software Compromised
Tiny Code Package, Huge Hack: Millions Downloaded Software Compromised
31 Mar
Summary
- Hacker seized control of a popular npm package downloaded over 100 million times weekly.
- Malicious code was hidden within a dependency, making it harder to detect.
- The attack, though short-lived, potentially impacted numerous developers globally.

A significant cybersecurity threat emerged when a hacker compromised the popular npm package Axios, a crucial component downloaded over 100 million times weekly by developers. The attacker hijacked the lead developer's account on Monday night, quietly injecting two malicious versions. These versions did not contain overt malicious code but instead relied on a secondary project, plain-crypto-js, to deploy a remote access Trojan.
The sophisticated nature of the attack involved pre-building payloads for macOS, Windows, and Linux, and ensuring the malware self-deleted after execution. While the malicious component was taken down within three hours, the incident's impact could be widespread given Axios's integration into numerous software projects. Security experts characterized it as a supply chain attack, where compromised dependencies can infect downstream applications.
Evidence suggests a link between the macOS malware and suspected North Korean hacking activities. This incident follows a similar npm attack in September, though this latest threat was more meticulously planned, with malicious dependencies staged in advance. GitHub is actively working to enhance security for npm projects following a series of such attacks.