Poisoned Pipeline

Poisoned Pipeline / Incidents / AS9

AS9 · 2018-11

npm event-stream / flatmap-stream

npm

The popular npm package event-stream, with millions of weekly downloads,
was handed by its original maintainer to a new owner who introduced a
dependency, flatmap-stream, that targeted Copay wallets and attempted to
steal Bitcoin. This is the textbook "abandoned package + unvetted
maintainer transfer" npm incident and predates most of the original technique set
attack stories.

Mapped techniques

supply-chain event-stream maintainer transfer

T0113 · Initial Access · Compromised user account

Ownership transferred to an attacker-controlled npm account after
the original maintainer accepted help.

T0109 · Resource Development · Publish malicious artifact

flatmap-stream was published to npm as a new dependency of event-stream.

T0111 · Resource Development · Malicious code contribution to an open-source repository

The malicious dependency was introduced via a pull/version bump that
looked like ordinary maintenance.

post-supply-chain Copay / downstream npm users

T0159 · Execution · Malicious artifact execution

The payload decrypted and ran only in specific downstream applications.

T0139 · Impact · Resource hijacking

The objective was theft of Bitcoin from Copay wallets, not a general
backdoor.

Framework gaps noted

Sources