Massive supply-chain attack compromises 440 packages under four hours
A hacker compromised a maintainer account and used self-replicating malware to inject malicious code into over 440 packages in under four hours.
Overview
An attacker compromised a GitHub maintainerThe developer or small team responsible for reviewing changes and publishing releases for an open-source project account and released a self-replicating malware that injected malicious codeSoftware built to steal data, spy on users, lock files, or take control of a computer into more than 440 distinct npm packagesA reusable web code library published to the public npm registry for developers to install in under four hours. The attack began with keyv, a data management interface software package with more than 600 million monthly downloads, and quickly spread to other packages controlled by the same maintainer. The malware eventually compromised more than 860 packages with a combined total of over 2 billion monthly installs. Some of the compromised packages are present in more than 46% of all cloud environments. The malware steals sensitive data including npm, GitHub, AWS and continuous integration credentialsThe login details, such as a username and password or key, that prove who an account belongs to, as well as AI-related configuration filesA text file that stores settings, network addresses, and options for how a program or server runs and cryptocurrency walletsA software app or hardware device that stores the private keys needed to spend cryptocurrency. Researchers from multiple firms observed the same payloadThe part of an attack or malware file that carries out the harmful action on the target and pattern across all affected packages, indicating a single attacker was behind the supply-chain attackBreaking into a software maker or vendor so their trusted product or update infects their customers.
Terms in this story
- maintainer
- The developer or small team responsible for reviewing changes and publishing releases for an open-source project. Supply chain attackers often target a volunteer maintainer with phishing emails or offers to help, hoping to gain publishing rights over a popular code library.
- malicious code
- Software built to steal data, spy on users, lock files, or take control of a computer. News reports use malware as the umbrella term for viruses, ransomware, spyware, and trojans that criminals install on phones, laptops, or servers without permission. Security+ objective 2.4 lists the term
- npm packages
- A reusable web code library published to the public npm registry for developers to install. Web developers pull in dozens of npm packages when building a site, and attackers frequently publish malicious packages with lookalike names to steal developer credentials during installation. Security+ objective 2.2 lists the term
- credentials
- The login details, such as a username and password or key, that prove who an account belongs to. Many breaches begin when attackers steal an employee's login credentials through a fake website and sign in to the company network as if they belonged there. Security+ objective 4.6 lists the term
- configuration files
- A text file that stores settings, network addresses, and options for how a program or server runs. Attackers who gain read access to a server look for its configuration file first because it often contains database passwords, API keys, and internal server paths.
- cryptocurrency wallets
- A software app or hardware device that stores the private keys needed to spend cryptocurrency. If an infostealer copies the secret seed phrase or key file from a victim's cryptocurrency wallet, the attacker can drain the funds irreversibly in seconds.
- payload
- The part of an attack or malware file that carries out the harmful action on the target. A phishing email and an exploit are only the delivery steps, while the payload is the ransomware or spyware that actually runs once the computer is compromised.
- supply-chain attack
- Breaking into a software maker or vendor so their trusted product or update infects their customers. Instead of attacking a hundred companies one by one, an intruder compromises a single software library or update server that all of those companies already trust. Security+ objective 2.2 lists the term
- open-source
- Software whose source code is publicly available for anyone to inspect, use, modify, and share. Most websites and apps rely on hundreds of open-source code libraries, so a single security flaw or malicious update in a popular library can affect thousands of companies at once.
- repository
- A central storage place where a software project's source code, change history, and configuration files are kept. Software teams collaborate by pushing code to a shared repository, and attackers scan public repositories for accidentally committed API keys or try to poison popular projects.
- root
- The highest administrator permission level on a system, with unrestricted control over all files and programs. An attacker who gains root privileges on a server can read any user's data, alter system settings, install kernel drivers, and hide their activity from ordinary accounts.
- indicators of compromise
- Forensic clues, such as malicious file hashes, domain names, or IP addresses, that show an intrusion happened. At the end of a breach report, researchers publish indicators of compromise so other defenders can search their own logs for those exact domains and file fingerprints.
This page is a short description made for this site. The article itself, with its author's name and its own link, is on the CyberScoop website. Cite the article, not this page.
Read the full article on CyberScoop (opens in a new tab)
Course connections
Each line below connects this story to a Security+ objective (a skill on CompTIA's Security+ exam, a common first cybersecurity certification), a CYBR 101 week, or a cybersecurity job, and quotes the words that made the connection.
- Security+ 2.2 Explain common threat vectors and attack surfaces.
"Massive supply-chain attack compromises 440 packages under four hours..." Found in the headline - Security+ 2.3 Explain various types of vulnerabilities.
"Massive supply-chain attack compromises 440 packages under four hours..." Found in the headline - Security+ 2.4 Given a scenario, analyze indicators of malicious activity.
"......observed a variant of Mini Shai-Hulud, self-replicating malware linked to TeamPCP, in all the affected..." Found in the opening sentences - Security+ 5.3 Explain the processes associated with third-party risk assessment and management.
"Massive supply-chain attack compromises 440 packages under four hours..." Found in the headline - CYBR 101 week 9: malware, indicators and how detection works
"......observed a variant of Mini Shai-Hulud, self-replicating malware linked to TeamPCP, in all the affected..." Found in the opening sentences
How a story is connected to the course, and every objective, week and job role
Same story at other outlets
- ChainDrop npm Worm Poisons 444 Packages Through GitHub Actions and Trusted Publishing
- Tracking Shai-Hulud: Inside the ChainDrop NPM Worm
- ChainDrop Worm Infects 400+ npm Packages to Steal GitHub and Cloud Credentials
- Shai-Hulud CHAINDROP Worm Backdoors 400+ npm Packages With 1.3 Billion Monthly Downloads
- New npm Supply Chain Attack Began with the Keyv Library Compromised Hundreds of Popular Packages
- ChainDrop Worm Hits 400+ npm Packages with Two Billion Monthly Installs
- ChainDrop credential stealing worm infects over 400 npm packages
- Massive ChainDrop npm supply-chain attack infects hundreds of packages
- Keyv and friends compromised in active Shai-Hulud supply chain attack