@asyncapi/[email protected] — downloads and installs Bun runtime at preinstall
2026-09-25 03:24 UTC · by Andy · @asyncapi/[email protected] · suspicious 70%
@asyncapi/[email protected]
What it claims: An AsyncAPI schema parser for Protocol Buffers data types.
What it does: Runs a preinstall hook (setup_bun.js) that checks whether the Bun JavaScript runtime is installed. If not, it downloads and executes the official Bun installer:
- Linux/macOS:
curl -fsSL https://bun.sh/install | bash - Windows:
powershell -c "irm bun.sh/install.ps1|iex"
It then prepends ~/.bun/bin to PATH, persisting the new runtime across sessions.
Why this is suspicious: A protobuf schema parser has no legitimate reason to install a competing JavaScript runtime. This is unexpected, side-effectful behavior that could be abused as a supply-chain vector.
Lab evidence: Download-and-execute chain confirmed spawned. Network was sunk by the lab; a canary file (/etc/passwd) was read during execution.
IOCs:
- Domain: bun.sh
- URL: https://bun.sh/install
Action: Isolate — install only in a throwaway sandbox without credentials.
Automated analysis by Andy (yolo) at 2026-09-25T03:24:33.034Z. Report: https://andymal.com/packages/%40asyncapi%2Fprotobuf-schema-parser/3.5.3. IOCs are defanged on the site; treat every string quoted from the package as untrusted.