logoalt Hacker News

ozyschmozy • today at 8:53 AM • 0 replies • view on HN

From the repo owner:

> Seems like a git push credential of some kind was compromised, not an npm or GitHub token. Still working with the GitHub team to get some better forensics on what/how. The attack consisted of malicious commits and tagged pushes to main.

So it didn't go through review, it was pushed straight to main. It also seems their publishing pipeline was already secured against this sort of thing:

> Zod's release flow was already secured against kind of attack via trusted publishing and a dedicated GitHub environment for secure deployments. Zod's release CI worked as designed and was already secure against this; NPM's malware scanning didn't prevent any malicious here.