Summary
The only install-time code is postinstall -> scripts/fix-node-pty-perms.js, which resolves node-pty and chmods prebuilds/darwin-*/spawn-helper to 0755 (a standard native-module fix). Detonation in the lab spawned nothing unexpected, made zero network connections and wrote nothing outside the package (the single canary read of /home/andy/.npmrc comes from npm itself starting the script, not from the hook). All network endpoints referenced by shipped code are the npm registry, nodejs.org (SHA-256-verified Node 24.15.0 download in bin/managed-node.js) and the vendor's own host chat.blun.ai / api.telegram.org. The large static-prescreen hit count is dominated by bundled Vite web assets (KaTeX, Mermaid, Shiki grammars, Monaco themes) and by the package's by-design, documented reading of host instruction files. Operators should still treat it as a full agent runtime with credential access: agent-spine reads CLAUDE.md/AGENTS.md/.claude/settings.json and registers hooks/MCP servers into those hosts when the user runs `blun`/`king`, and Telegram bot tokens live in ~/.blun/channels/telegram/.env.
Intent
blun-king-cli is a genuine commercial AI-agent CLI ("BLUN") for macOS/Windows: it ships a bundled agent runtime, a Telegram channel plugin, a web UI, and an "agent-spine" Claude Code/Codex integration plugin. Its install hook only repairs node-pty helper permissions; nothing in the package collects or exfiltrates credentials to third parties.
network_egress agent_config_tamper credential_access download_execute code_execution persistence
Install hook is a benign node-pty permission repair info scripts/fix-node-pty-perms.js:13-35, package.json:12
postinstall runs scripts/fix-node-pty-perms.js, which resolves node-pty via createRequire and chmodSync()s prebuilds/darwin-*/spawn-helper to 0o755. No network, no spawn, no file writes outside node-pty's prebuilds directory; all branching is limited to darwin.
No install-time egress; lab run clean info lab report (andy_detonate)
Detonation of the postinstall hook exited 0 with 0 connect() calls, 0 DNS names and 0 HTTP requests. The canary report lists /home/andy/.npmrc as read, which is npm's own config load for `npm run-script`, not hook code (the hook only requires node:fs, node:path and node:module).
Network endpoints are vendor/registry/Node.js only info bin/update-notice.js:21-23, bin/managed-node.js:146
The complete set of hard-coded URLs in executable bin/ code: https://registry.npmjs.org/blun-king-cli and https://chat.blun.ai/blun-code-version.json (update notice, 2.5 s timeout, response size-capped, host allowlisted to blun.ai/.blun.ai in bin/update-notice.js:189) plus https://nodejs.org/dist/v24.15.0/... which is verified against pinned SHA-256 sums before extraction (bin/managed-node.js:12-37, 146-153).
Deliberate, documented integration with other agents' config files medium agent-spine-plugin/hooks/hooks.json:4-104, agent-spine-plugin/src/lib/source-roots.js:238-255
agent-spine-plugin reads host instruction sources (CLAUDE.md, CLAUDE.local.md, AGENTS.md/AGENTS.override.md, ~/.claude/settings.json, ~/.codex/config.toml) and registers hooks that run `node ${CLAUDE_PLUGIN_ROOT}/src/hook.js` on SessionStart/UserPromptSubmit/PreToolUse/Stop (agent-spine-plugin/hooks/hooks.json). This is the plugin's stated function (context preservation while injecting scoped memory) and the plugin is only activated when the user runs the blun/king CLI, but for an agent host it is a supply-chain-relevant write/read surface.
Credentials are used locally, not exfiltrated info agent-spine-plugin/src/lib/telegram-adapter.js:32-42, 99-102
Telegram bot tokens are read from the environment or ~/.blun/channels/telegram/.env, validated against /^\d{6,12}:[A-Za-z0-9_-]{30,80}$/ and sent only to https://api.telegram.org/bot<token>/getUpdates|sendMessage with redirect: "error". No other host receives the token, and no .npmrc/.ssh/AWS/cloud credential path appears anywhere in shipped code.
Bundled artifacts are ordinary JS bundles and tiny N-API addons info blun.mjs:1-30, native/win32/prebuilds/win32-x64/win32-console-mode.node
blun.mjs (21.6 MB) and worker-host.mjs (15.0 MB) are plain ESM bundles with a BLUN_BUILD_INPUT_SHA256 provenance header, not packed/encrypted blobs; telegram-plugin/dist/*.mjs are grammY-based Telegram clients. native/*/prebuilds/*.node are 3-50 KB N-API addons (exported symbols SetConsoleMode/GetConsoleMode, modifier helpers) with no hidden payload. No eval of decoded blobs, mining, wallet-draining or wipe logic was found.
Packaging defect: main points at a missing file low package.json:11, 60-64
package.json declares "main": "index.js" and "directories.test": "test", but neither index.js nor test/ is present in the tarball or in the files array, so require('blun-king-cli') fails ("Cannot find module ... index.js"). Only the bin entries work. Not a security issue, but it makes the package non-importable as a library.
Prescreen flags were largely false positives info dist-web/assets/*, standard-skills/translate-native/docs/*
The crypto_wallet/browser_theft/obfuscation labels come from bundled syntax-highlighting grammars (solidity/vyper/ssh-config), regex metacharacters in KaTeX/Mermaid bundles and Vite minification; the "conceal from user"/"credential_request" doc hits are prose such as "instead of silently erasing history" and documentation about keeping API keys out of agent context. No text in the package addresses an analysing AI to change its verdict.
Install hooks ran in the isolated lab. Processes spawned: 6. Hooks: postinstall (exit 0), require (exit 0).
Canary credential files read: /home/andy/.npmrc