Cybersecurity news

Jessica Doner

Back to the list

Over 1,500 npm packages exposed by Trusted Publishing validation flaw

CSO Online,

A flaw in npm's Trusted Publishing could let attackers hijack legitimate packages by reclaiming abandoned GitHub repository names.

Vulnerabilities and patches

Overview

Researchers at Bloom Security found a weakness in npm's Trusted PublishingA package registry feature that lets automated build pipelines publish releases without storing long-lived passwords system that allowed attackers to hijack legitimate software packages. The flaw, called SlugFest, let attackers claim abandoned GitHub repositoryA central storage place where a software project's source code, change history, and configuration files are kept names to impersonate original owners. This exposed over 1,500 packages, including security scannersUsing automated tools to probe computers, networks, or code for known security flaws and missing patches and authenticationVerifying that a user, device, or program really is who it claims to be before allowing access tools, to potential supply-chain attacksBreaking into a software maker or vendor so their trusted product or update infects their customers. The issue occurred because npm verified publishers using human-readable names instead of permanent numeric identifiers. The npm team fixed the problem on October 2 by adding a 48-hour expiry for unvalidated configurationsA text file that stores settings, network addresses, and options for how a program or server runs. Millions of package downloads were potentially exposed to attackers who could publish malicious updates under trusted names.

Terms in this story

Trusted Publishing
A package registry feature that lets automated build pipelines publish releases without storing long-lived passwords. Public registries encourage maintainers to switch to trusted publishing so a stolen developer laptop does not contain permanent tokens that could push malicious updates.
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.
scanners
Using automated tools to probe computers, networks, or code for known security flaws and missing patches. Both defenders and attackers run vulnerability scanning across internet-facing servers to find out which machines are still running outdated software versions. Security+ objective 4.3 lists the term
authentication
Verifying that a user, device, or program really is who it claims to be before allowing access. When you enter a password, scan a fingerprint, or present a key, authentication checks your identity before a server decides what your account is allowed to do.
supply-chain attacks
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
configurations
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.
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
validation
Checking that data sent by a user matches the expected format and size before using it. Many injection and overflow vulnerabilities happen because a program skips input validation and trusts whatever string or file size an outside user sends. Security+ objective 4.1 lists the term
vulnerability
A flaw in software or hardware that lets an attacker do something the maker did not intend. Security advisories report a vulnerability when researchers or attackers find a coding mistake in an app or server that allows someone to break in or crash it. Security+ objective 2.3 lists the term
exploitation
A piece of code or technique that uses a software flaw to break into or crash a system. Finding a vulnerability is only the discovery of a weakness, whereas an exploit is the working code or sequence of inputs that triggers that weakness in practice. Security+ objective 2.4 lists the term
maintainers
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.
OpenID Connect
An identity layer on top of OAuth that lets websites verify who a user is. When you use a single sign-on button on a website, OpenID Connect provides a signed token telling the application your verified email address and user ID.

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 CSO Online website. Cite the article, not this page.

Read the full article on CSO Online (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.

How a story is connected to the course, and every objective, week and job role

Same story at other outlets

Related