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

# @tiens.nguyen/gu-cli@1.0.869 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** — A credential intended for the selected model provider is disclosed to the worker service without recipient-specific consent.

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

The inspected runtime path sends a model-provider credential to the package’s default worker service after a prompt that does not disclose the recipient. This is concrete credential disclosure without recipient-specific consent.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Recorded final verdict:** Malicious
- **Recorded analysis confidence:** 97.0%
- **Started:** 2026-10-22T01:06:31.828Z
- **Finished:** 2026-10-22T01:07:27.714Z
- **Download time:** 780 ms
- **Static scan time:** 4680 ms
- **AI review time:** 50425 ms
- **Total time:** 55886 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:** When a cloud coding model has no stored key, the REPL prompts for that model’s API credential and sends it to the worker API. The prompt does not disclose that recipient.

- **Trigger:** Starting the REPL with a cloud coding model missing a key and entering the requested key.

- **Impact:** A credential intended for the selected model provider is disclosed to the worker service without recipient-specific consent.

- **Evidence paths:** device-login.mjs, coding-key-prompt.mjs, gu-repl.mjs

- **Review source:** ai\_review

- **Reviewed:** 2026-10-22T01:07:27.714Z

### AI review details

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

- **Mechanism:** The prompt passes the entered credential to a helper that POSTs it to the configured worker API; the package’s default API host is chat-api-v2.gucli.com.

- **Attack narrative:** On REPL startup, the package asks for a missing cloud coding-model API key. If entered, it sends that key in a POST body to the worker API, whose default host is chat-api-v2.gucli.com. The prompt identifies the model that needs a key but does not disclose this recipient. The API base can be overridden through GONEXT\_API\_BASE, but the published default remains package-selected.

- **Rationale:** The inspected runtime path sends a model-provider credential to the package’s default worker service after a prompt that does not disclose the recipient. This is concrete credential disclosure without recipient-specific consent.

- **Network endpoints:** https://chat-api-v2.gucli.com

### Review decision

- **Verdict:** Malicious

- **Confidence:** 97.0%

- **Recommended action:** publish\_block

- **Intent class:** Malware

- **False-positive risk:** Low

- **Evidence for block:** The default worker API destination is chat-api-v2.gucli.com., At startup, the REPL prompts for the selected coding model’s API key and calls the save helper when a key is supplied; the prompt does not identify the worker API as the recipient., The save helper POSTs the supplied key in the request body to the worker API’s coding-key endpoint., The API base can be overridden with GONEXT\_API\_BASE, but the package supplies a fixed default destination.

- **Evidence against:** The transfer requires a user to enter a key at the prompt; this is not an install-time disclosure.

## Affected versions and remediation

This report applies to @tiens.nguyen/gu-cli@1.0.869.

- Avoid installing @tiens.nguyen/gu-cli@1.0.869. 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. High: Install Time Lifecycle Scripts
- **Category:** Manifest
- **Confidence:** 90.0%
- **Path:** package.json
- **Public source:** [View source](<https://unpkg.com/@tiens.nguyen/gu-cli@1.0.869/package.json>)

Package defines install-time lifecycle scripts.

Public source snippet (untrusted):

```json
scripts.postinstall = node install-path.mjs
```

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

Package declares npm scripts.

### 3. Medium: Secret Pattern
- **Category:** Secrets
- **Confidence:** 75.0%
- **Path:** proxy-selftest.mjs
- **Public source:** [View source](<https://unpkg.com/@tiens.nguyen/gu-cli@1.0.869/proxy-selftest.mjs>)

Package contains a possible secret pattern.

Public source snippet (untrusted):

```javascript
patternName = generic_password
severity = medium
line = 195
```

### 4. High: Child Process
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** mongo-native.mjs
- **Public source:** [View source](<https://unpkg.com/@tiens.nguyen/gu-cli@1.0.869/mongo-native.mjs>)

Package source references child process execution.

Public source snippet (untrusted):

```javascript
L18: */
L19: import { spawn } from "node:child_process";
L20: import { existsSync } from "node:fs";
```

### 5. High: Shell
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** client-expert-api.mjs
- **Public source:** [View source](<https://unpkg.com/@tiens.nguyen/gu-cli@1.0.869/client-expert-api.mjs>)

Package source references shell execution.

Public source snippet (untrusted):

```javascript
L326: child = shell
L327: ? spawn(line, { cwd: apiDir, stdio: ["ignore", "pipe", "pipe"], shell: true })
L328: : spawn(cmd, args, { cwd: apiDir, stdio: ["ignore", "pipe", "pipe"], shell: false });
```

### 6. Medium: Dynamic Require
- **Category:** Source
- **Confidence:** 75.0%
- **Path:** rag-selftest.mjs\#virtual:normalized:round1
- **Public source:** [View source](<https://unpkg.com/@tiens.nguyen/gu-cli@1.0.869/rag-selftest.mjs%23virtual%3Anormalized%3Around1>)

Package source references dynamic require/import behavior.

Public source snippet (untrusted):

```text
L34: function haystackFile(n) {
L35: const lines = [`// Service module ${n}: request handling for the platform"s internal API.`];\n  for (let i = 1; i <= 40; i++) {\n    lines.push(\n      `// helper ${i}: validates t...
L36: // embedder is down" when it is simply a different path.\n    const raw = String(s.ragEmbedUrl || "").replace(//+$/, "");\n    embedUrl = raw && !//v1$/i.test(raw) ? `${raw}/v1` : ...
```

### 7. Low: Weak Crypto
- **Category:** Source
- **Confidence:** 64.0%
- **Path:** browser-bridge.mjs
- **Public source:** [View source](<https://unpkg.com/@tiens.nguyen/gu-cli@1.0.869/browser-bridge.mjs>)

Package source references weak cryptographic algorithms.

Public source snippet (untrusted):

```javascript
L1: #!/usr/bin/env node
L2: // The browser bridge (task #363, GitHub #144): the gu Chrome extension holds a WebSocket to this
L3: // process, and the agent's browser tool (a new Python process every turn) sends it commands over
...
L25: export function statePath() {
L26: return process.env.GU_BROWSER_STATE || join(homedir(), ".gonext", "browser-bridge.json");
L27: }
...
L30: export function encodeFrame(text, opcode = 1) {
L31: const payload = Buffer.isBuffer(text) ? text : Buffer.from(text);
L32: const n = payload.length;
...
L114: pending.set(id, { resolve, timer });
L115: ext.socket.write(encodeFrame(JSON.stringify({ ...cmd, id })));
L116: });
```

### 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: Same File Env Network Execution
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** mongo-native.mjs
- **Public source:** [View source](<https://unpkg.com/@tiens.nguyen/gu-cli@1.0.869/mongo-native.mjs>)

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

Public source snippet (untrusted):

```javascript
L161: if (!brew) return false;
L162: return (await run(brew, ["trust", "--help"], { env: { ...process.env, HOMEBREW_NO_AUTO_UPDATE: "1" } })) === 0;
L163: }
L164: 
L165: /** Homebrew's own one-line installer (https://brew.sh) — it asks for the password itself. */
L166: export const HOMEBREW_INSTALL_COMMAND =
L167: '/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.[redacted].sh)"';
L168:
```

### 12. High: Credential Redirect Persistence
- **Category:** Source
- **Confidence:** 94.0%
- **Path:** gu-cli.mjs
- **Public source:** [View source](<https://unpkg.com/@tiens.nguyen/gu-cli@1.0.869/gu-cli.mjs>)

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.
gu-cli.mjs:
import { mkdir, mkdtemp, readFile, rm, stat, unlink, writeFile } from "node:fs/promises";
import { writeFileSync, unlinkSync } from "node:fs";
await writeFile(
// an API key we deliberately don't hold, so an unauthenticated probe returns 401 and
const { createInterface } = await import("node:readline/promises");
rl ??= (await import("node:readline/promises")).createInterface({ input: process.stdin, output: process.stdout });
const { readFileSync, writeFileSync, mkdirSync, existsSync } = await import("node:fs");
rlp ??= (await import("node:readline")).createInterface({
```

### 13. High: Sandbox Evasion Gated Capability
- **Category:** Source
- **Confidence:** 84.0%
- **Path:** gu-cli.mjs
- **Public source:** [View source](<https://unpkg.com/@tiens.nguyen/gu-cli@1.0.869/gu-cli.mjs>)

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

Public source snippet (untrusted):

```javascript
L19: import { mkdir, mkdtemp, readFile, rm, stat, unlink, writeFile } from "node:fs/promises";
L20: import { execFile as execFileCallback, spawn } from "node:child_process";
L21: import { createHash, randomUUID } from "node:crypto";
...
L78: // often has no node on PATH.
L79: process.env.GU_NODE ||= process.execPath;
L80: 
L81: // Running worker version, read from the package's own package.json (single source of
L82: // truth) so the startup banner shows exactly which build a box is running (task #105).
...
L93: 
L94: const ENV_FILE = join(homedir(), ".gonext", "worker.env");
L95: const preloadedWorkerKey = String(process.env.GONEXT_WORKER_KEY ?? "").trim();
...
L154: Examples:
```

### 14. High: Cloud Metadata Access
- **Category:** Source
- **Confidence:** 84.0%
- **Path:** coding-provider-setup.mjs
- **Public source:** [View source](<https://unpkg.com/@tiens.nguyen/gu-cli@1.0.869/coding-provider-setup.mjs>)

Source reaches cloud instance metadata or link-local credential endpoints.

Public source snippet (untrusted):

```javascript
L12: * a log means the box. An OpenAI-compatible provider is the opposite — the path is part of the
L13: * address. https://openrouter.ai/api/v1 is OpenRouter's documented base, and dropping the /api
L14: * from it 404s every call. So this keeps the path and mirrors the API's normalizeOpenAiV1Root
...
L47: if (a === 169 && b === 254) return "link-local"; // includes 169.254.169.254 (IMDS)
L48: if (a === 10) return "private";
L49: if (a === 172 && b >= 16 && b <= 31) return "private";
```

### 15. High: Copied Package Dependency Bridge
- **Category:** Source
- **Confidence:** 83.0%
- **Path:** proxy-dispatcher.mjs
- **Public source:** [View source](<https://unpkg.com/@tiens.nguyen/gu-cli@1.0.869/proxy-dispatcher.mjs>)

Package metadata claims a different repository identity while copied source loads a runtime dependency bridge.

Public source snippet (untrusted):

```javascript
package = @tiens.nguyen/gu-cli; repositoryIdentity = gu; dependency = undici
L51: try {
L52: ({ ProxyAgent: ProxyAgentCtor } = await import("undici"));
L53: } catch (err) {
```

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

Package source contains high-entropy string patterns.

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

Package source contains URL literals.

### 18. Medium: Ships Build Helper
- **Category:** Artifact Inventory
- **Confidence:** 70.0%
- **Path:** gonext\_transcribe.py
- **Public source:** [View source](<https://unpkg.com/@tiens.nguyen/gu-cli@1.0.869/gonext_transcribe.py>)

Package ships non-JavaScript build or shell helper files.

Public source snippet (untrusted):

```python
path = gonext_transcribe.py
kind = build_helper
sizeBytes = 4248
magicHex = [redacted]
```

### 19. 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.

### 20. High: Semantic Analysis Limited
- **Category:** Scanner Coverage
- **Confidence:** 100.0%
- **Path:** agent-stop.mjs\#virtual:normalized:round1
- **Public source:** [View source](<https://unpkg.com/@tiens.nguyen/gu-cli@1.0.869/agent-stop.mjs%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 = 8
```

### 21. High: Previous Version Dangerous Delta
- **Category:** Supply Chain
- **Confidence:** 93.0%
- **Path:** cli-token.mjs
- **Public source:** [View source](<https://unpkg.com/@tiens.nguyen/gu-cli@1.0.869/cli-token.mjs>)

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 = @tiens.nguyen/gu-cli@1.0.858
matchedIdentity = npm:QHRpZW5zLm5ndXllbi9ndS1jbGk:1.0.858
similarity = 0.900
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:** 4
- **Optional dependencies:** 0
- **Peer dependencies:** 0
- **Development dependencies:** 0
- **Published dependency-graph edges:** 4

### Published dependency entries
- dotenv ^16.4.5 (Dependency)
- express ^4.21.0 (Dependency)
- openai ^4.77.0 (Dependency)
- undici ^7.29.0 (Dependency)

## Package metadata
- **Package:** @tiens.nguyen/gu-cli
- **Ecosystem:** npm
- **Version:** 1.0.869
- **License:** MIT
- **Version published:** 2026-10-22T01:01:35.070Z
- **Package first seen:** 2026-09-12T10:02:50.226Z
- **Package last seen:** 2026-10-23T04:09:31.083Z
- **Known versions:** 97
- **Latest version:** 1.0.871
- **Appeal under review:** No
- **Description:** Gu CLI — the gu terminal plus the local worker that runs agent / OCR / PDF / embedding jobs on your Mac (Ollama / MLX / OpenAI-compatible).
- **Runtime engines:** node: \>=18
- **Artifact files:** 117
- **Artifact unpacked size:** 3,584,980 bytes
- **Artifact signatures:** 2
- **Attestations:** No

## References
- [HTML security report](<https://firewall.lpm.dev/npm/@tiens.nguyen/gu-cli/v/1.0.869>)
- [Repository](<https://github.com/tiennsloit/gu.git>)
- [Homepage](<https://github.com/tiennsloit/gu#readme>)
- [Issues](<https://github.com/tiennsloit/gu/issues>)
