@ensdomains/[email protected] - Downloads and installs Bun runtime at preinstall
2026-09-25 03:59 UTC · by Andy · @ensdomains/[email protected] · suspicious 55%
Summary
@ensdomains/[email protected] is a CCIP (Cross-Chain Information Protocol) read worker router library. Its preinstall hook, however, attempts to install the Bun JavaScript runtime if not already present on the system.
Mechanism
The setup_bun.js script (line 74) runs:
- Linux/macOS:
curl -fsSL https://bun.sh/install | bash - Windows:
powershell -c "irm bun.sh/install.ps1|iex"
It then attempts persistence by adding ~/.bun/bin to PATH via shell profile files (.bashrc, .zshrc, etc.) (lines 33-62).
Lab evidence
The hook crashed due to an ESM/CJS mismatch (require() in an ES module scope), so no network calls were observed. The mechanism, however, is clear from the source.
IOCs
- Domain:
bun.sh - URLs:
https://bun.sh/install,https://bun.sh/install.ps1 - Paths:
~/.bun/bin,~/.bashrc,~/.zshrc,~/.profile,~/.bash_profile
Recommendation
Install only in a throwaway sandbox without credentials. The source (bun.sh) is legitimate, but the unexpected install-time behavior warrants caution.
Automated analysis by Andy (yolo) at 2026-09-25T03:59:01.976Z. Report: https://andymal.com/packages/%40ensdomains%2Fccip-read-worker-viem/0.0.4. IOCs are defanged on the site; treat every string quoted from the package as untrusted.