The Hacker News
Il y a 6 jours
GitHub Launches npm Firewall to Block Malicious Packages Before Installation
Par [email protected] (The Hacker News)

GitHub has announced that it's introducing a new package firewall as a preview to block installation of suspicious npm packages during installation time. "The firewall inspects both metadata requests and package downloads for signs of malicious activity, acting as an install-time policy gate," GitHub said. The feature, which currently supports only npm packages, is available in public preview
GitHub Launches npm Firewall to Block Malicious Packages Before Installation
Ravie LakshmananOct 29, 2026DevSecOps / Vulnerability
GitHub has announced that it's introducing a new package firewall as a preview to block installation of suspicious npm packages during installation time.
"The firewall inspects both metadata requests and package downloads for signs of malicious activity, acting as an install-time policy gate," GitHub said.
The feature, which currently supports only npm packages, is available in public preview for all GitHub Enterprise Cloud customers, including data-resident GitHub Enterprise Cloud.
According to the Microsoft subsidiary, the firewall is placed between endpoints or internal registries and the upstream package repositories so as to deter malware attacks that compromise systems when packages are installed.
This behavior can expose users to severe security risks, especially when artificial intelligence (AI) agents and CI runners automatically install dependencies to complete a task or build without their explicit permission.
The idea is that endpoints like coding agents and CI/CD hosts use the firewall for their requests instead of directly pointing to the public package registries. The firewall then checks package downloads against policy controls such as minimum package age and malware advisories, and blocks downloads that do not meet those policies.
To use the firewall, administrators are required to configure policy controls, such as the ones listed below -
Block known malware by checking against the GitHub Advisory Database for active malware advisories
Block packages based on the severity of vulnerabilities by checking the GitHub Advisory Database for flaws that affect the requested package version. The control defaults to "Critical only" as the severity level that blocks an installation, although users can choose "High or higher," "Medium or higher," or "Any severity."
Block attestation downgrades by comparing attestations for the requested package version with those of earlier versions and stop the download if the requested version does not have an SLSA attestation.
Block newly-introduced install scripts by checking whether the package recently added scripts that run using preinstall or postinstall hooks, which can be abused to steal sensitive data.
Block packages based on a cooldown period that prevents versions that are newer than the configured minimum age from being installed. The value can range from 1 to 365 days. The default value is 1 day. Users can disable it by setting it to 0.
Users who need access to a package that gets blocked erroneously by the firewall can submit an exception request, which can then be approved by enterprise administrators and security managers.
The development comes as Rust 1.100, which is scheduled for release on November 12, 2026, readies to add support for a configurable minimum publish age, allowing security scanners and maintainers time to flag and block malicious crate releases before they can be installed or used by users.
The value, defined via the "global-min-publish-age" option in "cargo/config.toml," allows users to specify a minimum publication age in days or weeks. If left unspecified, a seven-day waiting period is applied by default to skip releases published within that window.
Over the past year, similar waiting periods have been implemented across open-source ecosystems, including npm, Python, Microsoft Visual Studio Code, Ruby, Bun, pnpm, and Yarn, as a way to bolster software supply chain security by reducing the chance that a newly published, unreviewed version is immediately pulled into a build.
Cooldown periods help add friction and slow down attacks in which a bad actor publishes a poisoned version of a popular package after seizing control of a maintainer account, thereby preventing rapid spread through manual or automated installations.
"The tradeoff is that legitimate fixes have to wait, too, unless developers make an exception," Socket said. "Malicious code also doesn't magically become harmless with age. A release that escapes detection can simply outlast the cooldown. The value is in buying researchers, maintainers, and registries time to act before the next dependency update carries an attack further."
Found this article interesting? Follow us on Google News, Twitter and LinkedIn to read more exclusive content we post.
Cloud security, DevSecOps, Malware, Supply Chain, Vulnerability
PHP2Shell: Two Unpatched Critical PHP RCE Flaws (CVSS 9.2) Trigger Emergency Security Alert
Critical FortiSIEM Flaw Gets Public Exploit PoC for Unauthenticated Remote Code Execution
OpenCode Console Breach May Have Exposed OpenAI, Anthropic, and Google API Keys
ThreatsDay: AI Secrets Leak, PingCAP Source Theft, Signal Hang-Up Flaw, Laravel Auth Bypass + 21 More
Eight eMudhra CA Keys Compromised, Triggering Emergency Fixes Across Browsers and Software
Go Issues Emergency Update Blocking Eight CA Keys Over Undisclosed Security Concerns
Researchers Demonstrate Node2Shell RCE Exploit on Node.js Build Using Crafted Brotli Data
Attackers Hijacked Over 300 Tor Exit Relays to Intercept SSH Connections
Critical GitLab Flaw (CVSS 10.0) Could Allow Unauthenticated RCE Across 12 Years of Releases
Ruby Fixes Three Regex Engine Bugs Responsible for Four Critical GitLab RCE Flaws
Two CVSS 9.0 Linux KSMBD RCE Flaws Disclosed on Public Mailing Lists Before Kernel Fixes
WhatsApp Hid Instructions in Help Pages Telling Its AI Chatbot Not to Recommend Privacy Regulators
Brotli Decoder Flaw Behind Node.js RCE Also Affects Bun, Python and Other Widely Used Software
Hackers Use Autonomous AI Agents to Breach Company Websites, Target Over 1,200 Sites
Hackers Exploit Plex2Shell Flaws to Install Crypto Miners and Linux Proxy Backdoor
State Bank of India Confirms Data Leak After 3,897 Customer Records Found on Dark Web
Unpatched Broadcom Wi-Fi Flaw Lets Attackers in Range Run Code as Root on Routers
PHP Warns of Another Unpatched RCE Risk Two Days After Emergency PHP2Shell Patches
Hackers Hijack Five OVHcloud CLI Releases to Distribute Secret-Stealing Malware
⚡ Weekly Recap: 98 Zero-Days, Rogue AI Agents, $100M Crypto Theft, 700 Supermarkets Hit and More
New QPACK Flaws Can Crash HTTP/3 Servers, Trigger Up to 4,000-Fold Memory Amplification
Critical Flaw in Python’s Popular Pillow Image Library Allows Code Execution via a Crafted Image
Generative AI Is Erasing Behavioral Tells, Weakening Behavior-Only Detection, Proofpoint Reports
PHP Issues Emergency Patches for Two Critical PHP2Shell RCE Flaws as Exploit Attempts Emerge
No Exploit Yet? Preview the Summit Demo on Validating CVE Exposure
Download the 2026 Agent Security Report for a Five-Step Risk Reduction Framework
Benchmark Your AI Risk Priorities Against 1,600 CISOs—Download the 2026 Report
Get the Five-Stage Identity Maturity Roadmap for Governing AI Agents
Your SOC Has an Identity Blind Spot. Here's How to Fix It
Learn how to close critical identity visibility gaps in your SOC, detect hidden threats, and accelerate incident response across human, machine, and AI identities.
Join the Experts Roadmap for AI-Ready Security Operations
Evaluate Attack Surface Visibility With an AI Threat Readiness Framework
Learn how to assess AI threat readiness, strengthen attack surface visibility, and prepare security operations for emerging threats in this practical webinar.
FBI Cyber Division's Brett Leatherman Keynotes SANS CDI 2026, Dec 15
Join SANS CEO James Lyne and the FBI on ransomware disruption and intel sharing, during SANS training in D.C.
11 Real Stories: How Identity Exposure Unlocks Active Attack Paths
Map cross-domain privilege escalation to sever breach routes at key choke points.
ROI Calculator: See the Value of IAM Automation
Calculate your savings on audits, app onboarding, and discovery. Try it now.
Governance Sets the Ceiling on Your AI Security Program
See the five moves that raise a Stage 2 Govern score to a defensible Stage 3.
Why Root and Jailbreak Detection Alone Cannot Guarantee Mobile App Security
Your Backup Isn't Ransomware-Proof Just Because It Exists
The Least Trusted Author Sets the AI Agent's Privilege
Security Rests on Hard Math Problems. Quantum and AI Are Both Coming for Them
Publié le 29 octobre 2026
Source originale : The Hacker News
