Home / Companies / Socket / Blog / Post Details
Content Deep Dive

The Changelog Podcast: Practical Steps to Stay Safe on npm

Blog post from Socket

Post Details
Company
Date Published
Author
Sarah Gooding
Word Count
429
Language
English
Hacker News Points
-
Summary

Following a significant surge in supply chain attacks on npm, Feross Aboukhadijeh, founder and CEO of Socket, discussed strategies for developers to protect themselves on The Changelog podcast. Although high-profile compromises have decreased, malicious npm packages are still being discovered regularly, as shown by recent research that identified ten typosquatted packages using fake CAPTCHAs for credential theft. Feross emphasized the delicate balance between upgrading packages quickly for security and delaying updates to avoid fresh supply chain attacks. He recommended several protective measures, such as using lock files to pin dependency versions, delaying adoption of new package versions, carefully reviewing GitHub Actions for vulnerabilities, enabling two-factor authentication for npm maintainers, and using tools like the Socket Firewall to automatically block known threats. By implementing these practices, developers can enhance security and ensure safer workflows in their projects.