Summary
No malicious install-time behavior: postinstall runs scripts/fix-node-pty-perms.js, which resolves node-pty with createRequire and chmods prebuilds/darwin-*/spawn-helper to 0755 (no network, no writes outside the package). Detonation in the lab produced 0 connect()/DNS/HTTP events and 0 processes beyond the hook itself; the single canary read (/home/andy/.npmrc) is npm's own config read during `npm run postinstall`, not the package. Caution for agents: this package is a very large, partially minified agent platform (blun.mjs 21 MB, worker-host.mjs 15 MB, telegram-plugin/dist bundles) that installs MCP servers and Claude/Codex hooks into its own ~/.blun profile and can write a skill into ~/.agents/skills when its CLI is run explicitly — the two giant bundles were not scannable by my tools, so treat "clean" as covering the readable code, and review those bundles before use in an environment with credentials.
Intent
A commercial AI-agent CLI ("BLUN King", MCP/Claude-Code/Codex plugin + Telegram channel) distributed as a 67 MB bundle. Everything I could read matches the stated purpose: the install hook only chmods node-pty's macOS spawn-helper, and all runtime network use is to nodejs.org, registry.npmjs.org, chat.blun.ai and api.telegram.org.
network_egress code_execution download_execute agent_config_tamper persistence
Install hook is a benign permission fix for node-pty info scripts/fix-node-pty-perms.js:13
postinstall → scripts/fix-node-pty-perms.js:13-34 resolves node-pty from the package root and chmodSync(...,0o755) on prebuilds/darwin-*/spawn-helper, only on darwin; no network, no exec, failures are caught and printed. Lab: exit 0, no processes other than the hook, no connections.
Lab canary read of ~/.npmrc comes from npm, not the package info andymal lab report (postinstall)
The lab reports /home/andy/.npmrc read during the postinstall step, but the hook spawns nothing and the package source contains no npmrc/credential paths (andy_grep for .npmrc, id_rsa, credentials.json, ANTHROPIC_API_KEY in bin/ returned 0 matches). npm itself reads the user config when running the script.
Node runtime bootstrap downloads from nodejs.org with pinned SHA-256 low bin/managed-node.js:145
bin/managed-node.js:12-37 pins archive names and sha256 per platform, downloadFile() restricts redirects to https and caps the archive at 100 MB, and ensureManagedNode verifies the hash before unpacking with /usr/bin/tar (bin/managed-node.js:112-153). This is download-and-execute but from the official Node distribution with integrity checking.
PowerShell helper is shipped base64+gzip-encoded and compiled in memory medium bin/private-paths.js:1061
bin/private-paths.js:1061-1116 gzips a C# ACL helper into WINDOWS_ACL_CSHARP_GZIP, base64s it, and PowerShell Add-Type's it to harden ACLs on BLUN's own private files; whoami.exe/powershell.exe are called by absolute System32 path with shell:false. Legitimate purpose, but the encoded-compiled-blob pattern will trip static scanners and is hard to audit.
Self-installed agent plugins and MCP registration medium bin/plugin-bootstrap.js:125
First CLI run copies telegram-plugin and agent-spine-plugin into $BLUN_HOME/plugins/managed and rewrites $BLUN_HOME/plugins/installed.json (bin/plugin-bootstrap.js:82-156); bin/standard-tools-bootstrap.js:203-231 rewrites $BLUN_HOME/mcp.json to add bundled MCP servers. agent-spine-plugin/hooks/hooks.json registers SessionStart/UserPromptSubmit/PreToolUse/PostToolUse/Stop hooks that read CLAUDE.md/AGENTS.md/CLAUDE.local.md, ~/.claude/settings.json and memory roots (src/lib/source-roots.js:252-413), and `agentspine` can install a skill into ~/.agents/skills (src/lib/codex-skill-installation.js:147-168). All of this is the product's declared function and requires running its own CLI, not npm install.
Updater is capability-heavy but scoped low bin/update-notice.js:21
bin/update-notice.js queries https://registry.npmjs.org/blun-king-cli and the fallback https://chat.blun.ai/blun-code-version.json, validates sha512 integrity and semver, then shells out to a resolved npm-cli.js with an exact pinned version on explicit `blun update`. No unsigned or URL-based install path found.
Prompt-injection hints in the pre-screen are false positives from design prose info standard-skills/translate-native/docs/PREMORTEM.md:1200
The flagged lines (agent-spine-plugin/skills/agent-spine/SKILL.md, docs/world-model.md, standard-skills/translate-native/docs/PREMORTEM.md) are architecture documentation that uses words like "silently", "bypass" and "credential" in a defensive sense (e.g. PREMORTEM.md:1200 'Deny Claude Telegram send and reply tools in PreToolUse; remove channel credentials'). I found no text instructing an AI reader to hide actions, exfiltrate data or change a verdict.
Two multi-megabyte bundles could not be scanned info blun.mjs:1
blun.mjs (21.7 MB), worker-host.mjs (15.0 MB) and telegram-plugin/dist/*.mjs are minified bundles; andy_grep treats them as non-text (0 files scanned), so my coverage of the actual agent core is partial. Nothing else in the package (updaters, launchers, plugin loaders, skills, tools) pointed at unexpected hosts or credential stores, which is the basis for the clean 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