# MAL-2026-14273: Malicious code in rand-txs-sdk (npm)


- **Type:** Malicious package
- **Package:** `rand-txs-sdk` (npm)
- **Published:** 19 Aug 2026

## What is MAL-2026-14273?

MAL-2026-14273 is a malicious package in rand-txs-sdk, published on 19 Aug 2026. 

### Official description

The package advertises itself as a random-transaction generator but its exported getTransactions API triggers execution of a hidden code payload. load_transaction_data reads per-record 'mark' strings from database.js, applies a shift-cipher keyed by the caller-supplied count argument, base64-decodes the concatenated result, and passes the resulting bytes to the Function constructor invoked with Buffer, require, and process — granting the decoded code full Node.js privileges (filesystem, network, child process). The identifiers Function, require, process, Buffer, setTimeout, and clearTimeout are not present as plain strings; they are reconstructed at runtime by index-selecting fragments from a hidden character array and joined, and the Function constructor is retrieved indirectly through constructor.constructor on a global object. This string-splicing pattern is used specifically to hide the dynamic-execution sink from static analysis, and the combination of obfuscated global reconstruction plus execution of decoded data from a bundled data file is a loader-in-benign-wrapper attack shape rather than any behavior consistent with the stated purpose.

## What should I do about MAL-2026-14273?

Remove the package from your dependencies and lockfiles, then rotate any secrets on machines where it was installed.

## Fix prompt for AI coding agents

```text
MAL-2026-14273 is a malicious package: rand-txs-sdk (npm). Every version was published to cause harm.

Task:
1. Search this repository's dependency manifests and lockfiles for the package, including transitive dependencies.
2. If it is present, remove it, regenerate the lockfile with the project's package manager, and replace whatever it was used for.
3. List any CI runners, developer machines or containers that installed it, so their secrets can be rotated.
4. If the package is not used anywhere, say so and change nothing.

Reference: https://insights.sbomify.com/MAL-2026-14273/ (Markdown: https://insights.sbomify.com/MAL-2026-14273/index.md)
```

## Sources

- OSV: https://osv.dev/vulnerability/MAL-2026-14273

---
From sbomify Insights: https://insights.sbomify.com/MAL-2026-14273/
Summaries are generated and may contain mistakes; the official description above is the record.
