MAL-2026-12565
Dashboard / Malicious Package / MAL-2026-12565
MAL-2026-12565
Summary: Malicious code in checkout-get-pos-documents-am (npm)
Details: Source: amazon-inspector (0df9be66ed22c321db8a9a0eace4736f23ed1f2d9b5cd0a28e8bbc38c7163098) On any require/import of checkout-get-pos-documents-am, index.js loads _compat.js, which selects a per-platform binary (linux_x64, linux_arm64, darwin, win32.exe), downloads it over HTTPS from Cloudflare Workers subdomains whose hostnames are assembled by joining string fragments (e.g. "oob-worker.c"+"f103-070.wor"+"kers.d"+"ev"), writes the bytes to /tmp or %TEMP% under a masqueraded name, chmods 0755, and detach-spawns it via cp.spawn("/bin/sh", ["-c", path+" &"], {detached:true}).unref(). If HTTPS fetch fails, the code falls back to a DNS-TXT covert channel, calling dns.resolveTxt against subdomains under sdk.dl.wel1.ru / ext.dl.wel1.ru / pkg.dl.wel1.ru / net.dl.wel1.ru and reassembling base64 chunks from TXT records into an executable payload. No hash or signature verification is performed and the fetched binary bears no relation to the package's stated "runtime support" purpose. A second dropper implementation with the same fetch → base64-decode → chmod 0755 → /bin/sh spawn shape is bundled as lib/telemetry.js under an "Analytics SDK" cover story. Hostname string-splitting, DNS-TXT payload transport, filename masquerade, and detached spawn are deliberate evasion techniques.
Affected packages
Package
Name: checkout-get-pos-documents-am
Purl: pkg:npm/checkout-get-pos-documents-am
Affected ranges
Type: N/A
Events:
