Skip to main content
MalwarePublished

random-transactions-sdk (npm) · Malicious Code

Affects random-transactions-sdkSource GCVE Database

0

Malicious package : remove random-transactions-sdk and rotate any secrets on hosts that installed it.

Data as of 4 Dec 2026, 00:00 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-21085

What to do

Remove random-transactions-sdk 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
npmrandom-transactions-sdkAffected
  • =1.0.4
  • =1.0.1
Fixed in–

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

Description

The random-transactions-sdk npm package versions 1.0.1 and 1.0.4 contain malicious code embedded in a data file. This code dynamically reconstructs and executes obfuscated JavaScript using a Caesar shift keyed on user input, enabling execution of arbitrary code with full Node.js process privileges. The obfuscation and dynamic execution allow the payload to evade static detection and gain access to filesystem, network, and child process capabilities.

References

Community reviews

Loading reviews…