GitHub has launched a public preview of a package firewall designed to stop suspicious open-source dependencies before they can reach software builds and developer machines. Announced on October 20, the new capability, available to GitHub Enterprise Cloud customers, also covers dependency installations initiated by AI coding agents, a significant benefit given the growing role of automated tools in software development.
Open-source dependencies are a common source of risk, especially now that they play a central role in how so many modern applications are assembled. Some risks are hidden in transitive dependencies—packages pulled in indirectly by other libraries—which developers may not know their projects rely on.
Developers routinely pull in external code through package managers such as npm, and an increasing number of these pull operations are automated, thereby further expanding the risk. In any case, malicious packages can run installation scripts that might, for example, steal credentials before an application is even built or tested. For example, Microsoft identified 14 deceptive npm packages back in May, each of which was designed to harvest cloud and CI/CD secrets.
How the package firewall protects development pipelines
GitHub’s new firewall sits between configured development environments and the public package registry. Instead of downloading dependencies directly, build runners, workstations and coding agents route package requests through the service while allowing enterprise administrators to set policies centrally. Those controls go beyond simply blocking packages already known to contain malware by allowing teams to automatically reject versions with security advisories and block packages that have lost previously supplied provenance attestations.
Meanwhile, a configurable waiting period also prevents installation of newly published versions of packages, allowing a broader window for malicious or compromised releases to be discovered. That waiting period does come with a trade-off, however. While potentially reducing exposure to fast-moving attacks, it may also delay legitimate security patches. As such, GitHub provides an exception-request process for blocked downloads, giving administrators a way to balance caution with the need to keep development pipelines moving for their environments and risk tolerances.
The launch of the package firewall is the latest in GitHub’s efforts to strengthen supply-chain controls. On October 14, it introduced workflow dependency lockfiles in public preview, allowing GitHub Actions to run pinned code revisions even if upstream tags change. These address a different problem, however: lockfiles stabilize workflow dependencies, while the package firewall evaluates software being installed from npm.
Safer dependency management for DevOps teams
For software vendors and enterprise DevOps teams, the biggest advantage lies in stopping risky dependencies before they can enter the build environment. This is especially relevant to automated development pipelines and agentic AI, where packages may be fetched without a developer reviewing them first.
That’s not to suggest the firewall offers a universal safeguard against compromised repositories, however: deployment still requires careful configuration, and teams must direct relevant npm traffic through the firewall. Any packages fetched through other routes will not receive those checks. As such, a practical starting point is to audit dependency sources before trialing the firewall on a non-critical pipeline to test how policy decisions impact build times and urgent updates.