GitHub launches npm package firewall in public preview

GitHub has introduced a package firewall, now in public preview for all GitHub Enterprise Cloud customers, that blocks suspicious npm packages at install time. The firewall sits between endpoints or internal registries and upstream package repositories, inspecting both metadata requests and package downloads for signs of malicious activity.
Administrators configure policy controls, including a cooldown period that prevents versions newer than a set minimum age from being installed. The value ranges from 1 to 365 days, defaults to 1 day, and can be disabled by setting it to 0. Packages blocked in error can be flagged through an exception request that enterprise administrators and security managers approve.
The move follows similar waiting periods adopted across open-source ecosystems including npm, Python, Visual Studio Code, Ruby, Bun, pnpm and Yarn. Rust 1.100, due on 12 November 2026, will add a configurable minimum publish age via the global-min-publish-age option, defaulting to seven days. Socket noted that cooldowns buy researchers and maintainers time, though malicious code does not become harmless with age.