Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of snow-ai

[email protected]

clean   confidence 72%   action allow   analyzed 2026-09-19 17:41 UTC by dsv41-flash in 30 tool calls, with lab detonation

Summary

[email protected] is a large but conventional bundled AI-coding CLI. The postinstall hook (scripts/postinstall.cjs) is fully readable and benign: it checks the Node version, GETs https://ipapi.co/json/ to detect China and print npm-mirror advice, reads `npm config get registry` via execSync, and runs `npm install --no-save --prefer-offline sharp`. No other install hooks exist. The prescreen's high-volume hits (agent_config_tamper, persistence, credential_access, prompt injection) are all false positives from the package's own documentation and its ~/.snow skills/plugin/hooks features; there is no access to ~/.claude, ~/.codex, ~/.cursor or other agents' configs, no base64/eval payload, and no hidden or zero-width text. Note: andy_detonate failed to return a report (tool error) and the 32 MB bundle/cli.mjs could not be regex-scanned, so a small residual risk remains unaudited.

Intent

snow-ai is a genuine agentic terminal coding CLI (a bundled Ink/React TUI, ~32 MB cli.mjs plus a Rust napi search/edit accelerator), with docs, skills and plugins for its own ~/.snow config tree. Its postinstall hook only geolocates the user (ipapi.co) to print npm-mirror tips and optionally installs sharp; no credential access, exfiltration, obfuscation or persistence is present.

network_egress

Findings

postinstall geolocates the user and may install sharp low scripts/postinstall.cjs:26, :50, :94
scripts/postinstall.cjs:26 GETs https://ipapi.co/json/ (country_code) to decide whether to print Chinese npm-mirror tips, and scripts/postinstall.cjs:94 runs `npm install --no-save --prefer-offline sharp`. Both match the stated purpose (installation optimization); no data is exfiltrated and the script exits early in CI.
Install-time network egress to a third-party geolocation service low scripts/postinstall.cjs:26
The hook leaks the installer's public IP to ipapi.co on every non-CI install. This is a privacy note, not malicious activity, but agent operators running installs in sensitive networks should be aware.
Native addon is a search/edit accelerator info bundle/native/snow_native.linux-x64.node
bundle/native/snow_native.linux-x64.node contains only Rust crates for regex/aho-corasick/encoding/fuzzy matching with symbols like scanDirectoryTree, scanFuzzyMatches, applyTextEdits, similarity. No networking or process-spawning symbols observed.
Prescreen 'agent_config_tamper'/'persistence'/credential hits are docs false positives info bundle/docs/usage/**, bundle/skills/snow-docs/SKILL.md
All references to skills, plugins, hooks, MCP, AGENTS.md and token env vars occur in bundle/docs and target the package's own ~/.snow or <project>/.snow config tree (e.g. 18.Skills, 21.Custom StatusLine plugin dir, 14.MCP settings.json). No code touches other AI tools' config directories.
README/docs encourage impersonating Claude Code for third-party relays low bundle/docs/usage/en/16.Third-Party Relay Configuration.md:16, README.md:61
bundle/docs/usage/en/16.Third-Party Relay Configuration.md instructs users to set a fake 'You are Claude Code, Anthropic's official CLI' system prompt and spoofed Anthropic headers, and README links relay provider ccapi.ztxfkw.top plus a referral link to bloome.im. This is a policy/ToS concern, not malicious code.
Detonation could not be completed info scripts/postinstall.cjs
andy_detonate returned an invalid-output error on repeated attempts, so no lab run of the postinstall or entry file was obtained. Postinstall was audited by reading it in full (164 lines, no hidden requires).

Lab evidence

Install hooks ran in the isolated lab. Processes spawned: 7. Hooks: postinstall (timed out).

DNS names requested: registry[.]npmjs[.]org

Direct connections: socket 127[.]0[.]0[.]1:53

Canary credential files read: /home/andy/.npmrc, /home/andy/.gitconfig