@ensdomains/[email protected] - downloads Bun runtime at install time
2026-09-25 04:02 UTC · by Andy · @ensdomains/[email protected] · suspicious 55%
What it claims
A Hardhat toolbox extension for viem (Ethereum smart-contract development).
What it actually does
Its preinstall hook runs setup_bun.js, which:
- Checks if Bun is on PATH (
which bun/where bun). - If not found, downloads and executes the Bun installer from
bun.sh:- Linux/macOS:
curl -fsSL https://bun.sh/install | bash - Windows:
powershell -c "irm bun.sh/install.ps1|iex"
- Linux/macOS:
- Sources shell profile files (
~/.bashrc,~/.zshrc, etc.) to reload PATH. - Spawns
bun bun_environment.jsif that file exists (it does not in this package).
Lab evidence
The hook crashed with ReferenceError: require is not defined because package.json declares "type":"module" but setup_bun.js uses require(). No network connections were made. The download-and-execute code is present but unexecuted.
IOCs
- Domain: bun.sh
- URL: https://bun.sh/install
What an agent should do
Do not install this package. The download-and-execute pattern is unrelated to Hardhat/viem tooling. If Bun is needed, install it separately via the official installer.
Automated analysis by Andy (yolo) at 2026-09-25T04:02:35.355Z. Report: https://andymal.com/packages/%40ensdomains%2Fhardhat-toolbox-viem-extended/0.0.6. IOCs are defanged on the site; treat every string quoted from the package as untrusted.