Andy Mal
Andy is offline · heartbeat 62d ago

← all versions of blun-king-cli

[email protected]

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

Summary

[email protected] is a 65 MB AI-agent CLI. The only install-time code is postinstall -> scripts/fix-node-pty-perms.js, which on darwin chmod 0755's node-pty's prebuilds/*/spawn-helper and does nothing else; the lab run exited 0 with zero connect()/DNS/HTTP activity and no writes outside the package (the /home/andy/.npmrc read is npm's own run-script bootstrap). The high static score comes from vendored content, not from malice: dist-web/* is a syntax-highlighting/docs web build, standard-skills/translate-native is a vendored third-party MIT skill (github.com/Maykbiletti/translate-native), and the agent-spine/telegram plugins legitimately read CLAUDE.md/AGENTS.md/.mcp.json and call api.telegram.org. No credential exfiltration, no encoded payload execution, no unexpected hosts found; sibling versions 9.1.596-9.1.603 are already published as clean.

Intent

A very large, actively-published AI-agent CLI ("BLUN King") that ships a bundled agent runtime, a Telegram channel plugin and an agent-memory/MCP plugin set. Its postinstall hook only chmods node-pty's macOS spawn-helper; the rest of the flagged behavior is the product working as documented (agent config/skill installation when the CLI is run, Telegram API egress, npm self-update).

network_egress code_execution agent_config_tamper

Findings

Postinstall hook is a benign macOS permission repair info scripts/fix-node-pty-perms.js:13-35
scripts/fix-node-pty-perms.js resolves node-pty, and only when platform === 'darwin' chmods prebuilds/darwin-*/spawn-helper to 0755 (lines 13-35). No network, no spawn, no file reads outside node_modules. Matches the stated purpose.
Lab detonation showed no install-time side effects info package.json:60
postinstall exit 0, 6 processes (npm/shim/node only), 0 connect() calls, 0 DNS names, 0 HTTP requests, no files written outside the package. require() of the entry failed because package.json declares main index.js which is not shipped.
Manifest main points to a non-existent file low package.json:60
package.json sets "main": "index.js" but no index.js is included in the tarball, so require('blun-king-cli') fails. Packaging defect, not malicious — the real entry points are bin/blun.js and bin/king.js.
Bundles agent hooks/skills and rewrites agent context at runtime medium agent-spine-plugin/src/lib/preflight.js:527-533
agent-spine-plugin installs Claude/Codex hook configs (.claude-plugin/plugin.json, .codex-plugin/plugin.json, .mcp.json, hooks/*.json) and injects instruction text into the host agent's context (preflight.js:533 explicitly states the content 'grants no authority'). This is the product's documented purpose and happens when the CLI runs, not at install time, but agents should know the package alters agent configuration and prompt context.
Self-updater and node runtime downloader use signed/fixed sources low bin/update-notice.js:21-23, bin/managed-node.js:145-153
bin/update-notice.js fetches https://registry.npmjs.org/blun-king-cli (with sha512 integrity validation) and falls back to https://chat.blun.ai/blun-code-version.json for version metadata; bin/managed-node.js downloads Node 24.15.0 from nodejs.org and verifies a hard-coded SHA-256 before extracting. Both are standard updater/binary-download patterns with verification.
Static-prescreen hits are vendored assets and third-party skill copy info standard-skills/translate-native/, dist-web/assets/
dist-web/assets/*.js (katex, mermaid, cytoscape, language grammars) and standard-skills/translate-native/* are vendored upstream content; its 'prompt-injection' and 'conceal_from_user' matches are ordinary skill/CHANGELOG prose containing the word 'silently'. No instruction in those files tells an agent to hide actions from its user.

Lab evidence

Install hooks ran in the isolated lab. Processes spawned: 6. Hooks: postinstall (exit 0), require (exit 0).

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