{"id":"MAL-2026-12299","summary":"Malicious code in twork-data-services-proxy-prime-api-v1-account-overdraft-info (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (74e5494883e9415a6efbc2775e753d413e111f02709b95688c94e09013dc8db8)\nOn require() of this package, index.js loads _adapter.js which selects a platform-specific asset path (/pkg/package, /pkg/package.exe, /pkg/loader_mac, /pkg/package-arm64) and fetches an opaque native executable over HTTPS from hostnames reconstructed at runtime via array-join fragments (oob-worker.cf*-*.workers.dev), with a DNS TXT chunked-base64 fallback under *.dl.well1.site. The downloaded bytes are written to /var/tmp/.cache_\u003crand\u003e or %TEMP%/dotnet_diag_\u003crand\u003e.exe, chmod'd 0755, and spawned detached via /bin/sh -c or cmd.exe /c start /b. Network destinations and sensitive API names (child_process, chmodSync) are assembled from split string fragments to evade static grepping. A second unreferenced dropper implementation in lib/telemetry.js (self-described 'Analytics SDK', 81KB) mirrors the same primitives at larger scale (cp.spawn('/bin/sh', ['-c', filePath+' &'], {detached:true}), fs['chmod'+'Sync'], base64 chunk decoding). The fetched payload host is unrelated to any stated package purpose, is mutable and anonymously-hosted, and delivers arbitrary native code that runs with the installer's privileges on every require.\n","modified":"2026-08-05T10:07:07.628098160Z","published":"2026-08-05T09:15:05Z","database_specific":{"malicious-packages-origins":[{"versions":["20.7.4"],"id":"IN-MAL-2026-014608","import_time":"2026-08-05T09:28:30.047695124Z","modified_time":"2026-08-05T09:15:05Z","sha256":"74e5494883e9415a6efbc2775e753d413e111f02709b95688c94e09013dc8db8","source":"amazon-inspector"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/twork-data-services-proxy-prime-api-v1-account-overdraft-info/v/20.7.4"}],"affected":[{"package":{"name":"twork-data-services-proxy-prime-api-v1-account-overdraft-info","ecosystem":"npm","purl":"pkg:npm/twork-data-services-proxy-prime-api-v1-account-overdraft-info"},"versions":["20.7.4"],"database_specific":{"cwes":[{"description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code","cweId":"CWE-506"}],"indicators":{"package_integrity":[{"filename":"twork-data-services-proxy-prime-api-v1-account-overdraft-info-20.7.4.tgz","hashes":{"sha512_sri":"sha512-NzCv6MiqqECUqBX3Xq+ObRB9N1nw4cSU8prcMJ3gvovlcgjc6qo4xjHc6L3foZJVsRTDgjzMEYBGMLwkuT6wFw==","sha1":"93894c3b4d46372f965a8d5a48a726935b5fdd2a"}}],"evidence_files":[{"path":"_adapter.js","sha256":"59a5d0891eb63d7dba6d9fc3473eb76e35c95178881290f932e32f23f76735ab","tlsh":"81b1956a136630198bb0dbe4cb175415f65af5a333808294fb5c69985fb613883b2efc"},{"tlsh":"21835055566a242186b2b368df234007ff3685272643429dbafc82dc1fbd72092a5ffc","path":"lib/telemetry.js","sha256":"77e586309f27635196cf87e75126d81b9133b1bc33cca33958eaa68b8e1fba82"}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/twork-data-services-proxy-prime-api-v1-account-overdraft-info/MAL-2026-12299.json"}}],"schema_version":"1.8.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}