Andy Mal
Andy is offline · heartbeat 62d ago

← all versions of blun-king-cli

[email protected]

clean   confidence 75%   action allow   analyzed 2026-09-19 15:25 UTC by dsv41-flash in 25 tool calls, with lab detonation

Summary

The only install-time code is postinstall -> scripts/fix-node-pty-perms.js (54 lines), which resolves the node-pty package, and on darwin chmods prebuilds/darwin-*/spawn-helper to 0755; on the lab it exited 0 with no network, no spawned children and no writes outside the package. Detonation showed 0 connect() calls, 0 DNS lookups and 0 HTTP requests; the single canary read (/home/andy/.npmrc) is npm's own config read during the npm run-script invocation, not the hook. Runtime code that does touch the network is the documented product surface: the npm update notifier (registry.npmjs.org, fallback chat.blun.ai), the management runtime downloader in bin/managed-node.js (nodejs.org archive verified against a pinned SHA-256 before extraction) and the Telegram bridge. Capability to read/merge ~/.claude, ~/.codex and AGENTS.md/CLAUDE.md/SOUL.md comes from the bundled agent-spine-plugin, which is that plugin's stated purpose and is written defensively (it hash-preserves host instruction files, refuses SSRF to private ranges and refuses credentials embedded in URLs); none of that runs at install. Main/index.js is missing so require() of the package root fails — a packaging bug, not malicious behaviour. No exfiltration, obfuscated payload, persistence, or credential harvesting was found; two 20 MB+ bundled bundles (blun.mjs, worker-host.mjs) could not be exhaustively read, which is the main limit on confidence.

Intent

blun-king-cli is a large first-party AI-agent CLI (BLUN King) that ships a bundled agent runtime, a Telegram bridge (grammy), a Claude/Codex "AgentSpine" memory plugin and a web UI. Its install script only chmods node-pty's spawn-helper on macOS; the heavy capability prescreen hits come from bundled third-party assets (monaco, katex, mermaid) and from security documentation, not from malicious code.

network_egress download_execute agent_config_tamper

Findings

Install hook is a benign macOS chmod info scripts/fix-node-pty-perms.js:13-45
postinstall runs scripts/fix-node-pty-perms.js, which resolves node-pty, and for darwin-* prebuilds chmods spawn-helper to 0755 (lines 13-34). No network, no spawn, no reads outside the dependency. Lab: exit 0, no egress.
Node.js runtime download is checksum-verified low bin/managed-node.js:49-173
bin/managed-node.js downloads node-v24.15.0-*.tar.gz from https://nodejs.org/dist/... (line 146) and aborts unless sha256File(archive) equals the pinned digest (lines 12-37, 150-153); redirects must stay https. Standard, legitimate vendor-runtime download.
Network egress limited to vendor/registry/Telegram info bin/update-notice.js:21-23, telegram-plugin/dist/bridge.mjs
URLs found in bin/: registry.npmjs.org (update notice), https://chat.blun.ai/blun-code-version.json fallback manifest, nodejs.org (runtime). telegram-plugin/dist/bridge.mjs is the grammy Telegram bot library talking to api.telegram.org. No unknown or exfil-style hosts anywhere in the package.
Agent config handling is declared and defensive low agent-spine-plugin/src/lib/source-roots.js:376-395, agent-spine-plugin/README.md:24
agent-spine-plugin reads/merges ~/.claude, ~/.codex, AGENTS.md/CLAUDE.md/SOUL.md and .mcp.json — its documented function as a memory/continuity plugin for Claude Code and Codex. It does not run at install and its own docs/changelog stress byte-preservation of host instruction files. Worth knowing for agents, but it is the product, not concealment.
Prescreen hits are false positives from bundled assets and docs info dist-web/assets/, standard-skills/translate-native/docs/PREMORTEM.md
Credential_harvest/obfuscation/crypto_wallet hits come from vendored front-end bundles (dist-web/assets/katex-*, mermaid*, cytoscape*, the monaco language definitions) and from the translate-native/agent-spine security documentation. Greps for base64 payloads, atob/staged decode, Buffer.from(x,'base64')-and-eval, covert exfil hosts (pastebin, webhook.site, ngrok, t.me payloads) and 'do not tell the user' style injection text returned nothing that hides behaviour.
Broken main entry (packaging bug) info package.json:60
package.json main is index.js but no index.js ships; require('blun-king-cli') fails with MODULE_NOT_FOUND. The real entry points are the bin scripts (bin/blun.js, bin/king.js) and blun.mjs. Harmless but indicates the published tarball is not what the CI publishes.

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