{"id":"MAL-2026-12131","summary":"Malicious code in accounts-constants (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (b71ef624b0206201b243cfed88cdfc36804bbfd903f60cb7c9da9cfa64b4b2a7)\nOn require of the package, index.js loads _helpers.js, which selects a platform-specific endpoint from a list of Cloudflare Workers hosts assembled by joining string fragments (oob-worker.cf10-3-070.workers.dev, oob-worker.cf100-416.workers.dev, oob-worker.cf99-9b3.workers.dev), with a DNS TXT chunked-base64 fallback under *.dl.well1.site whose domain labels are also reconstructed from split arrays. The fetched binary is written to /var/tmp or %TEMP% under a disguised name (.cache_\u003chex\u003e on Unix, dotnet_diag_\u003chex\u003e.exe on Windows), chmod 0o755'd, and spawned detached via spawn(\"/bin/sh\", [\"-c\", \u003cpath\u003e+\" &\"], {detached:true}).unref() or the cmd equivalent. There is no hash or signature verification of the downloaded bytes, the endpoints are attacker-controlled Cloudflare Workers hosts unrelated to any declared publisher, and the package's stated purpose (\"accounts constants wrapper\") does not involve any native binary. Additional anti-analysis behavior includes a fake env-var opt-out (DISABLE_TELEMETRY / ANALYTICS_OPT_OUT / DO_NOT_TRACK), an mtime staleness marker gating re-execution, and stderr silencing.\n","modified":"2026-08-05T10:05:43.710221697Z","published":"2026-08-05T09:06:50Z","database_specific":{"malicious-packages-origins":[{"versions":["0.0.2"],"id":"IN-MAL-2026-014555","import_time":"2026-08-05T09:28:25.09593708Z","modified_time":"2026-08-05T09:07:33Z","sha256":"4f43fcf66944e40e1f9523d2462f76bb9eb107b7100747d90d26a8081945c21c","source":"amazon-inspector"},{"source":"amazon-inspector","versions":["33.1.7"],"id":"IN-MAL-2026-014550","import_time":"2026-08-05T09:28:24.604564156Z","modified_time":"2026-08-05T09:06:50Z","sha256":"b71ef624b0206201b243cfed88cdfc36804bbfd903f60cb7c9da9cfa64b4b2a7"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/accounts-constants/v/0.0.2"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/accounts-constants/v/33.1.7"}],"affected":[{"package":{"name":"accounts-constants","ecosystem":"npm","purl":"pkg:npm/accounts-constants"},"versions":["0.0.2","33.1.7"],"database_specific":{"cwes":[{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"package_integrity":[{"filename":"accounts-constants-0.0.2.tgz","hashes":{"sha1":"53429eae1b4fac52e37ca7e96980ed8441c13a80","sha512_sri":"sha512-hQxNDI/nq2HI1d6ugRGs2Q/X0l+kft6YKoiOfEZYtYkrm2Tzy47FL+8kxfjUXQyf7wt/j24PGHGykSSF8k9ZBA=="}}],"evidence_files":[{"sha256":"46daa08fde1ba4ed1a8ec3cb3e256ce82c80d956a706cff8ef9b1313f03608db","tlsh":"4ca185a602a670194bb0e7e4db1b8815fa5bf663778082c4fb5c65945f7312483b2efc","path":"_helpers.js"},{"sha256":"9dae3d0bde4921e3e0f765a99eced7b4046daa7f7af6e765508eb804f821c5f9","tlsh":"38835055566a202186b2b368df234007ff3685272643429dbafc82dc1fbd72092a5ffd","path":"lib/telemetry.js"}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/accounts-constants/MAL-2026-12131.json"}}],"schema_version":"1.8.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}