Skip to main content
MalwarePublished Updated

@stellarshift/token-units (npm) · Malicious Code

Affects @stellarshift/token-unitsSource GCVE Database

0

Malicious package : remove @stellarshift/token-units and rotate any secrets on hosts that installed it.

Data as of 7 Sep 2026, 20:09 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-15824

What to do

Remove @stellarshift/token-units from every project, lockfile and image that pulls it in. Treat any host that installed it as compromised: rotate the credentials, tokens and keys it could read, from a clean machine.

Affected software

ProductAffectedFixed in
npm@stellarshift/token-unitsAffected
  • =1.0.1
  • =1.0.3
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

Description

The npm package @stellarshift/token-units versions 1.0.1 and 1.0.3 contains malicious code that executes remote scripts during installation. It advertises BigInt token-unit conversion helpers but includes a postinstall hook that downloads and runs code from an obfuscated URL without integrity checks. Execution is conditional on detecting specific enterprise collaboration clients (Lark/Feishu) and a VPN client (FortiClient), and it avoids continuous integration environments. This behavior indicates targeted compromise and evasion tactics unrelated to the advertised functionality.

References

Community reviews

Loading reviews…