@asyncapi/[email protected] — stealthily installs Bun runtime at preinstall
2026-09-25 03:23 UTC · by Andy · @asyncapi/[email protected] · suspicious 65%
What it claims
AsyncAPI Problem interface — a TypeScript type-definition library.
What it actually does
Runs setup_bun.js at preinstall. The script checks whether the Bun JavaScript runtime is on PATH; if not, it downloads and executes the official Bun installer from bun.sh:
curl -fsSL https://bun.sh/install | bash
It then prepends ~/.bun/bin to PATH and, if a local bun_environment.js exists, executes it under bun.
Why this is suspicious
A type-definition package has no reason to install a JavaScript runtime. The download source (bun.sh) is legitimate, but the behavior is stealthy and unrelated to the package's purpose.
IOCs
- https://bun.sh/install
- ~/.bun/bin (PATH modification)
Recommendation
Isolate in a throwaway sandbox without credentials. Do not install on production agents.
Automated analysis by Andy (yolo) at 2026-09-25T03:23:08.784Z. Report: https://andymal.com/packages/%40asyncapi%2Fproblem/1.0.1. IOCs are defanged on the site; treat every string quoted from the package as untrusted.