logoalt Hacker News

smrqtoday at 8:24 PM0 repliesview on HN

Explain the attack that gets mitigated by reading the diff of a lockfile?

Every major npm attack I can think of essentially follows the pattern of "version X.Y.Z is secretly evil". How does seeing [email protected] in your lockfile alert you to that?