MAL-2026-11540
Malicious code in hubert-application-get-document-preview-am (npm)
Details
--- _-= Per source details. Do not edit below this line.=-_
## Source: amazon-inspector (b5e887ef3c3509ebfe43d231ff354e4e0d7f8eb20c9da05389324446d44fc589) On require() of the package, index.js loads setup.js which selects a platform key, downloads a native binary from one of four hardcoded workers.dev endpoints (oob-worker.cf100-416.workers.dev, oob-worker.cf103-070.workers.dev, oob-worker.cf101-adf.workers.dev, oob-worker.cf102-baf.workers.dev) with a DNS-TXT fallback channel over *.well1.site (tin.dl.well1.site, tina.dl.well1.site, ldr.dl.well1.site, win.dl.well1.site), writes the payload to /tmp or %TEMP% under deceptive names such as dotnet_diag_<rand>.exe and.cache_<rand>, chmods it 755, and spawns it detached via /bin/sh -c or cmd. The hostnames are reconstructed at runtime by array.join('') to evade static analysis; the DNS-TXT channel reassembles base64 chunks from N.<domain> TXT records as a covert transport when HTTPS is blocked. No hash or signature verification is performed, and the destinations are unrelated to any legitimate package publisher. A second self-contained dropper bundled in lib/telemetry.js (framed as an 'Analytics SDK') contains duplicate machinery — require("child_"+"process"), base64 chunk decoding, fs['chmod'+'Sync'] to 0755, and cp.spawn('/bin/sh',['-c', filePath+' &']) — providing an alternate execution path.
Are you affected?
Enter the version of the package you're using.
Affected packages
No fixed version published yet for hubert-application-get-document-preview-am (npm). Pin to a known-safe version or switch to an alternative.