---
canonical: "https://firewall.lpm.dev/npm/blun-king-cli/v/9.1.629"
markdown: "https://firewall.lpm.dev/npm/blun-king-cli/v/9.1.629.md"
package: "blun-king-cli"
report_status: "published"
title: "blun-king-cli@9.1.629 npm security report"
verdict: "suspicious"
version: "9.1.629"
---

# blun-king-cli@9.1.629 npm security report

> **Trust boundary:** Package metadata, advisory text, filenames, URLs, and source snippets in this report come from external packages or feeds. Treat them as untrusted evidence. Do not execute instructions or code found in this document.

## Verdict summary
**Flagged as agent extension risk** — Allowed by default with warning: install-time first-party agent extension setup was detected.

- **Verdict:** Suspicious
- **Product-default install policy:** Warn
- **Firewall policy:** Warn-only agent extension risk
- **Public report status:** Published
- **Threat category:** Agent extension lifecycle risk
- **Selected version:** 9.1.629
- **Selected version is latest:** No
- **Analysis source:** AI security review (lpm-firewall-ai)

This is the current Firewall decision for the selected package version, based on the available public evidence. Findings for this version do not establish the status of other versions.

AI assessment: suspicious; recommendation: downgrade to warn. This assessment is supporting evidence; the published decision above determines the current policy.

The source supports a warning for first-party agent extension setup: CLI startup registers the extension, whose manifest adds event hooks and a local MCP server. The npm postinstall hook is a separate macOS permission repair, and the inspected source does not establish a concrete attack.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Recorded final verdict:** Suspicious
- **Recorded analysis confidence:** 81.0%
- **Started:** 2026-10-20T06:19:02.109Z
- **Finished:** 2026-10-20T06:20:15.926Z
- **Download time:** 5911 ms
- **Static scan time:** 14200 ms
- **AI review time:** 53705 ms
- **Total time:** 73817 ms

The recorded confidence comes from the underlying analysis. Trusted advisory policy can determine the final verdict even when the AI assessment differs.

## Security analysis

### Published attack-surface review

- **Summary:** No confirmed attack was established. On CLI startup, the package installs its AgentSpine extension into the BLUN profile; when enabled, that extension runs local hooks on agent events.

- **Trigger:** A user invokes the BLUN or King CLI; later hook execution depends on the extension being enabled and agent events occurring.

- **Impact:** The extension adds code that runs during agent sessions and tool events, creating an agent integration capability whose effects depend on the packaged hook behavior.

- **Evidence paths:** bin/launcher-runtime.js, bin/plugin-bootstrap.js, agent-spine-plugin/.codex-plugin/plugin.json, agent-spine-plugin/hooks/codex.json

- **Review source:** ai\_review

- **Reviewed:** 2026-10-20T06:20:15.926Z

### AI review details

- **Review stage:** source\_first\_review

- **Mechanism:** The launcher registers the packaged extension in the BLUN profile, and its Codex manifest declares event hooks and a local MCP server.

- **Rationale:** The source supports a warning for first-party agent extension setup: CLI startup registers the extension, whose manifest adds event hooks and a local MCP server. The npm postinstall hook is a separate macOS permission repair, and the inspected source does not establish a concrete attack.

- **Files touched:** bin/launcher-runtime.js, bin/plugin-bootstrap.js, agent-spine-plugin/.codex-plugin/plugin.json, agent-spine-plugin/hooks/codex.json

### Review decision

- **Verdict:** Suspicious

- **Confidence:** 81.0%

- **Recommended action:** downgrade\_to\_warn

- **Intent class:** Dangerous Capability

- **False-positive risk:** Medium

- **Evidence for warning:** Invoking the CLI installs the AgentSpine plugin into the BLUN profile., The Codex plugin registers hooks that run its local hook program on agent events, including session and prompt events., The plugin also exposes a local MCP server and skills through its plugin manifest., The npm postinstall hook is a macOS-only permission repair for node-pty helpers.

- **Evidence against:** The inspected source does not establish credential transfer, destructive behavior, or an npm install hook that modifies a foreign agent configuration.

## Affected versions and remediation

This report applies to blun-king-cli@9.1.629.

- Review the evidence and your use of blun-king-cli@9.1.629 before allowing it. Restrict the permissions described in this report.
- Choose an independently verified alternative or release. This report does not establish that other versions are safe.

## Public findings

### 1. High: Install Time Lifecycle Scripts
- **Category:** Manifest
- **Confidence:** 90.0%
- **Path:** package.json
- **Public source:** [View source](<https://unpkg.com/blun-king-cli@9.1.629/package.json>)

Package defines install-time lifecycle scripts.

Public source snippet (untrusted):

```json
scripts.postinstall = node scripts/fix-node-pty-perms.js
```

### 2. Low: Scripts Present
- **Category:** Manifest
- **Confidence:** 100.0%

Package declares npm scripts.

### 3. High: Child Process
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** bin/update-lease.js
- **Public source:** [View source](<https://unpkg.com/blun-king-cli@9.1.629/bin/update-lease.js>)

Package source references child process execution.

Public source snippet (untrusted):

```javascript
L7: const path = require('node:path');
L8: const { spawn } = require('node:child_process');
L9:
```

### 4. High: Shell
- **Category:** Source
- **Confidence:** 85.0%

Package source references shell execution.

### 5. Low: Eval
- **Category:** Source
- **Confidence:** 45.0%
- **Path:** telegram-plugin/dist/mcp-server.mjs
- **Public source:** [View source](<https://unpkg.com/blun-king-cli@9.1.629/telegram-plugin/dist/mcp-server.mjs>)

Package source references a known benign dynamic code generation pattern.

Public source snippet (untrusted):

```javascript
L168: try {
L169: new Function("");
L170: return true;
```

### 6. Medium: Dynamic Require
- **Category:** Source
- **Confidence:** 75.0%
- **Path:** bin/agentspine-king-worker-host.mjs
- **Public source:** [View source](<https://unpkg.com/blun-king-cli@9.1.629/bin/agentspine-king-worker-host.mjs>)

Package source references dynamic require/import behavior.

Public source snippet (untrusted):

```javascript
L47: }
L48: const { withOwnedFileLock } = await import(pathToFileURL(path.join(packageRoot,
L49: 'agent-spine-plugin/src/lib/owned-file-lock.js')).href);
```

### 7. Medium: Unsafe Vm Context
- **Category:** Source
- **Confidence:** 68.0%
- **Path:** bin/verify-agent-behavior.cjs
- **Public source:** [View source](<https://unpkg.com/blun-king-cli@9.1.629/bin/verify-agent-behavior.cjs>)

Package source executes code through a VM context API.

Public source snippet (untrusted):

```javascript
L14: function verifyAgentBehavior(packageRoot, reportParent) {
L15: const parent = reportParent || path.join(os.homedir(), '.blun', 'diagnostics', 'package-contracts');
L16: fs.mkdirSync(parent, { recursive: true });
...
L23: };
L24: const read = file => JSON.parse(fs.readFileSync(file, 'utf8'));
L25: const core = fs.readFileSync(path.join(packageRoot, 'blun.mjs'), 'utf8');
...
L93: assert.equal(gate({ ...message, replyToUsername: 'ExampleBot' }, 'ExampleBot').action, 'deliver');
L94: assert.equal(gate({ ...message, chatType: 'private', chatId: 'operator' }, 'ExampleBot').action, 'deliver');
L95: passed.push('registered-bridge-drops-unmentioned-groups-preserves-mentions-replies-dms');
```

### 8. Medium: Network
- **Category:** Source
- **Confidence:** 75.0%

Package source references network APIs.

### 9. Medium: Environment Vars
- **Category:** Source
- **Confidence:** 75.0%

Package source references environment variables.

### 10. Low: Filesystem
- **Category:** Source
- **Confidence:** 70.0%

Package source references filesystem APIs.

### 11. High: Command Output Exfiltration
- **Category:** Source
- **Confidence:** 82.0%
- **Path:** telegram-plugin/dist/bridge.mjs
- **Public source:** [View source](<https://unpkg.com/blun-king-cli@9.1.629/telegram-plugin/dist/bridge.mjs>)

Source combines command execution, command-output handling, and outbound requests; review data flow before blocking.

Public source snippet (untrusted):

```javascript
L5: import { homedir } from "node:os";
L6: import { spawn } from "node:child_process";
L7: import { Readable, Writable } from "node:stream";
...
L35: * Check out the
L36: * [documentation](https://grammy.dev/ref/core/composer#on)
L37: * of `bot.on` for examples. In addition, the
...
L219: is_upgrade_separate: {},
L220: is_private: {}
L221: };
...
L284: video_chat_participants_invited: {},
L285: web_app_data: {}
L286: };
```

### 12. Low: High Entropy Strings
- **Category:** Supply Chain
- **Confidence:** 55.0%

Package source contains high-entropy string patterns.

### 13. Low: Telemetry
- **Category:** Supply Chain
- **Confidence:** 70.0%

Package source references telemetry or analytics APIs.

### 14. Low: Url Strings
- **Category:** Supply Chain
- **Confidence:** 65.0%

Package source contains URL literals.

### 15. Medium: Ships Native Binary
- **Category:** Artifact Inventory
- **Confidence:** 75.0%
- **Path:** native/darwin/prebuilds/darwin-x64/darwin-modifiers.node
- **Public source:** [View source](<https://unpkg.com/blun-king-cli@9.1.629/native/darwin/prebuilds/darwin-x64/darwin-modifiers.node>)

Package ships native binary artifacts.

Public source snippet (untrusted):

```text
path = native/darwin/prebuilds/darwin-x64/darwin-modifiers.node
kind = native_binary
sizeBytes = 12776
magicHex = [redacted]
```

### 16. Medium: Ships Build Helper
- **Category:** Artifact Inventory
- **Confidence:** 70.0%
- **Path:** standard-tools/language-guard/language\_gateway.py
- **Public source:** [View source](<https://unpkg.com/blun-king-cli@9.1.629/standard-tools/language-guard/language_gateway.py>)

Package ships non-JavaScript build or shell helper files.

Public source snippet (untrusted):

```python
path = standard-tools/language-guard/language_gateway.py
kind = build_helper
sizeBytes = 2518
magicHex = [redacted]
```

### 17. Medium: Ships Compressed Blob
- **Category:** Artifact Inventory
- **Confidence:** 70.0%
- **Path:** dist-web/vis/index.html.gz
- **Public source:** [View source](<https://unpkg.com/blun-king-cli@9.1.629/dist-web/vis/index.html.gz>)

Package ships compressed or archive-like blobs.

Public source snippet (untrusted):

```text
path = dist-web/vis/index.html.gz
kind = compressed_blob
sizeBytes = 125235
magicHex = [redacted]
```

### 18. High: Ships High Entropy Blob
- **Category:** Artifact Inventory
- **Confidence:** 75.0%
- **Path:** dist-web/vis/index.html.gz
- **Public source:** [View source](<https://unpkg.com/blun-king-cli@9.1.629/dist-web/vis/index.html.gz>)

Package ships high-entropy non-source blobs.

Public source snippet (untrusted):

```text
path = dist-web/vis/index.html.gz
kind = high_entropy_blob
sizeBytes = 125235
magicHex = [redacted]
```

### 19. Medium: Oversized Source File
- **Category:** Artifact Inventory
- **Confidence:** 70.0%
- **Path:** blun.mjs
- **Public source:** [View source](<https://unpkg.com/blun-king-cli@9.1.629/blun.mjs>)

Package contains source files above the normal full-analysis size ceiling.

Public source snippet (untrusted):

```javascript
path = blun.mjs
kind = oversized_source_file
sizeBytes = 23014289
magicHex = [redacted]
```

### 20. Medium: Oversized Cli Entrypoint
- **Category:** Artifact Inventory
- **Confidence:** 80.0%
- **Path:** blun.mjs
- **Public source:** [View source](<https://unpkg.com/blun-king-cli@9.1.629/blun.mjs>)

Package contains an oversized executable-looking CLI entrypoint.

Public source snippet (untrusted):

```javascript
path = blun.mjs
kind = oversized_cli_entrypoint
sizeBytes = 23014289
magicHex = [redacted]
```

### 21. Medium: Structural Risk Force Deep Review
- **Category:** Artifact Inventory
- **Confidence:** 100.0%

Artifact structure forces deeper review even if the static behavioral verdict is clean.

### 22. High: Semantic Analysis Limited
- **Category:** Scanner Coverage
- **Confidence:** 100.0%
- **Path:** agent-spine-plugin/scripts/check-install.js
- **Public source:** [View source](<https://unpkg.com/blun-king-cli@9.1.629/agent-spine-plugin/scripts/check-install.js>)

A bounded semantic-analysis stage reached its safety limit; remaining detectors completed, but this package requires AI review.

Public source snippet (untrusted):

```javascript
stage = ast_semantic_analysis; reason = ast_trace_path_limit_exceeded; limitedFiles = 15
```

### 23. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** bin/update-lease.js
- **Public source:** [View source](<https://unpkg.com/blun-king-cli@9.1.629/bin/update-lease.js>)

Source file is highly similar to a previously finalized malicious package; route for source-aware review.

Public source snippet (untrusted):

```javascript
matchType = normalized_sha256
matchedPackage = blun-king-cli@9.1.519
matchedPath = bin/update-lease.js
matchedIdentity = npm:Ymx1bi1raW5nLWNsaQ:9.1.519
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 24. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** bin/managed-node.js
- **Public source:** [View source](<https://unpkg.com/blun-king-cli@9.1.629/bin/managed-node.js>)

Source file is highly similar to a previously finalized malicious package; route for source-aware review.

Public source snippet (untrusted):

```javascript
matchType = normalized_sha256
matchedPackage = blun-king-cli@9.1.519
matchedPath = bin/managed-node.js
matchedIdentity = npm:Ymx1bi1raW5nLWNsaQ:9.1.519
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 25. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 95.0%
- **Path:** agent-spine-plugin/scripts/run-checks.js
- **Public source:** [View source](<https://unpkg.com/blun-king-cli@9.1.629/agent-spine-plugin/scripts/run-checks.js>)

Source file is highly similar to a previously finalized malicious package; route for source-aware review.

Public source snippet (untrusted):

```javascript
matchType = token_shingles
matchedPackage = blun-king-cli@9.1.519
matchedPath = agent-spine-plugin/scripts/run-checks.js
matchedIdentity = npm:Ymx1bi1raW5nLWNsaQ:9.1.519
similarity = 1.000
shingleOverlap = 48
summary = source token shingles overlapped finalized malicious source
```

### 26. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** agent-spine-plugin/src/lib/peer-transport.js
- **Public source:** [View source](<https://unpkg.com/blun-king-cli@9.1.629/agent-spine-plugin/src/lib/peer-transport.js>)

Source file is highly similar to a previously finalized malicious package; route for source-aware review.

Public source snippet (untrusted):

```javascript
matchType = normalized_sha256
matchedPackage = blun-king-cli@9.1.519
matchedPath = agent-spine-plugin/src/lib/peer-transport.js
matchedIdentity = npm:Ymx1bi1raW5nLWNsaQ:9.1.519
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 27. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** agent-spine-plugin/src/lib/sqlite-transport.js
- **Public source:** [View source](<https://unpkg.com/blun-king-cli@9.1.629/agent-spine-plugin/src/lib/sqlite-transport.js>)

Source file is highly similar to a previously finalized malicious package; route for source-aware review.

Public source snippet (untrusted):

```javascript
matchType = normalized_sha256
matchedPackage = blun-king-cli@9.1.519
matchedPath = agent-spine-plugin/src/lib/sqlite-transport.js
matchedIdentity = npm:Ymx1bi1raW5nLWNsaQ:9.1.519
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 28. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** bin/node-version.js
- **Public source:** [View source](<https://unpkg.com/blun-king-cli@9.1.629/bin/node-version.js>)

Source file is highly similar to a previously finalized malicious package; route for source-aware review.

Public source snippet (untrusted):

```javascript
matchType = normalized_sha256
matchedPackage = blun-king-cli@9.1.519
matchedPath = bin/node-version.js
matchedIdentity = npm:Ymx1bi1raW5nLWNsaQ:9.1.519
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 29. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** dist-web/assets/chunk-5RXB4S5H-BfZa4yDH.js
- **Public source:** [View source](<https://unpkg.com/blun-king-cli@9.1.629/dist-web/assets/chunk-5RXB4S5H-BfZa4yDH.js>)

Source file is highly similar to a previously finalized malicious package; route for source-aware review.

Public source snippet (untrusted):

```javascript
matchType = normalized_sha256
matchedPackage = @jait/gateway@0.1.848
matchedPath = web-dist/assets/chunk-5RXB4S5H-CK_tVTHM.js
matchedIdentity = npm:QGphaXQvZ2F0ZXdheQ:0.1.848
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 30. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** dist-web/assets/chunk-5RXB4S5H-D5ILttmz.js
- **Public source:** [View source](<https://unpkg.com/blun-king-cli@9.1.629/dist-web/assets/chunk-5RXB4S5H-D5ILttmz.js>)

Source file is highly similar to a previously finalized malicious package; route for source-aware review.

Public source snippet (untrusted):

```javascript
matchType = normalized_sha256
matchedPackage = @jait/gateway@0.1.848
matchedPath = web-dist/assets/chunk-5RXB4S5H-CK_tVTHM.js
matchedIdentity = npm:QGphaXQvZ2F0ZXdheQ:0.1.848
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 31. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** dist-web/assets/diagram-Q27KOJAE-hy\_T73PK.js
- **Public source:** [View source](<https://unpkg.com/blun-king-cli@9.1.629/dist-web/assets/diagram-Q27KOJAE-hy_T73PK.js>)

Source file is highly similar to a previously finalized malicious package; route for source-aware review.

Public source snippet (untrusted):

```javascript
matchType = normalized_sha256
matchedPackage = blun-king-cli@9.1.519
matchedPath = dist-web/assets/diagram-Q27KOJAE-hy_T73PK.js
matchedIdentity = npm:Ymx1bi1raW5nLWNsaQ:9.1.519
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 32. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** dist-web/assets/diagram-Q27KOJAE-pA\_MUCUf.js
- **Public source:** [View source](<https://unpkg.com/blun-king-cli@9.1.629/dist-web/assets/diagram-Q27KOJAE-pA_MUCUf.js>)

Source file is highly similar to a previously finalized malicious package; route for source-aware review.

Public source snippet (untrusted):

```javascript
matchType = normalized_sha256
matchedPackage = blun-king-cli@9.1.519
matchedPath = dist-web/assets/diagram-Q27KOJAE-D1mYQ_cI.js
matchedIdentity = npm:Ymx1bi1raW5nLWNsaQ:9.1.519
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 33. Critical: Previous Version Dangerous Delta
- **Category:** Supply Chain
- **Confidence:** 93.0%
- **Path:** bin/launcher-runtime.js
- **Public source:** [View source](<https://unpkg.com/blun-king-cli@9.1.629/bin/launcher-runtime.js>)

This package version adds a dangerous source file absent from the previous stored version; route for source-aware review.

Public source snippet (untrusted):

```javascript
matchType = previous_version_dangerous_delta
matchedPackage = blun-king-cli@9.1.624
matchedIdentity = npm:Ymx1bi1raW5nLWNsaQ:9.1.624
similarity = 0.883
summary = stored previous version shares package body but lacks this dangerous source file
```

## Dependencies and install lifecycle
- **Lifecycle scripts present:** Yes
- **Published lifecycle scripts:** postinstall
- **Dependencies:** 1
- **Optional dependencies:** 2
- **Peer dependencies:** 0
- **Development dependencies:** 0
- **Published dependency-graph edges:** 3

### Published dependency entries
- quickjs-emscripten 0.32.0 (Dependency)
- @mariozechner/clipboard ^0.3.9 (OptionalDependency)
- node-pty 1.2.0-beta.15 (OptionalDependency)

## Package metadata
- **Package:** blun-king-cli
- **Ecosystem:** npm
- **Version:** 9.1.629
- **License:** MIT
- **Version published:** 2026-10-19T20:24:14.297Z
- **Package first seen:** 2026-08-22T06:13:35.151Z
- **Package last seen:** 2026-11-23T17:26:30.885Z
- **Known versions:** 371
- **Latest version:** 9.1.668
- **Appeal under review:** No
- **Description:** BLUN CLI - your own AI agent with a Telegram channel. Get it done. With BLUN.
- **Author:** BLUN
- **Maintainers:** blunking
- **Keywords:** blun, ai, agent, cli, assistant
- **Runtime engines:** node: \>=24.15.0
- **Supported OS:** darwin, linux, win32
- **Supported CPU:** x64, arm64
- **Artifact files:** 937
- **Artifact unpacked size:** 68,212,817 bytes
- **Artifact signatures:** 2
- **Attestations:** No

## References
- [HTML security report](<https://firewall.lpm.dev/npm/blun-king-cli/v/9.1.629>)
