New npm Supply Chain Attack Began with the Keyv Library Compromised Hundreds of Popular Packages
Attackers compromised the Keyv library maintainer account to push malicious releases across many npm packages, enabling credential theft during automatic installations.
Overview
Attackers compromised the maintainerThe developer or small team responsible for reviewing changes and publishing releases for an open-source project account for the Keyv library, a widely used keyThe secret value that locks or opens a message-value storage tool, and used that access to push malicious releases. These altered packages looked like ordinary updates and were distributed through the normal npm installation process. Because npm packagesA reusable web code library published to the public npm registry for developers to install are routinely installed automatically during development, the malicious code reached laptops, serversA computer or program on a network that stores data and responds to requests from client devices, and automated pipelinesThe automated pipeline that tests, builds, and deploys software whenever developers push new code without employees visiting suspicious websites. The malwareSoftware built to steal data, spy on users, lock files, or take control of a computer is designed to steal access tokensA short-lived digital pass that a server gives a logged-in user or app and use them to publish altered releases from other maintainers, creating a chain reaction across the registryA central database of system settings on a computer or a public catalog that hosts software packages. Microsoft and Socket identified the activity as an active Mini Shai-Hulud campaign that spreads through software publishing relationships. Socket reported 2,234 affected package artifacts across 444 unique packages while the activity was still spreading.
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.
- key
- The secret value that locks or opens a message. Many breach and ransomware stories come down to who holds the cryptographic key, since strong encryption protects data only as long as the key stays secret. From the CYBR 101 room CYBR 101: Ciphers and encryption (part 1)
- 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
- servers
- A computer or program on a network that stores data and responds to requests from client devices. Online stores, email systems, and multiplayer games all run on servers in data centers or the cloud, making unpatched servers a primary target for intruders.
- pipelines
- The automated pipeline that tests, builds, and deploys software whenever developers push new code. Attackers love to compromise a company's CI/CD pipeline because that build server holds cloud keys and can inject malicious code directly into official software releases. Security+ objective 4.7 lists the term
- malware
- 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
- access tokens
- A short-lived digital pass that a server gives a logged-in user or app. After you sign in once, your browser or app presents a token on each request, and if malware steals that token the attacker can act as you without knowing your password. Security+ objective 4.6 lists the term
- registry
- A central database of system settings on a computer or a public catalog that hosts software packages. In security news, the registry means either the operating system settings database where malware adds startup entries or a public package registry where developers download code libraries.
- 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
- credential theft
- Stealing usernames, passwords, login tokens, or keys so an attacker can sign in as a real user. Attackers use phishing pages, keyloggers, and memory dumps for credential theft because logging in with a real employee's password triggers fewer alarms than a noisy software exploit. Security+ objective 2.4 lists the term
- dependency
- An external code library or package that a software project relies on to do part of its work. When a popular open-source dependency has a security bug or gets hijacked by an attacker, every application that imports that package inherits the risk.
- 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.
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 Cyber Security News website. Cite the article, not this page.
Read the full article on Cyber Security News (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.
- Kind of story: Research and reports
A new npm supply chain attack has turned trusted software packages into a route for credential... Found by reading the article; these words are close to its own - Security+ 2.2 Explain common threat vectors and attack surfaces.
"New npm Supply Chain Attack Began with the Keyv Library Compromised Hundreds..." Found in the headline - Security+ 2.3 Explain various types of vulnerabilities.
"New npm Supply Chain Attack Began with the Keyv Library Compromised..." Found in the headline - Security+ 2.4 Given a scenario, analyze indicators of malicious activity.
"......trusted software packages into a route for credential theft. The campaign began after attackers compromised..." Found in the opening sentences - Security+ 4.6 Given a scenario, implement and maintain identity and access management.
"......trusted software packages into a route for credential theft. The campaign began after attackers compromised..." Found in the opening sentences - Security+ 5.3 Explain the processes associated with third-party risk assessment and management.
"New npm Supply Chain Attack Began with the Keyv Library Compromised..." Found in the headline - Job skill (from the U.S. Department of Defense list of cybersecurity jobs): Analyze identified malicious activity to determine weaknesses exploited, exploitation methods, effects on system and information.
"A poisoned dependency can therefore reach laptops, servers, and automated pipelines..." Found by reading the article; these exact words are in it
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
- ChainDrop Worm Hits 400+ npm Packages with Two Billion Monthly Installs
- ChainDrop credential stealing worm infects over 400 npm packages
- Massive supply-chain attack compromises 440 packages under four hours
- Massive ChainDrop npm supply-chain attack infects hundreds of packages
- Keyv and friends compromised in active Shai-Hulud supply chain attack