Ptechhub
  • News
  • Industries
    • Enterprise IT
    • AI & ML
    • Cybersecurity
    • Finance
    • Telco
  • Brand Hub
    • Lifesight
  • Blogs
No Result
View All Result
  • News
  • Industries
    • Enterprise IT
    • AI & ML
    • Cybersecurity
    • Finance
    • Telco
  • Brand Hub
    • Lifesight
  • Blogs
No Result
View All Result
PtechHub
No Result
View All Result

npm Adds 2FA-Gated Publishing and Package Install Controls Against Supply Chain Attacks

The Hacker News by The Hacker News
May 23, 2026
Home Cybersecurity
Share on FacebookShare on Twitter


Ravie LakshmananMay 23, 2026Software Supply Chain / DevSecOps

GitHub has rolled out new controls for npm to improve the security of the software supply chain, giving maintainers the ability to explicitly approve a release prior to the packages becoming publicly available for installation.

Called staged publishing, the feature is now generally available on npm. It mandates that a human maintainer pass a two-factor authentication (2FA) challenge to approve a package before it is pushed to the npmjs[.]com.

“Instead of a direct publish that immediately makes a package version available to consumers, the prebuilt tarball is uploaded to a stage queue where a maintainer must explicitly approve it before it becomes installable,” GitHub said.

The Microsoft-owned subsidiary said the change ensures “proof of presence” for every publish, including those that come from non-interactive CI/CD workflows and trusted publishing with OpenID Connect (OIDC) authentication.

Before using staged publishing, package maintainers have to meet the following criteria –

  • Have publish access to the package
  • Package already exists on the npm registry, meaning a brand new package cannot be staged
  • 2FA is enabled for the account

Developers can use the command “npm stage publish” from the root directory of the package to submit it to a staging area. To use this command, it’s essential to update to npm CLI 11.15.0 or newer. For optimal protection, GitHub is recommending that staged publishing be paired with trusted publishing using OIDC.

A second update focused on npm relates to the introduction of three new install source flags alongside the existing -allow-git flag –

  • –allow-file: Controls installs from local file paths and local tarballs
  • –allow-remote: Controls installs from remote URLs, including https tarballs
  • –allow-directory: Controls installs from local directories

The flags allow developers to “apply the same explicit-allowlist approach to every non-registry install source,” GitHub said.

The development comes amid a massive surge in software supply chain attacks targeting open-source ecosystems over the past few months, with one cybercriminal group known as TeamPCP engaging in poisoning popular packages at an unprecedented scale through a self-perpetuating cycle of compromises.



Source link

The Hacker News

The Hacker News

Next Post
HiFS 2026 : mise à niveau de quatre solutions majeures de finance numérique pour accélérer la transition des établissements financiers vers la banque agentique

HiFS 2026 : mise à niveau de quatre solutions majeures de finance numérique pour accélérer la transition des établissements financiers vers la banque agentique

Recommended.

QVC Group, Inc. Announces Third Quarter Earnings Release and Conference Call

QVC Group, Inc. Announces Third Quarter Earnings Release and Conference Call

October 3, 2025
EMURGO and Wirex Partner to Launch the First-Ever Cardano Card at the Cardano Summit 2025, Bringing ADA to Millions Worldwide

EMURGO and Wirex Partner to Launch the First-Ever Cardano Card at the Cardano Summit 2025, Bringing ADA to Millions Worldwide

November 11, 2025

Trending.

Kioxia launches 245TB LC9, the biggest flash drive on the market | Computer Weekly

Kioxia launches 245TB LC9, the biggest flash drive on the market | Computer Weekly

July 28, 2025
China’s AI Boyfriend Business Is Taking On a Life of Its Own

China’s AI Boyfriend Business Is Taking On a Life of Its Own

January 20, 2026
OpenAI Really Wants Codex to Shut Up About Goblins

OpenAI Really Wants Codex to Shut Up About Goblins

April 29, 2026
Google CEO On Gemini 4, Allocating TPUs, AI Models And Gemini Enterprise

Google CEO On Gemini 4, Allocating TPUs, AI Models And Gemini Enterprise

July 28, 2026
Gartner: How AI will transform managed network services | Computer Weekly

Gartner: How AI will transform managed network services | Computer Weekly

May 18, 2026

PTechHub

A tech news platform delivering fresh perspectives, critical insights, and in-depth reporting — beyond the buzz. We cover innovation, policy, and digital culture with clarity, independence, and a sharp editorial edge.

Follow Us

Industries

  • AI & ML
  • Cybersecurity
  • Enterprise IT
  • Finance
  • Telco

Navigation

  • About
  • Advertise
  • Privacy & Policy
  • Contact

Subscribe to Our Newsletter

  • About
  • Advertise
  • Privacy & Policy
  • Contact

Copyright © 2025 | Powered By Porpholio

No Result
View All Result
  • News
  • Industries
    • Enterprise IT
    • AI & ML
    • Cybersecurity
    • Finance
    • Telco
  • Brand Hub
    • Lifesight
  • Blogs

Copyright © 2025 | Powered By Porpholio