software engineering3 min read

npm publish-time malware scanning and dual-use metadata

2 similar posts
  • npm

AI Summary

GitHub introduces automatic malware scanning for npm packages at publish time, introducing a short delay before packages become available for installation. The update also adds new metadata requirements, including a contentPolicy field and a DISCLOSURE file, for legitimate dual-use packages that possess security-relevant capabilities resembling malware.

Key Takeaways

  • New publishes experience a typical delay of around five minutes for scanning.
  • Dual-use packages require a contentPolicy in package.json and a DISCLOSURE file.
  • Dual-use publishing requires enforced two-factor authentication.

Why it matters

Supply-chain security is critical for modern software development. Automatic publish-time scanning helps protect the ecosystem from malicious packages, while the dual-use metadata framework allows maintainers of legitimate security tools to declare their functionality without being blocked.

Conversation0

What would you add from your experience?

Checking your session…

Every good conversation starts with one perspective.