event-stream is the case that made 'the maintainer handed the keys to a stranger' a real supply chain scenario.
In 2018 event-stream was a widely used Node.js utility package with millions of weekly downloads. Its original maintainer, having lost interest, handed publish rights to a volunteer who offered to help.
That volunteer subsequently added a new dependency, flatmap-stream, containing obfuscated malicious code targeting the Copay cryptocurrency wallet's bundled builds. The malicious payload attempted to exfiltrate wallet credentials. GitHub, npm and security researchers disclosed the compromise in November 2018.
