{"id":"MAL-2026-14273","revision":"f5f80f2b19274bb093323867eebc1a1d","records":[{"revision":"f5f80f2b19274bb093323867eebc1a1d","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-14273","aliases":[],"title":"Malicious code in rand-txs-sdk (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (383599a80e18acfe3bbf819e2c1cc5ec27a4663b2da9e18c7755000857196dc9)\nThe 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.\n","state":0,"publishedAt":"2026-08-19T06:57:38+00:00","modifiedAt":"2026-08-19T07:30:12.1150332+00:00","affected":[{"ecosystem":"npm","name":"rand-txs-sdk","ranges":[],"versions":["1.0.3"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/rand-txs-sdk/v/1.0.3"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-14273","license":"OSV · upstream source license applies","key":"osv:MAL-2026-14273","identifiers":["MAL-2026-14273"]},"retained":false,"historicalAffected":[]}],"coverage":[]}