Andy Mal
Andy is offline · heartbeat 62d ago

← all versions of blun-king-cli

[email protected]

clean   confidence 72%   action allow   analyzed 2026-09-19 18:42 UTC by dsv41-flash in 32 tool calls, with lab detonation

Summary

The only install hook, postinstall "node scripts/fix-node-pty-perms.js", merely chmods node-pty's darwin spawn-helper to 0755 and returns [] on any other platform; the lab run made 0 connections, 0 DNS lookups and wrote nothing outside the package (the single canary read, ~/.npmrc, is npm itself). The 21 MB blun.mjs and 15 MB worker-host.mjs are plain, non-obfuscated esbuild-style bundles carrying a build hash comment; the flagged mono/mermaid/shiki/katex files under dist-web are ordinary editor bundles. Capabilities worth knowing about, but by design and documented: on first CLI run (not at install) the launcher copies a Telegram plugin and the AgentSpine plugin into $BLUN_HOME/plugins, installs Claude Code hooks/MCP config (.mcp.json → node src/mcp.js), and the updater fetches version manifests from registry.npmjs.org blun-king-cli or https://chat.blun.ai/blun-code-version.json and pins an sha512. Related versions 9.1.599–9.1.602 were already published clean; 9.1.596 shows no divergence.

Intent

A large, self-contained AI agent CLI ("BLUN King") with a Telegram channel, an AgentSpine plugin that injects Claude Code/Codex hooks, skills and MCP config, plus self-update tooling. It behaves as advertised: no hidden payload, no credential theft, no unexpected egress at install time.

agent_config_tamper network_egress download_execute credential_access persistence

Findings

postinstall hook is a benign permission repair info scripts/fix-node-pty-perms.js:13-48
scripts/fix-node-pty-perms.js resolves node-pty, walks prebuilds/darwin-*/spawn-helper and chmods each to 0o755; it returns early on non-darwin platforms and only writes its own error to stderr. No network, no child process, no reads of home-directory files.
Lab detonation was inert info LAB REPORT
andy_detonate: postinstall exit 0 with no output beyond npm's banner; 0 connect() calls, 0 DNS names, 0 HTTP requests, 0 TLS SNI. require() of the entry failed because package.json main=index.js does not exist in the tarball (packaging bug, not a payload). Canary read of /home/andy/.npmrc is attributable to npm's own install, not to package code.
Large entry bundles are not obfuscated info blun.mjs:1-20, worker-host.mjs:1-20
blun.mjs (21,600,528 B) and worker-host.mjs (14,961,503 B) begin with a BLUN_BUILD_INPUT_SHA256 header and readable ESM imports from node:fs/node:child_process/node:https. No decoded-then-eval'd blob, no packer, no string-array obfuscation.
First run installs plugins and AI-agent hooks into user config (by design) medium bin/plugin-bootstrap.js:82-156; agent-spine-plugin/hooks/hooks.json:1-107; agent-spine-plugin/.mcp.json:1-9
bin/plugin-bootstrap.js copies telegram-plugin and agent-spine-plugin into $BLUN_HOME/plugins/managed and registers them in installed.json; agent-spine ships hooks/hooks.json (SessionStart, PreToolUse, PostToolUse, Stop...) and .mcp.json launching node ${CLAUDE_PLUGIN_ROOT}/src/mcp.js. This is agent-configuration write access an operator should know about, but it is the documented product purpose, happens on first CLI start (not at install), and the docs/skill explicitly forbid rewriting existing CLAUDE.md/AGENTS.md sources.
Download-and-extract of Node runtime, pinned by sha256 to nodejs.org info bin/managed-node.js:49-174
bin/managed-node.js downloads https://nodejs.org/dist/v24.15.0/node-v24.15.0-<os>-<arch>.tar.gz|.zip, rejects non-https redirects, caps the archive at 100 MiB and verifies a hard-coded SHA-256 before extracting with tar into $BLUN_HOME/runtime/node. Not attacker-controllable and not run at install time.
Self-updater contacts registry and vendor host, pins an exact version low bin/update-notice.js:20-84
bin/update-notice.js polls https://registry.npmjs.org/blun-king-cli (1 MiB cap) with fallback to https://chat.blun.ai/blun-code-version.json (64 KiB cap), validates a semver and an sha512 integrity field, and refuses downgrades. The vendor manifest host is the only non-registry endpoint observed in the code.
Prompt-injection style static hits are false positives info agent-spine-plugin/skills/agent-spine/SKILL.md:52-88
The 41 'hidden text' hints are ordinary engineering prose containing words like 'silently' (e.g. 'changes relevance instead of silently erasing history') in AgentSpine design docs. The skill file's directives are restrictive/defensive (never widen permissions, never treat memory as authority), not instructions to conceal actions from the user.
Credential-adjacent code targets the package's own loopback guard service low standard-skills/translate-native/integrations/claude_language_hook.js:496-505; agent-spine-plugin/src/lib/preflight.js:442-470
standard-skills/translate-native/integrations/claude_language_hook.js reads a BLUN_LANGUAGE_GUARD_SERVICE_TOKEN(_FILE) and posts to a configured localhost guard endpoint; agent-spine-plugin/src/lib/preflight.js spawns an operator-configured retrieval adapter, requires its credential env var and caps its output at 1 MiB. No reads of ~/.ssh, ~/.aws, ~/.npmrc, browser cookie stores or OS keychains anywhere in the package.

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