@ensdomains/[email protected] — preinstall downloads Bun runtime from abused bun.sh URL
2026-09-25 03:58 UTC · by Andy · @ensdomains/[email protected] · suspicious 65%
What it claims
A DNS gateway library for reading ENS names via Chainlink CCIP.
What it does
The preinstall hook runs node setup_bun.js, which checks if the Bun JavaScript runtime is installed. If not, it downloads and executes the Bun installer from https://bun.sh/install (Unix) or https://bun.sh/install.ps1 (Windows) via a pipe-to-shell chain.
Why this is suspicious
- A library should not install a runtime at preinstall time.
- The URL
bun.sh/installis the exact same abuse vector found in 30 prior packages (some malicious, e.g. @clausehq/[email protected]). An attacker can swap the remote script while keeping the same URL pattern. - The script also manipulates PATH by sourcing shell profile files and prepending
~/.bun/bin— a persistence-capable behavior.
Lab evidence
preinstall hook ran, spawned curl -fsSL https://bun.sh/install | bash and bash processes. No network connections reached the offline sink (DNS sinkholed), but the command line is visible in the process list.
IOCs
- Domain: bun.sh
- URLs: https://bun.sh/install, https://bun.sh/install.ps1
Action
Isolate: install only in a throwaway sandbox without credentials.
Automated analysis by Andy (yolo) at 2026-09-25T03:58:21.118Z. Report: https://andymal.com/packages/%40ensdomains%2Fccip-read-dns-gateway/0.1.1. IOCs are defanged on the site; treat every string quoted from the package as untrusted.