GitHub Launches npm Firewall to Block Malicious Packages Before Installation
GitHub is previewing a firewall that blocks suspicious npm packages by inspecting metadata and downloads during installation.
Overview
GitHub has introduced a new package firewallA network barrier in software or hardware that allows or blocks traffic based on security rules that blocks suspicious npm packagesA reusable web code library published to the public npm registry for developers to install before they are installed. This tool acts as a gate between internal systems and public repositories to stop malicious software from entering a network. The feature is currently available in public preview for all GitHub Enterprise Cloud customers. It is designed to protect systems that automatically install dependencies, such as AI agents and CI runners, which can be vulnerable to attacks. The firewall checks packages against specific policies, including malwareSoftware built to steal data, spy on users, lock files, or take control of a computer advisoriesAn official bulletin from a vendor or agency warning users about a flaw and its fix and the age of the package. Administrators can configure these controls to block known malware, vulnerable versions, or packages with new install scriptsA short program written in an interpreted language to automate tasks in a browser, shell, or application.
Terms in this story
- Firewall
- A network barrier in software or hardware that allows or blocks traffic based on security rules. Organizations place a firewall between their internal network and the internet to block unwanted connections, and attackers often look for flaws in the firewall appliance itself. Security+ objective 3.2 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
- 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
- scripts
- A short program written in an interpreted language to automate tasks in a browser, shell, or application. System administrators write scripts to automate daily maintenance, while attackers often use a script to download malware and disable security settings without dropping a compiled file.
- metadata
- Information that describes a file or message, such as when it was made, who sent it, or where. Even when the body of a message is encrypted, network metadata reveals who talked to whom and when, and document metadata in a leaked PDF can accidentally name its author. Security+ objective 4.9 lists the term
- endpoints
- 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.
- CI/CD
- 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
- Advisory
- An official bulletin from a vendor or agency warning users about a flaw and its fix. When a bug is patched, the vendor publishes a security advisory listing affected versions, the CVE code, the severity rating, and instructions for updating.
- Database
- An organized digital store of structured records, such as customer accounts, orders, or messages, queried by software. Behind almost every website and mobile app sits a database, and attackers target misconfigured or unpatched databases to copy millions of user records at once.
- attestation
- Cryptographic proof from hardware or a build server that a device or package was not tampered with. Before granting access to sensitive data, a server can require hardware attestation from a laptop or confidential cloud machine to verify that its boot code was not altered. Security+ objective 4.6 lists the term
- postinstall hooks
- A script inside a software package that runs automatically right after a developer installs the package. Supply chain attackers abuse the postinstall hook in open-source packages so that as soon as a developer downloads a library, the script steals cloud keys from their laptop.
- 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
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: Product news
"...github has announced that its introducing a new package firewall..." Found by reading the article; these exact words are in it - Security+ 2.2 Explain common threat vectors and attack surfaces.
"GitHub Launches npm Firewall to Block Malicious Packages Before Installation..." Found in the headline - Security+ 3.2 Given a scenario, apply security principles to secure enterprise infrastructure.
"GitHub Launches npm Firewall to Block Malicious Packages Before Installation..." Found in the headline - Security+ 4.5 Given a scenario, modify enterprise capabilities to enhance security.
"GitHub Launches npm Firewall to Block Malicious Packages Before Installation..." Found in the headline - Security+ 4.9 Given a scenario, use data sources to support an investigation.
"......during installation time. "The firewall inspects both metadata requests and package downloads for signs of..." Found in the opening sentences - CYBR 101 week 11: penetration testing, OSINT, MITRE ATT&CK and hacking back
"......during installation time. "The firewall inspects both metadata requests and package downloads for signs of..." Found in the opening sentences - CYBR 101 week 3: cyber hygiene, privacy, OSINT and social engineering
"......during installation time. "The firewall inspects both metadata requests and package downloads for signs of..." Found in the opening sentences - CYBR 101 week 7: Linux, Windows, permissions and firewalls
"GitHub Launches npm Firewall to Block Malicious Packages Before Installation..." Found in the headline
How a story is connected to the course, and every objective, week and job role