{"id":"MAL-2026-13644","summary":"Malicious code in sme-rko-finance-front-operations-pegasus (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (f4ad5f5c931a19daf4fd3f939fc2ed4f1ef2bb034800563cd2ad687f1fbe2364)\nOn require(), index.js loads _shim.js which downloads a platform-specific binary from runtime-assembled *.workers.dev hostnames (with a DNS TXT fallback channel resolving through sdk/ext/pkg/net.dl.wel1.ru), writes it to /var/tmp/.cache_\u003chex\u003e on Linux/macOS or %TEMP%/dotnet_diag_\u003chex\u003e.exe on Windows, sets mode 0755, and spawns it detached via cp.spawn('/bin/sh', ['-c', \u003cpath\u003e+' &']). Destination hostnames are assembled by.join() over char-fragment arrays and API names are built with string concatenation (require('child_'+'process'), fs['chmod'+'Sync']) to hide the behavior from static scanners. A.analytics_state cooldown file suppresses re-execution. The package main lib/telemetry.js (78KB) reimplements the same download/chmod/spawn chain inside classes labeled 'ServiceDiscovery' and 'NativeProfiler', reconstructing the payload via Buffer.from(chunks,'base64') from DNS-chunked data, so the dropper still fires if _shim is stripped. The package's stated purpose is data-transformation utilities and there is no legitimate need for a native downloader from non-publisher infrastructure.\n","modified":"2026-08-08T01:04:45.955652907Z","published":"2026-08-08T00:46:12Z","database_specific":{"malicious-packages-origins":[{"modified_time":"2026-08-08T00:46:12Z","sha256":"f4ad5f5c931a19daf4fd3f939fc2ed4f1ef2bb034800563cd2ad687f1fbe2364","source":"amazon-inspector","versions":["35.8.1"],"id":"IN-MAL-2026-017158","import_time":"2026-08-08T00:53:07.609781597Z"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/sme-rko-finance-front-operations-pegasus/v/35.8.1"}],"affected":[{"package":{"name":"sme-rko-finance-front-operations-pegasus","ecosystem":"npm","purl":"pkg:npm/sme-rko-finance-front-operations-pegasus"},"versions":["35.8.1"],"database_specific":{"indicators":{"evidence_files":[{"tlsh":"5fa1c75a16fa30180792e0d4856f5816719bfa9333c8d8d4fb4ca6a44fd653883b39fc","path":"_shim.js","sha256":"3d712e3b73d490ff46cb8e304931b29a6d64e3541b6ef0382925c0f674501a3f"},{"tlsh":"bb733f4966fb10214263b0685ebb40437635c4072a4aed5dba9c43ec9f8db3896f1fb9","path":"lib/telemetry.js","sha256":"80075b2386f8f1f06b8c5eeb437ee9e6a5370d40e1fd4c5bfbf145b70b9a59f5"}],"package_integrity":[{"filename":"sme-rko-finance-front-operations-pegasus-35.8.1.tgz","hashes":{"sha1":"55f79916e86373393de4cdd701e93c14b5c3aeb7","sha512_sri":"sha512-92+F929ScLZVvch+3svgMuPfWP4/keADPkL3aAVPbsA5XQ78SVW5OYDiiN7bBM7Dp3Org7KxA+nEP5xktT3MhQ=="}}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/sme-rko-finance-front-operations-pegasus/MAL-2026-13644.json","cwes":[{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."}]}}],"schema_version":"1.8.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}