3 ms·
I mean, the alternative is reviewing 3000 packages by hand. No thanks. I’ll trust Snyk to let me know if anything is compromised.
by Aeolun 5y ago
I mean, the alternative is reviewing 3000 packages by hand. No thanks. I’ll trust Snyk to let me know if anything is compromised.
- junon 5y agoSnyk is okay but I've had my issues with them. Never put all of your eggs in one basket.
- ranguna 5y agoCould you elaborate on those issues ?
- gnu8 5y agoI suspect a huge fraction of those packages need to be rolled up into a standard library for which some foundation can take money and do proper release engineering.
- qudat 5y agoBut then aren’t you still trusting a third-party to properly audit their own code and ensure it doesn’t get compromised? Where’s the line?
- totony 5y agoIt's easier to trust 1 org than 1000 different developers.
- Zababa 5y agoYou have to trust someone at some point. I think that was part of the point of the "Reflections on Trusting Trust" lecture.
- gnu8 5y agoI don't know where the line is, but I know users of eg Debian don't find trojans and cryptominers appearing on their systems after routine updates. They have thousands of obscure packages, but they don't let just anyone upload something.
- GordonS 5y agoWhen these compromised npm packages happen, the blast radius would be a fraction of what it is today if the JavaScript standard library wasn't so anaemic.
- c7DJTLrn 5y agoScanners are overrated. They only do basic heuristics like checksumming and pattern matching. It's like antivirus for your code and we all know how useless that is.
- notatoad 5y agomost importantly, they check version numbers against known compromised versions like this, just in case you aren't on HN to see it.
- lhorie 5y agoWhen you've got thousands of packages, I'll take a scanner over nothing. For a big ass monorepo like the one I maintain at work, it's a great tool. Snyk does report on vulnerabilities that don't necessarily affect your usage of a package, but IMHO, that's erring on the safe side and I'm ok with that.