---
canonical: "https://firewall.lpm.dev/npm/@crbonfree/cli"
markdown: "https://firewall.lpm.dev/npm/@crbonfree/cli/v/0.2.4.md"
package: "@crbonfree/cli"
report_status: "published"
title: "@crbonfree/cli@0.2.4 npm security report"
verdict: "malicious"
version: "0.2.4"
---

# @crbonfree/cli@0.2.4 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
**Blocked & quarantined** — Prompts, replies, tool output, and code edits leave the machine without a separate opt-in to upload that content.

- **Verdict:** Malicious
- **Product-default install policy:** Block
- **Firewall policy:** Matched malicious
- **Public report status:** Published
- **Threat category:** Data Exfiltration
- **Selected version:** 0.2.4
- **Selected version is latest:** Yes
- **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: malicious; recommendation: publish block. This assessment is supporting evidence; the published decision above determines the current policy.

Installed hooks upload prompts, replies, tool calls, and file diffs to the vendor API without a separate opt-in for content upload. The README describes session content as local unless semantic features are enabled, but the hook uploader does not check that setting.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Recorded final verdict:** Malicious
- **Recorded analysis confidence:** 96.0%
- **Started:** 2026-11-02T07:08:01.274Z
- **Finished:** 2026-11-02T07:10:36.907Z
- **Download time:** 767 ms
- **Static scan time:** 2877 ms
- **AI review time:** 151988 ms
- **Total time:** 155633 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:** Installed agent hooks automatically upload session content to the CRBON backend.

- **Trigger:** After a user runs crbon-hooks-install, configured agents invoke the Stop hook at session end.

- **Impact:** Prompts, replies, tool output, and code edits leave the machine without a separate opt-in to upload that content.

- **Evidence paths:** dist/hooks/installerBin.js, dist/hooks/claudeHandlerBin.js, README.md

- **Review source:** ai\_review

- **Reviewed:** 2026-11-02T07:10:36.907Z

### AI review details

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

- **Mechanism:** The handler collects message content, tool calls, and file diffs, then POSTs the record to the configured server’s /api/ingest endpoint with the CRBON API key. The default host is api.crbonfree.com.

- **Attack narrative:** After hooks are explicitly installed, session-end handlers collect prompts, replies, tool calls, and file diffs and upload them to the configured CRBON ingest endpoint. The README describes session content as local unless semantic features are enabled, but this uploader does not check that opt-in; it only applies folder-scope and redaction filters.

- **Rationale:** Installed hooks upload prompts, replies, tool calls, and file diffs to the vendor API without a separate opt-in for content upload. The README describes session content as local unless semantic features are enabled, but the hook uploader does not check that setting.

- **Network endpoints:** https://api.crbonfree.com/api/ingest

### Review decision

- **Verdict:** Malicious

- **Confidence:** 96.0%

- **Recommended action:** publish\_block

- **Intent class:** Malware

- **False-positive risk:** Low

- **Evidence for block:** The Claude transcript parser collects user and assistant message content., Uploaded session records include messages, tool calls, and file diffs., The Stop handler passes each completed session record to the uploader., The uploader applies folder-scope and redaction filters, then sends the record to the configured server; the default host is api.crbonfree.com., The uploader POSTs the payload to the server’s ingest path with the CRBON API key., The README says session content stays local unless semantic search and summaries are enabled., The installer registers a Stop hook that invokes the session handler.

- **Evidence against:** Hook installation requires running a separate installer command; package installation has no lifecycle script., The uploader supports folder exclusions and redaction before sending.

## Affected versions and remediation

This report applies to @crbonfree/cli@0.2.4.

- Avoid installing @crbonfree/cli@0.2.4. Remove it from direct dependencies and check your lockfile for transitive copies.
- Choose an independently verified alternative or release. This report does not establish that other versions are safe.
- If this version ran, investigate the affected machine and build environment. Rotate credentials it could access and rebuild from a trusted environment.

## Public findings

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

Package declares npm scripts.

### 2. High: Child Process
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** dist/updateBin.js
- **Public source:** [View source](<https://unpkg.com/@crbonfree/cli@0.2.4/dist/updateBin.js>)

Package source references child process execution.

Public source snippet (untrusted):

```javascript
L456: // src/openBrowser.ts
L457: import { execFile } from "child_process";
L458: import { readFileSync as readFileSync6 } from "fs";
```

### 3. High: Shell
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** dist/mechanisms/compressCliBin.js
- **Public source:** [View source](<https://unpkg.com/@crbonfree/cli@0.2.4/dist/mechanisms/compressCliBin.js>)

Package source references shell execution.

Public source snippet (untrusted):

```javascript
L496: const result = spawnSync(command, {
L497: shell: true,
L498: encoding: "utf-8",
```

### 4. Medium: Dynamic Require
- **Category:** Source
- **Confidence:** 75.0%
- **Path:** dist/updateBin.js
- **Public source:** [View source](<https://unpkg.com/@crbonfree/cli@0.2.4/dist/updateBin.js>)

Package source references dynamic require/import behavior.

Public source snippet (untrusted):

```javascript
L687: const modPath = "./openclawPlugin.js";
L688: const mod = await import(modPath);
L689: if (typeof mod.installOpenClawPlugin === "function") {
```

### 5. Low: Weak Crypto
- **Category:** Source
- **Confidence:** 64.0%
- **Path:** dist/mechanisms/readCacheCliBin.js
- **Public source:** [View source](<https://unpkg.com/@crbonfree/cli@0.2.4/dist/mechanisms/readCacheCliBin.js>)

Package source references weak cryptographic algorithms.

Public source snippet (untrusted):

```javascript
L3: // src/mechanisms/readCacheCli.ts
L4: import { spawnSync } from "child_process";
L5: 
...
L47: if (bytesRead === 0) break;
L48: const parts = decoder.write(buffer.subarray(0, bytesRead)).split("\n");
L49: const tail = parts.pop() ?? "";
...
L69: try {
L70: yield JSON.parse(line);
L71: } catch {
...
L80: function configDir() {
L81: return process.env.CRBON_HOME ?? join3(homedir2(), ".crbon");
L82: }
```

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

Package source references network APIs.

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

Package source references environment variables.

### 8. Medium: Install Persistence
- **Category:** Source
- **Confidence:** 75.0%
- **Path:** dist/cli.js
- **Public source:** [View source](<https://unpkg.com/@crbonfree/cli@0.2.4/dist/cli.js>)

Source writes installer persistence such as shell profile or service configuration.

Public source snippet (untrusted):

```javascript
L230: try {
L231: payload = JSON.parse(trimmed);
L232: } catch {
...
L494: if (bytesRead === 0) break;
L495: const parts = decoder.write(buffer.subarray(0, bytesRead)).split("\n");
L496: const tail = parts.pop() ?? "";
...
L543: function realFolder(input, env = {}) {
L544: const home = env.home ?? homedir();
L545: const platform = env.platform ?? process.platform;
L546: const expanded = input === "~" ? home : input.startsWith("~/") ? join2(home, input.slice(2)) : input;
...
L748: function configDir() {
L749: return process.env.CRBON_HOME ?? join3(homedir2(), ".crbon");
```

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

Package source references filesystem APIs.

### 10. High: Same File Env Network Execution
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** dist/proxyServerBin.js
- **Public source:** [View source](<https://unpkg.com/@crbonfree/cli@0.2.4/dist/proxyServerBin.js>)

A single source file combines environment access, network access, and code or shell execution; review context before blocking.

Public source snippet (untrusted):

```javascript
L20: });
L21: import { spawn } from "child_process";
L22: function buildGatewayCommand(port) {
...
L25: args: ["-y", GATEWAY_PACKAGE, `--port=${port}`],
L26: env: { ...process.env, PORT: String(port) }
L27: };
...
L33: try {
L34: await doFetch(url, { signal: AbortSignal.timeout(2e3) });
L35: return true;
```

### 11. High: Credential Redirect Persistence
- **Category:** Source
- **Confidence:** 94.0%
- **Path:** dist/cli.js
- **Public source:** [View source](<https://unpkg.com/@crbonfree/cli@0.2.4/dist/cli.js>)

Manifest-reachable source sends a prompted API credential to a fixed unofficial gateway and persists the redirection.

Public source snippet (untrusted):

```javascript
Manifest-reachable source captures an API credential, sends it to a fixed unofficial gateway, and persists that redirection in agent or shell configuration.
dist/cli.js:
writeFileSync
function writeFileAtomic(path, content, mode = 384) {
writeFileSync(tmp, content, { encoding: "utf-8", mode });
writeFileAtomic(path, `${JSON.stringify(data, null, 2)}
writeFileAtomic(configPath(), JSON.stringify(cfg, null, 2), 384);
import { existsSync as existsSync16, readFileSync as readFileSync16, rmSync as rmSync3, writeFileSync as writeFileSync5 } from "fs";
writeFileSync5(path, `${JSON.stringify(updated, null, 2)}
const target = provider === "claude" ? [base([".claude", "settings.json"]), removeFromSettings] : provider === "gemini" ? [base([".gemini", "settings.json"]), removeFromSettings] :...
```

### 12. High: Command Output Exfiltration
- **Category:** Source
- **Confidence:** 82.0%
- **Path:** dist/cli.js
- **Public source:** [View source](<https://unpkg.com/@crbonfree/cli@0.2.4/dist/cli.js>)

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

Public source snippet (untrusted):

```javascript
L11627: init_config();
L11628: import { spawnSync as spawnSync3 } from "child_process";
L11629: import { homedir as homedir11 } from "os";
...
L11633: function promptHidden(question) {
L11634: return new Promise((resolve6) => {
L11635: const rl = createInterface4({
L11636: input: process.stdin,
L11637: output: process.stderr,
L11638: terminal: true
L11639: });
L11640: process.stderr.write(question);
L11641: rl._writeToOutput = () => {
```

### 13. High: Sandbox Evasion Gated Capability
- **Category:** Source
- **Confidence:** 84.0%
- **Path:** dist/proxyServerBin.js
- **Public source:** [View source](<https://unpkg.com/@crbonfree/cli@0.2.4/dist/proxyServerBin.js>)

Source gates dangerous network, credential, or execution behavior behind CI, host, platform, time, or geo fingerprint checks.

Public source snippet (untrusted):

```javascript
L20: });
L21: import { spawn } from "child_process";
L22: function buildGatewayCommand(port) {
...
L25: args: ["-y", GATEWAY_PACKAGE, `--port=${port}`],
L26: env: { ...process.env, PORT: String(port) }
L27: };
...
L33: try {
L34: await doFetch(url, { signal: AbortSignal.timeout(2e3) });
L35: return true;
...
L58: }
L59: proc.stdout?.on("data", (c) => process.stderr.write(`[gateway] ${c}`));
L60: proc.stderr?.on("data", (c) => process.stderr.write(`[gateway] ${c}`));
```

### 14. High: External Ai Agent Control Surface Mutation
- **Category:** Source
- **Confidence:** 94.0%
- **Path:** dist/cli.js
- **Public source:** [View source](<https://unpkg.com/@crbonfree/cli@0.2.4/dist/cli.js>)

Runtime or CLI source writes behavior-bearing configuration into a user or project AI-agent control surface.

Public source snippet (untrusted):

```javascript
Runtime or CLI code links a write operation to an explicit external AI-agent control path:
const modpath = "./openclawplugin.js";
    const mod = await import(modpath);
    if (typeof mod.uninstallopenclawplugin === "function") {
      const { removedfiles, removedconfig } = mod.uninstallopenclawplugin({
        openclawdir: homedir ? join20(homedir, ".openclaw") : void 0
      });
      const removed = [];
      if (removedfiles) removed.push("plugin files");
      if (removedconfig) removed.push("config patch");
      console.error(
        removed.length > 0 ? `removed crbon openclaw ${removed.join(" and ")}.` : "no crbon openclaw plugin found to remove."
      );
    }
  } catch (exc) {
    console.error(`warning: openclaw plugin uninstall unavailable (${exc}).`);
  }
}
async function
```

### 15. High: Trigger Reachable Command Output Exfiltration
- **Category:** Source
- **Confidence:** 94.0%
- **Path:** dist/cli.js
- **Public source:** [View source](<https://unpkg.com/@crbonfree/cli@0.2.4/dist/cli.js>)

A manifest entrypoint or package-local install chain reaches command-output exfiltration behavior.

Public source snippet (untrusted):

```javascript
Trigger-reachable command-output exfiltration chain: manifest.bin -> dist/cli.js
L11627: init_config();
L11628: import { spawnSync as spawnSync3 } from "child_process";
L11629: import { homedir as homedir11 } from "os";
...
L11633: function promptHidden(question) {
L11634: return new Promise((resolve6) => {
L11635: const rl = createInterface4({
L11636: input: process.stdin,
L11637: output: process.stderr,
L11638: terminal: true
L11639: });
L11640: process.stderr.write(question);
L11641: rl._writeToOutput = () => {
```

### 16. High: Trigger Reachable Persistence
- **Category:** Source
- **Confidence:** 94.0%
- **Path:** dist/cli.js
- **Public source:** [View source](<https://unpkg.com/@crbonfree/cli@0.2.4/dist/cli.js>)

A manifest entrypoint or package-local install chain reaches persistence behavior.

Public source snippet (untrusted):

```javascript
Trigger-reachable persistence chain: manifest.bin -> dist/cli.js
L230: try {
L231: payload = JSON.parse(trimmed);
L232: } catch {
...
L494: if (bytesRead === 0) break;
L495: const parts = decoder.write(buffer.subarray(0, bytesRead)).split("\n");
L496: const tail = parts.pop() ?? "";
...
L543: function realFolder(input, env = {}) {
L544: const home = env.home ?? homedir();
L545: const platform = env.platform ?? process.platform;
L546: const expanded = input === "~" ? home : input.startsWith("~/") ? join2(home, input.slice(2)) : input;
...
L748: function configDir() {
L749: return process.env.CRBON_HOME ?? join3(homedir2(), ".crbon");
```

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

Package source contains high-entropy string patterns.

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

Package source contains URL literals.

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

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

### 20. High: Semantic Analysis Limited
- **Category:** Scanner Coverage
- **Confidence:** 100.0%
- **Path:** dist/hooks/installerBin.js\#virtual:normalized:round1
- **Public source:** [View source](<https://unpkg.com/@crbonfree/cli@0.2.4/dist/hooks/installerBin.js%23virtual%3Anormalized%3Around1>)

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

Public source snippet (untrusted):

```text
stage = ast_semantic_analysis; reason = ast_parse_error; limitedFiles = 2
```

### 21. Critical: Previous Version Dangerous Delta
- **Category:** Supply Chain
- **Confidence:** 93.0%
- **Path:** dist/hooks/installerBin.js
- **Public source:** [View source](<https://unpkg.com/@crbonfree/cli@0.2.4/dist/hooks/installerBin.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 = @crbonfree/cli@0.2.3
matchedIdentity = npm:QGNyYm9uZnJlZS9jbGk:0.2.3
similarity = 0.722
summary = stored previous version shares package body but lacks this dangerous source file
```

## Dependencies and install lifecycle
- **Lifecycle scripts present:** No

- **Dependencies:** 10
- **Optional dependencies:** 0
- **Peer dependencies:** 0
- **Development dependencies:** 10
- **Published dependency-graph edges:** 10

### Published dependency entries
- @clack/prompts 1.8.1 (Dependency)
- @modelcontextprotocol/sdk ^1.0.0 (Dependency)
- @tokenlens/helpers ^1.3.1 (Dependency)
- @tokenlens/models ^1.3.0 (Dependency)
- better-sqlite3 ^12.11.1 (Dependency)
- commander ^12.0.0 (Dependency)
- diff ^7.0.0 (Dependency)
- gpt-tokenizer ^3.4.0 (Dependency)
- tokenlens ^1.3.1 (Dependency)
- zod ^4.0.0 (Dependency)

## Package metadata
- **Package:** @crbonfree/cli
- **Ecosystem:** npm
- **Version:** 0.2.4
- **License:** MIT
- **Version published:** 2026-11-02T06:59:48.014Z
- **Package first seen:** 2026-07-28T21:18:46.893Z
- **Package last seen:** 2026-11-02T07:10:36.907Z
- **Known versions:** 14
- **Latest version:** 0.2.4
- **Appeal under review:** No
- **Description:** See the carbon footprint of your AI coding agents, and give them a shared memory across every tool.
- **Keywords:** crbon, carbon, co2e, ai, coding-agent, memory, mcp, token-usage, telemetry, cli
- **Runtime engines:** node: \>=20
- **Artifact files:** 21
- **Artifact unpacked size:** 1,001,479 bytes
- **Artifact signatures:** 2
- **Attestations:** No

## References
- [HTML security report](<https://firewall.lpm.dev/npm/@crbonfree/cli/v/0.2.4>)
- [Homepage](<https://crbonfree.com/>)
