logoalt Hacker News

blueblazin • today at 8:37 AM • 2 replies • view on HN

How is this even possible? The change is small and literally has an ethereum URL in the code changes. How did it go through?


Replies

ozyschmozy • today at 8:53 AM

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.

rfgplk • today at 8:40 AM

LGTM