Poisoned Pipeline / Incidents / AS377
crossenv typosquat stole npm tokens from developer environments
The crossenv npm package, a typosquat of the legitimate cross-env, was
designed to steal npm tokens from environment variables and post them to
attacker-controlled servers. GitHub's advisory (CVE-2017-16074, published to
the advisory database later) records all versions as unpublished. Although
the original campaign predates 2021, the package remained live and the
technique — steal a publish token from a developer's environment — became the
template for the entire 2024-2026 wave.
Mapped techniques
supply-chain crossenv typosquat stole npm tokens from developer environme
The package name imitated cross-env.
The payload targeted npm publish tokens in env vars.