GitHub Tightens npm Publishing After Flaw Left 1,500+ Packages Vulnerable to Hijacking
GitHub now expires unvalidated npm publishing configurations after 48 hours to stop attackers from hijacking packages without stealing credentials.
Overview
GitHub changed its rules for npm trusted publishingA package registry feature that lets automated build pipelines publish releases without storing long-lived passwords after researchers found a flaw that allowed attackers to hijack over 1,500 packages without stealing user credentialsThe login details, such as a username and password or key, that prove who an account belongs to. The vulnerability let an attacker push new versions of a package by exploiting a configuration that had not yet been validated. GitHub now requires new publishing configurationsA text file that stores settings, network addresses, and options for how a program or server runs to complete their first successful publish within 48 hours to become active. This change prevents attackers from taking over packages that change ownership or from using specific event triggers to bypass security checks. The fix addresses a loophole that could have triggered a cascading supply chain attackBreaking into a software maker or vendor so their trusted product or update infects their customers where one compromised package spreads malicious codeSoftware built to steal data, spy on users, lock files, or take control of a computer to many users. Developers who use GitHub Actions to publish npm packagesA reusable web code library published to the public npm registry for developers to install must now ensure their first publish happens within two days to avoid having their configuration expire.
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.
- 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
- 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.
- 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
- 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
- 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.
- 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
- 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
- pull_request
- A proposed set of code changes submitted to a software repository for maintainers to review and merge. In open-source security news, attackers sometimes submit a normal-looking pull request that hides a backdoor or exploits the project's automated test pipeline.
- maintainer's
- 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.
- endpoint
- Any user device or server, such as a laptop, phone, or workstation, connected to a network. Security teams install monitoring tools on every company endpoint because a single employee laptop infected at home can carry malware onto the corporate network.
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 The Hacker News website. Cite the article, not this page.
Read the full article on The Hacker 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: Vulnerability and patch
"GitHub Tightens npm Publishing After Flaw Left 1,500+ Packages Vulnerable to Hijacking..." Found by reading the article; these exact words are in it - Who is affected: "1,500+ Packages Vulnerable to Hijacking..."
Copied word for word from the article - Security+ 2.3 Explain various types of vulnerabilities.
"GitHub Tightens npm Publishing After Flaw Left 1,500+ Packages Vulnerable to Hijacking..." Found in the headline - Security+ 4.6 Given a scenario, implement and maintain identity and access management.
"......user's package without having to steal their credentials. "Your configuration becomes validated and exempt..." Found in the opening sentences - Job skill (from the U.S. Department of Defense list of cybersecurity jobs): Patch network vulnerabilities to ensure information is safeguarded against outside parties.
"GitHub has taken the step of expiring unvalidated npm trusted publishing configurations..." 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