---
canonical: "https://firewall.lpm.dev/npm/@guangnao/agent-cli/v/1.6.5"
markdown: "https://firewall.lpm.dev/npm/@guangnao/agent-cli/v/1.6.5.md"
package: "@guangnao/agent-cli"
report_status: "published"
title: "@guangnao/agent-cli@1.6.5 npm security report"
verdict: "clean"
version: "1.6.5"
---

# @guangnao/agent-cli@1.6.5 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
**Allowed — no malicious behavior detected** — 16 low-signal patterns reviewed and cleared.

- **Verdict:** Clean
- **Product-default install policy:** Allow
- **Firewall policy:** No policy match
- **Public report status:** Published
- **Threat category:** None published
- **Selected version:** 1.6.5
- **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: clean; recommendation: mark clean. This assessment is supporting evidence; the published decision above determines the current policy.

The package is an AI coding CLI whose shell, file, and network capabilities serve its stated purpose. Credentials are used with their corresponding provider, and the only automatic update behavior updates this package itself.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Recorded final verdict:** Clean
- **Recorded analysis confidence:** 88.0%
- **Started:** 2026-11-12T06:50:57.320Z
- **Finished:** 2026-11-12T06:51:34.832Z
- **Download time:** 755 ms
- **Static scan time:** 1770 ms
- **AI review time:** 34986 ms
- **Total time:** 37512 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 attack was identified. The inspected execution, network, credential, and update behavior fits the advertised AI coding CLI.

- **Trigger:** Running the gcli or agent-cli command; provider requests occur during use, and the update check runs in interactive mode.

- **Impact:** No source evidence showed credentials being sent to an unrelated host or other malicious behavior.

- **Review source:** ai\_review

- **Reviewed:** 2026-11-12T06:51:34.832Z

### AI review details

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

- **Mechanism:** The CLI sends configured credentials to the selected provider, refreshes Codex credentials through OpenAI, and may use npm to update its own package.

- **Rationale:** The package is an AI coding CLI whose shell, file, and network capabilities serve its stated purpose. Credentials are used with their corresponding provider, and the only automatic update behavior updates this package itself.

- **Files touched:** ~/.agentos/config.json, ~/.codex/auth.json

- **Network endpoints:** auth.openai.com, api.openai.com, api.anthropic.com, api.deepseek.com, generativelanguage.googleapis.com, api.guangnao.com

### Review decision

- **Verdict:** Clean

- **Confidence:** 88.0%

- **Recommended action:** mark\_clean

- **Intent class:** Benign

- **False-positive risk:** Low

- **Evidence for AI clean decision:** The package exposes a CLI entry point at dist/cli.js and declares no install, preinstall, or postinstall hook., API keys are entered through the onboarding flow and saved as the selected provider's configuration., Codex refresh tokens are sent to the OpenAI OAuth token endpoint for token refresh., The background update check installs a newer release of this same package via npm., The CLI exits with a missing-key message in noninteractive mode instead of silently onboarding.

- **Evidence against:** The CLI includes shell and background process tools, which are part of its advertised AI coding assistant functionality., The CLI checks for updates and may install a newer version automatically when run interactively.

## Affected versions and remediation

This report applies to @guangnao/agent-cli@1.6.5.

- No action is needed for @guangnao/agent-cli@1.6.5. Pin the version in your lockfile and check new releases as they are scanned.

## Public findings

These are automated scan signals. The review checked each one and found no malicious behavior, so all of them are cleared.

### 1. Low: Non Install Lifecycle Scripts (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Manifest
- **Confidence:** 80.0%

Package declares lifecycle scripts that are not normally run for registry tarball installs.

### 2. Low: Scripts Present (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Manifest
- **Confidence:** 100.0%

Package declares npm scripts.

### 3. High: Child Process (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** dist/cli.js
- **Public source:** [View source](<https://unpkg.com/@guangnao/agent-cli@1.6.5/dist/cli.js>)

Package source references child process execution.

Public source snippet (untrusted):

```javascript
L3530: // src/tools/shell.ts
L3531: import { exec } from "node:child_process";
L3532:
```

### 4. High: Shell (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** dist/cli.js
- **Public source:** [View source](<https://unpkg.com/@guangnao/agent-cli@1.6.5/dist/cli.js>)

Package source references shell execution.

Public source snippet (untrusted):

```javascript
L3549: const id = `bg_${++this.seq}`;
L3550: const proc = spawn(command, { shell: true, cwd, stdio: ["ignore", "pipe", "pipe"] });
L3551: const job = { id, command, proc, buf: "", cursor: 0, status: "running", code: null, startedAt: Date.now() };
```

### 5. Medium: Dynamic Require (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Source
- **Confidence:** 75.0%
- **Path:** dist/cli.js
- **Public source:** [View source](<https://unpkg.com/@guangnao/agent-cli@1.6.5/dist/cli.js>)

Package source references dynamic require/import behavior.

Public source snippet (untrusted):

```javascript
L1539: "use strict";
L1540: var os = __require("os");
L1541: var tty = __require("tty");
```

### 6. Medium: Network (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Source
- **Confidence:** 75.0%

Package source references network APIs.

### 7. Medium: Environment Vars (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Source
- **Confidence:** 75.0%

Package source references environment variables.

### 8. Low: Filesystem (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Source
- **Confidence:** 70.0%

Package source references filesystem APIs.

### 9. High: Same File Env Network Execution (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** dist/cli.js
- **Public source:** [View source](<https://unpkg.com/@guangnao/agent-cli@1.6.5/dist/cli.js>)

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

Public source snippet (untrusted):

```javascript
L15492: `;
L15493: var codexHome = () => process.env["CODEX_HOME"] || join16(homedir10(), ".codex");
L15494: var codexAuthPath = () => process.env["CODEX_AUTH_FILE"] || join16(codexHome(), "auth.json");
L15495: var runCli = (bin, args) => {
L15496: if (process.platform === "win32") execSync([bin, ...args].join(" "), { stdio: "inherit" });
L15497: else execFileSync4(bin, args, { stdio: "inherit" });
...
L15504: var CLIENT_ID2 = "app_EMoamEEZ73f0CkXaXp7hrann";
L15505: var TOKEN_URL = () => process.env["CODEX_TOKEN_URL"] || "https://auth.openai.com/oauth/token";
L15506: var SKEW_MS2 = 6e4;
```

### 10. High: Sandbox Evasion Gated Capability (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Source
- **Confidence:** 84.0%
- **Path:** dist/cli.js
- **Public source:** [View source](<https://unpkg.com/@guangnao/agent-cli@1.6.5/dist/cli.js>)

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

Public source snippet (untrusted):

```javascript
L191: function charWidth(ch) {
L192: const cc = ch.length === 1 ? ch.charCodeAt(0) : -1;
L193: if (cc >= 32 && cc <= 126) return 1;
...
L285: GLYPH_MARKERS = /* @__PURE__ */ new Set(["\u23FA", "\u23BF", "\u2713", "\u2717", "\u25B8", "\u25CC", "\xB7", "-", "*", "!", "?", "\u25CF", "\u2514", "\xD7", "\u25BA", "\u25CB"]);
L286: legacyWin = process.platform === "win32" && !process.env["WT_SESSION"] && process.env["TERM_PROGRAM"] !== "vscode" && !/xterm|screen|vt100/i.test(process.env["TERM"] ?? "");
L287: GLYPH = {
...
L366: function terminalWidth() {
L367: return process.stdout.columns || 80;
L368: }
...
L1257: graph[models[i]] = {
L1258: // http://jsperf.com/1-vs-infinity
L1259: // micro-opt, but this is simple.
```

### 11. High: Remote Agent Bridge (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Source
- **Confidence:** 84.0%
- **Path:** dist/cli.js
- **Public source:** [View source](<https://unpkg.com/@guangnao/agent-cli@1.6.5/dist/cli.js>)

Source exposes local file and command tools to a remote model endpoint.

Public source snippet (untrusted):

```javascript
L2904: var openaiResponses = (cfg2) => {
L2905: const base4 = (cfg2.baseUrl ?? "https://api.openai.com/v1").replace(/\/$/, "");
L2906: const headers = { "Content-Type": "application/json", Authorization: `Bearer ${cfg2.apiKey}` };
...
L3530: // src/tools/shell.ts
L3531: import { exec } from "node:child_process";
L3532: 
...
L3747: if (size > readMax()) return { error: `file is ${(size / 1048576).toFixed(1)} MB, over the ${(readMax() / 1048576).toFixed(0)} MB read cap \u2014 search it with grep, or read a sli...
L3748: const buf = readFileSync(abs);
L3749: if (buf.subarray(0, 8192).includes(0)) return { error: `${path} looks like a binary file (has NUL bytes) \u2014 read_file only handles UTF-8 text` };
...
L6192: if (b.goal) parts.push(`Goal: ${b.goal}`);
L6193: if (b.tools?.length) parts.
```

### 12. Low: High Entropy Strings (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Supply Chain
- **Confidence:** 55.0%

Package source contains high-entropy string patterns.

### 13. Low: Url Strings (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Supply Chain
- **Confidence:** 65.0%

Package source contains URL literals.

### 14. Medium: Structural Risk Force Deep Review (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Artifact Inventory
- **Confidence:** 100.0%

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

### 15. High: Known Malware Source Similarity (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** dist/cli.js
- **Public source:** [View source](<https://unpkg.com/@guangnao/agent-cli@1.6.5/dist/cli.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 = @guangnao/agent-cli@1.6.1
matchedPath = dist/cli.js
matchedIdentity = npm:QGd1YW5nbmFvL2FnZW50LWNsaQ:1.6.1
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 16. High: Known Malware Source Fingerprint Signature (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Supply Chain
- **Confidence:** 94.0%
- **Path:** dist/cli.js
- **Public source:** [View source](<https://unpkg.com/@guangnao/agent-cli@1.6.5/dist/cli.js>)

Source fingerprint signature matches a known malicious package signature; route for source-aware review.

Public source snippet (untrusted):

```javascript
matchType = malicious_source_fingerprint_signature
signature = 49a2c786d4d768bc
signatureType = suspicious_hashes
sourceLabel = final_verdict:malicious
matchedPackage = @guangnao/agent-cli@1.6.1
matchedPath = dist/cli.js
matchedIdentity = npm:QGd1YW5nbmFvL2FnZW50LWNsaQ:1.6.1
similarity = 1.000
shingleOverlap = 1
summary = package final verdict is malicious
```

## Dependencies and install lifecycle
- **Lifecycle scripts present:** Yes
- **Published lifecycle scripts:** prepublishOnly
- **Dependencies:** 0
- **Optional dependencies:** 0
- **Peer dependencies:** 0
- **Development dependencies:** 7
- **Published dependency-graph edges:** 0

## Package metadata
- **Package:** @guangnao/agent-cli
- **Ecosystem:** npm
- **Version:** 1.6.5
- **License:** MIT
- **Version published:** 2026-07-18T04:01:06.997Z
- **Package first seen:** 2026-07-01T01:51:09.243Z
- **Package last seen:** 2026-11-12T06:54:03.024Z
- **Known versions:** 31
- **Latest version:** 1.7.4
- **Appeal under review:** No
- **Description:** AgentOS terminal CLI — drive a real LLM agent on the microkernel; strongest-UX shell, advanced agent core
- **Maintainers:** guangnao
- **Keywords:** gcli, agentos, agent, llm, cli, tui, react-agent, microkernel
- **Runtime engines:** node: \>=20.12
- **Artifact files:** 3
- **Artifact unpacked size:** 659,788 bytes
- **Artifact signatures:** 1
- **Attestations:** No

## References
- [HTML security report](<https://firewall.lpm.dev/npm/@guangnao/agent-cli/v/1.6.5>)
