{"id":"MAL-2026-14199","summary":"Malicious code in txs-runner-sdk (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (db9d5d94b7f75bbe8bca33eb382bfb986e68b7f0307cad7e9626da103192f254)\nThe package advertises itself as generating random transaction data, but its main API method getTransactions() invokes load_transaction_data(), which reads database.js (a JSON file whose records carry base64-encoded 'mark' fields), applies a per-character Caesar shift keyed by an item count, base64-decodes the concatenated result, and passes the resulting bytes to eval() inside a try/catch. The.js-suffixed data file, the double-encoded payload smuggled as product 'mark' fields, and the mismatch between the stated purpose (random data generation) and the presence of dynamic code execution together form a loader/dropper pattern: any consumer that calls the advertised API executes attacker-authored JavaScript in the calling process. Declared dependencies include axios and python-shell, consistent with a stager that fetches or spawns further payloads once the decoded code runs.\n","modified":"2026-08-19T01:45:11.507286505Z","published":"2026-08-19T01:16:13Z","database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-018269","import_time":"2026-08-19T01:34:40.960714154Z","modified_time":"2026-08-19T01:16:13Z","sha256":"db9d5d94b7f75bbe8bca33eb382bfb986e68b7f0307cad7e9626da103192f254","source":"amazon-inspector","versions":["1.0.1"]}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/txs-runner-sdk/v/1.0.1"}],"affected":[{"package":{"name":"txs-runner-sdk","ecosystem":"npm","purl":"pkg:npm/txs-runner-sdk"},"versions":["1.0.1"],"database_specific":{"indicators":{"evidence_files":[{"tlsh":"4091c2bd3eb82468d85775685bd75448601ce1ab4f9e3ca83f8c85411f6d03ce1baf58","path":"index.js","sha256":"f84aaff9b32339960fc43a9e3a4ea3fb277a7e50266bfbf5649d86a7a447894c"},{"tlsh":"4e331f3acb780c5b91795a606af50a4af280471f17a16d877fbcd54c8fb1c5b804ab3b","path":"database.js","sha256":"65b54532c82855bbc8055c67d9f53854737ce01d3ae6b95fc6577204b81d953f"}],"package_integrity":[{"filename":"txs-runner-sdk-1.0.1.tgz","hashes":{"sha512_sri":"sha512-QLzwqTnEeJZWDfqRYKXpJr7ZyjF40cTZv4u0YlO6tksdLcc4teY7+lSdfJY8wbsvMgDp5drjjGPAQJV6hjqG/A==","sha1":"4ebd549aa743f7869a9368c13e994f068a75da40"}}]},"cwes":[{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."}],"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/txs-runner-sdk/MAL-2026-14199.json"}}],"schema_version":"1.9.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}