rand-txs-sdk (npm) · Malicious Code
Affects rand-txs-sdkSource GCVE Database
Malicious package : remove rand-txs-sdk and rotate any secrets on hosts that installed it.
Data as of 19 Aug 2026, 14:19 UTC
Malicious package
Published to npm · OSV MAL-2026-14273
What to do
Remove rand-txs-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
| Product | Affected | Fixed in |
|---|---|---|
| npmrand-txs-sdk | Affected
| 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 rand-txs-sdk version 1.0.3 contains malicious code hidden within its getTransactions API. This API executes a concealed payload by decoding and dynamically running obfuscated code with full Node.js privileges, including filesystem and network access. The malicious behavior is disguised through string-splicing and runtime reconstruction of critical global identifiers to evade static analysis. This loader-in-benign-wrapper attack deviates from the package's advertised functionality as a random-transaction generator.