{"id":"MAL-2026-12438","summary":"Malicious code in sme-crm-services-sme-crm-services-core (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (08ec89cd09f6d62ee7e1a0e509712ee53f41f3ebba4139453cf1e3a1080fe3c9)\nOn require() of the package, index.js loads _vendor.js which selects an OS/architecture-specific URL path, downloads an opaque binary over HTTPS from Cloudflare Workers subdomains whose hostnames are assembled by Array.join from small string fragments (oob-worker.cf102-baf.workers.dev, cf103-070.workers.dev, cf100-416.workers.dev), with a DNS TXT fallback under *.dl.well1.site. The downloaded bytes are written to /var/tmp or %TEMP% under disguised names such as dotnet_diag_\u003chex\u003e.exe or.cache_\u003chex\u003e, chmod'd 0755, and executed detached via spawn('/bin/sh','-c',...) or cmd.exe /c start. Environment variables DISABLE_TELEMETRY/ANALYTICS_OPT_OUT/DO_NOT_TRACK gate activity and a /tmp/.analytics_state stamp file rate-limits re-execution. A sibling file lib/telemetry.js ships the same write-chmod-spawn dropper primitives with string-split API names (require('child_'+'process'), fs['chmod'+'Sync']) under an 'analytics SDK' cover story. The destination hosts are anonymous Cloudflare Workers subdomains unrelated to any package publisher, the fetched binary is unpinned and unverified, and hostnames plus dangerous API names are deliberately fragmented to defeat static inspection.\n\n## Source: ghsa-malware (eac485d41d673301c3c72aa9fec534c4d23ac442c341ad348670051b1194e1fb)\nAny computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.\n","aliases":["GHSA-8v59-j55f-8vpw"],"modified":"2026-08-06T01:21:13.329667233Z","published":"2026-08-05T12:36:47Z","database_specific":{"malicious-packages-origins":[{"sha256":"08ec89cd09f6d62ee7e1a0e509712ee53f41f3ebba4139453cf1e3a1080fe3c9","source":"amazon-inspector","versions":["20.1.4"],"id":"IN-MAL-2026-014728","import_time":"2026-08-05T13:08:41.474327211Z","modified_time":"2026-08-05T12:36:47Z"},{"sha256":"eac485d41d673301c3c72aa9fec534c4d23ac442c341ad348670051b1194e1fb","source":"ghsa-malware","id":"GHSA-8v59-j55f-8vpw","import_time":"2026-08-06T00:58:53.326665137Z","modified_time":"2026-08-05T14:57:46Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}]}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/sme-crm-services-sme-crm-services-core/v/20.1.4"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-8v59-j55f-8vpw"}],"affected":[{"package":{"name":"sme-crm-services-sme-crm-services-core","ecosystem":"npm","purl":"pkg:npm/sme-crm-services-sme-crm-services-core"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["20.1.4"],"database_specific":{"indicators":{"package_integrity":[{"filename":"sme-crm-services-sme-crm-services-core-20.1.4.tgz","hashes":{"sha1":"9a208dea111f1e5a32c4eab0a5057af6e39fc8e6","sha512_sri":"sha512-p8NFMEKF5jBe2vJZMZHnnym0vNy3iNzCWnMWyOQmSGymtCWAnudM5eY/eboEm5HgUWQGFidSirh4oqGFsqQkFA=="}}],"evidence_files":[{"sha256":"5812c72434610b69b2edf4306fef378046bc34e8074633c4759743f8828b8984","tlsh":"b5a1979a07a570198bb0dbe4c6274426f65bf6633380c294f75ca9985f7212483b1efc","path":"_vendor.js"},{"tlsh":"1a835056566a142186b2b368df234107ff3685272643429dbafc82dc1fbd72092a5ffc","path":"lib/telemetry.js","sha256":"cbe2b370a483b6c7cac3d0a41acda2668a9601d4133031e9a38dc2bd2086572b"}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/sme-crm-services-sme-crm-services-core/MAL-2026-12438.json","cwes":[{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."},{"description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code","cweId":"CWE-506"}]}}],"schema_version":"1.8.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}