The scariest supply-chain attacks of the last couple of years share one trick. They don't need you to run the package. They just need you to install it. A postinstall script fires, grabs the tokens on your CI machine, and by the time your tests start the secrets are gone.
GitHub says this is the problem its new package firewall is meant to tackle. The company put the feature into public preview on October 20, and if you run CI on GitHub Enterprise Cloud, it deserves an hour of your attention this week. I'll explain how it works, who can use it and how I would roll it out without breaking everyone's builds.
What GitHub is building
In the changelog, GitHub describes an increasing number of malware attacks that exploit systems at package installation time, harvesting credentials on CI/CD hosts or developer workstations without even running the package's code. The package firewall is the response. It sits between endpoints, such as Actions runners or coding agents, and the upstream package repositories. It inspects both metadata requests and package downloads for signs of malicious activity.
That placement is the clever part. Most defenses live after the fact: a scanner that alerts you once a bad version is already in your lockfile. A firewall sits on the road. If your runner asks for a package list or tries to download a tarball, the request passes through policy first. A blocked package never reaches the machine that holds your secrets.
The mention of coding agents matters too. More and more teams let AI agents run install commands on their behalf, often with broad credentials. An agent doesn't pause to read a changelog before it runs npm install. Putting a policy layer in front of that is sensible.
The policy controls available today
Administrators set policy for their enterprise. GitHub lists the controls available now:
- A configurable cooldown period. New versions can be held back for a set time before your builds can use them. The logic is that bad releases are often noticed and pulled soon after publication, so a short cooldown turns "published an hour ago" into a warning sign instead of a default.
- Advisory Database checks. The firewall checks the GitHub Advisory Database for malware or vulnerability alerts.
- Supply-chain checks like attestation downgrades. If a package that used to ship with provenance attestations suddenly doesn't, that is a red flag. It can mean the release did not come from the usual publishing pipeline.
GitHub doesn't say what the default cooldown is, so I won't invent a number. It does say the list will grow based on customer demand.
Then you configure the endpoints. Runners and agents must be set up to use the firewall for their requests instead of pointing straight at the upstream registries. Metadata requests for package lists and the downloads then flow through it. GitHub's documentation, called "Protecting endpoints with package firewall", has the setup steps.
If a package is blocked by mistake, users can request an exception through a workflow similar to other GitHub Advanced Security features. That is important. A firewall with no escape hatch gets turned off within a week.
The limits you need to know
Before you get excited, here are the limits GitHub states plainly.
| Limit | Detail |
|---|---|
| Availability | Public preview for all GitHub Enterprise Cloud customers, including Enterprise Cloud with data residency |
| Ecosystems | npm packages only |
| Price | Free during preview; metered usage, similar to Actions billing, at general availability |
| Maturity | Preview while GitHub scales up infrastructure and adds features |
So if you're on GitHub Team or Free, this isn't for you yet. If your biggest exposure is PyPI, Maven or Go modules, it doesn't help today. And the pricing note matters for planning. A feature billed like Actions minutes can surprise you if every build goes through it. Preview is the time to measure how much traffic your pipelines generate.
How it fits with GitHub's other supply-chain changes
This didn't arrive alone. Looking at the changelog's related posts, GitHub has been busy in October.
- On October 20, Dependabot began supporting npm 12, pnpm 11 and 12, and Bun 1.4, and the Dependabot alerts REST API now includes dependency versions.
- On October 16, open source license compliance became generally available. I covered what it does in GitHub's Open Source License Compliance Is GA, and It Can Block Your Merges.
- On October 2, npm staged publishing began supporting new packages, and unvalidated npm trusted publishing configurations started to expire.
Add the workflow lockfiles I wrote about in GitHub Actions Lockfiles Are Here, and a picture appears. GitHub wants to protect three places: how actions are pinned, how packages are published, and how packages are installed. The package firewall is the install side of the story.
How I'd roll it out
I would not flip this on for every repository at once. Here's the order I'd follow.
- Pick one low-risk repository. Choose a service with a fast pipeline and a team that will tell you when something breaks.
- Read the docs first. GitHub's "Protecting endpoints with package firewall" guide has the exact configuration. Follow it, not a blog post's guess, including this one.
- Start with the Advisory Database check. It's the least controversial rule. Nobody argues when a known-malware package is blocked.
- Add a cooldown. Choose a short window at first. A cooldown has a cost: when a real security patch is published, your builds will wait, so make sure someone can request an exception fast.
- Watch for blocked builds for a week. Track how often the exception workflow is used. If it's daily, your policy is too strict. If it never fires, check that traffic is actually flowing through the firewall.
- Extend to coding agents. Point agent environments at the firewall as well. This is where I think the value is highest, since agents install things quickly.
- Roll out by risk. Move on to repositories that hold deployment credentials or publish artifacts.
Keep your lockfile discipline too. A firewall doesn't replace pinned versions, reviewed dependency updates and short-lived tokens. It is one more layer.
Who should try it, and who should wait
Try it now if you're on Enterprise Cloud, build mostly npm projects, and have felt uneasy about what your runners download. It's free during preview, and learning the traffic patterns now will help when billing begins.
Wait if you use a different ecosystem as your main one, or if your organization is on a plan without Enterprise Cloud. Watch for GitHub adding more registries. Wait too if your compliance team needs a general-availability service level before introducing new infrastructure to production pipelines.
The honest take: it's early, it's narrow, and the idea is right. Install-time attacks are cheap for attackers and expensive for victims, and a policy gate at the registry boundary is where defenders should have been standing already.
Frequently Asked Questions
What is the GitHub package firewall?
A service that sits between endpoints like Actions runners or coding agents and upstream package registries, checking metadata requests and downloads against policies set by your administrators.
Who can use it?
All GitHub Enterprise Cloud customers, including Enterprise Cloud with data residency, during the public preview that began October 20.
Does it support Python or Java packages?
Not yet. GitHub says it currently supports only npm packages.
How much does it cost?
It's free during the preview. At general availability, it will be charged on metered usage, similar to Actions billing.
Originally published on Mango Developer.
Top comments (0)