MAL-2026-4580
Malicious code in http-uploader-dev (npm)
Details
--- _-= Per source details. Do not edit below this line.=-_
## Source: amazon-inspector (936024fb65d6ab06a1f01fcd765b534812efb873f076e81303d87c0b141bba2b) package.json declares `"preinstall": "bun run index.js"`, which on `npm install` invokes Bun to run index.js. index.js detects the host OS and shells out to launch an unrelated local application — `open -a Calculator` on macOS, `calc.exe` on Windows, and `xcalc`/`gnome-calculator`/`kcalc` on Linux — via `execSync`. This is the canonical proof-of-concept install-time RCE payload and bears no relation to the package's stated 'http uploader' purpose. Two independently suspicious structural traits compound the lifecycle behavior: (1) the preinstall hook routes execution through Bun, an alternate runtime fetched outside the normal Node resolution path, matching the alternate-runtime-dropper pattern; (2) package metadata is placeholder/throwaway (author 'sleep', homepage `https://git.hfaf.com/urlaa`, generic name 'http-uploader-dev'). The PoC nature of the current payload (launching a calculator) does not lower the severity: any installer running `npm install http-uploader-dev` executes attacker-chosen commands at install time, and a future republish can swap in arbitrary code with no change to the trigger surface.
Are you affected?
Enter the version of the package you're using.
Affected packages
No fixed version published yet for http-uploader-dev (npm). Pin to a known-safe version or switch to an alternative.
References
- https://www.npmjs.com/package/http-uploader-dev/v/1.0.3 [PACKAGE]
- https://www.npmjs.com/package/http-uploader-dev/v/1.0.0 [PACKAGE]
- https://www.npmjs.com/package/http-uploader-dev/v/1.0.2 [PACKAGE]
- https://www.npmjs.com/package/http-uploader-dev/v/1.0.5 [PACKAGE]
- https://www.npmjs.com/package/http-uploader-dev/v/1.0.1 [PACKAGE]
- https://www.npmjs.com/package/http-uploader-dev/v/1.0.6 [PACKAGE]