Replies: 3 comments
This comment has been hidden.
This comment has been hidden.
|
Couple of questions about the topic:
|
0 replies
|
Publish-time scanning is a good step toward making npm safer. The main concern will be how automation handles the delay, so clear status signals and reliable retry guidance would help. The disclosure process for legitimate security tools also sounds like a practical approach. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi all 👋
We recently rolled out two supply-chain security changes on npm, and we'd like your feedback on how they're working in practice. This thread is for discussion — questions, friction, edge cases, and suggestions are all welcome.
Full details are in the changelog: https://gh.io/npm-publish-time-scanning
What changed, in short
1. Packages are scanned at publish time
Newly published packages are now scanned before they become available to install. Most publishes see a short delay (typically a few minutes) between publishing and availability.
npm dist-tagkeeps working during this window; commands that depend on the published version (likenpm deprecateandnpm unpublish) wait until the package is available.If your automation assumes a package is installable the instant it's published, it may need to poll/retry for availability rather than assume a fixed delay.
2. Disclosure for dual-use content
Some legitimate packages (security research tools, pen-testing utilities, obfuscation tools, etc.) have capabilities that can look like malware to automated scanning. Maintainers of these packages can now declare them with a
contentPolicyfield inpackage.jsonand aDISCLOSUREfile describing the intended use. This helps us distinguish legitimate security tooling from malicious packages without manually reviewing every publish.We'd love your input
We're reading this thread and will use it to improve the rollout. Thanks for helping us make the ecosystem safer 🙏
All reactions