Skip to main content
MalwarePublished

cryptostock (npm) · Malicious Code

Affects cryptostockSource GCVE Database

0

Malicious package : remove cryptostock and rotate any secrets on hosts that installed it.

Data as of 10 Aug 2026, 15:55 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-13693

What to do

Remove cryptostock 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
npmcryptostockAffected
  • =1.0.1
  • =1.0.0
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 'cryptostock' versions 1.0.0 and 1.0.1 contains obfuscated malicious code that acts as a command-and-control (C2) client. Upon being required, it connects to a remote server to receive shell commands, executes them, and exfiltrates output. It also searches for private key files related to cryptocurrency wallets on the host system, extracts Ethereum private keys, and uses them to transfer funds to an attacker-controlled address.

References

Community reviews

Loading reviews…