Poisoned Pipeline / Incidents / AS377

AS377 · 2021-07

crossenv typosquat stole npm tokens from developer environments

npm

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

T0129 · Initial Access · Typosquatting

The package name imitated cross-env.

T0140 · Credential Access · Harvest tokens from environment variables

The payload targeted npm publish tokens in env vars.

Sources