---
canonical: "https://firewall.lpm.dev/npm/@trstyq/gemini-cli"
markdown: "https://firewall.lpm.dev/npm/@trstyq/gemini-cli/v/0.67.4.md"
package: "@trstyq/gemini-cli"
report_status: "published"
title: "@trstyq/gemini-cli@0.67.4 npm security report"
verdict: "policy_finding"
version: "0.67.4"
---

# @trstyq/gemini-cli@0.67.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
**Soft block: AI-agent control surface** — Warn by default; block when configured. Installation changes the user's Gemini CLI model defaults and configuration without a separate setup command.

- **Verdict:** AI-agent control-surface policy finding
- **Product-default install policy:** Warn by default; block when configured
- **Firewall policy:** Warn by default
- **Public report status:** Published
- **Threat category:** Soft block: AI-agent control surface
- **Selected version:** 0.67.4
- **Selected version is latest:** No
- **Analysis source:** AI security review (lpm-firewall-ai)

This finding concerns changes to an AI agent's instructions or configuration without explicit user action. It does not by itself establish malware intent. The CLI warns by default and blocks when configured for this policy.

AI assessment: malicious; recommendation: publish block. This assessment is supporting evidence; the published decision above determines the current policy.

The postinstall hook writes model defaults into the user's global Gemini CLI settings without requiring a separate setup action. Although the README discloses the change, this is an automatic install-time write to AI-agent settings outside the package directory.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Recorded final verdict:** Malicious
- **Recorded analysis confidence:** 88.0%
- **Started:** 2026-11-08T02:16:48.206Z
- **Finished:** 2026-11-08T02:17:58.773Z
- **Download time:** 1027 ms
- **Static scan time:** 19901 ms
- **AI review time:** 49638 ms
- **Total time:** 70567 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:** The install hook automatically changes Gemini CLI settings outside the package directory.

- **Trigger:** npm installation runs the package's postinstall hook.

- **Impact:** Installation changes the user's Gemini CLI model defaults and configuration without a separate setup command.

- **Evidence paths:** package.json, bundle/setup-company-models.js, bundle/chunk-H24UK5JE.js

- **Review source:** ai\_review

- **Reviewed:** 2026-11-08T02:17:58.773Z

### AI review details

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

- **Mechanism:** The hook merges company model defaults into the user's global settings and replaces the settings file.

- **Attack narrative:** During npm installation, the postinstall hook automatically edits the user's global Gemini CLI settings, adding model configurations and selecting the \`auto\` model default. The README discloses this setup, but it still changes agent settings outside the package directory as an install-time action.

- **Rationale:** The postinstall hook writes model defaults into the user's global Gemini CLI settings without requiring a separate setup action. Although the README discloses the change, this is an automatic install-time write to AI-agent settings outside the package directory.

- **Files touched:** ~/.gemini/settings.json, ~/.gemini/.company-models-v1.initialized, ~/.gemini/.company-models-v1.lock

### Review decision

- **Verdict:** Malicious

- **Confidence:** 88.0%

- **Recommended action:** publish\_block

- **Intent class:** Dangerous Capability

- **False-positive risk:** Low

- **Evidence for policy risk:** The package runs \`bundle/setup-company-models.js\` from an npm \`postinstall\` hook., The postinstall entry calls \`tryInitializeCompanySettings()\`., Initialization adds missing defaults including \`model.name: "auto"\` and dynamic model configuration., The initializer writes the merged settings back to the user's global Gemini settings file.

- **Evidence against:** The README discloses that installation adds model defaults to \`~/.gemini/settings.json\` and preserves existing settings.

## Affected versions and remediation

This report applies to @trstyq/gemini-cli@0.67.4.

- Avoid installing @trstyq/gemini-cli@0.67.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, check your AI agents' configuration and instruction files (the files this report lists) for changes you did not make, and remove them. This finding does not by itself establish malware intent.

## Public findings

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

Package defines install-time lifecycle scripts.

Public source snippet (untrusted):

```json
scripts.postinstall = node bundle/setup-company-models.js
```

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

Package declares npm scripts.

### 3. High: Child Process
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** bundle/chunk-LDMIC6YU.js
- **Public source:** [View source](<https://unpkg.com/@trstyq/gemini-cli@0.67.4/bundle/chunk-LDMIC6YU.js>)

Package source references child process execution.

Public source snippet (untrusted):

```javascript
L1456: import * as path from "node:path";
L1457: import * as childProcess from "node:child_process";
L1458: import process2 from "node:process";
```

### 4. High: Shell
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** bundle/chunk-LDMIC6YU.js
- **Public source:** [View source](<https://unpkg.com/@trstyq/gemini-cli@0.67.4/bundle/chunk-LDMIC6YU.js>)

Package source references shell execution.

Public source snippet (untrusted):

```javascript
L1703: stdio: "ignore",
L1704: shell: true,
L1705: detached: true
```

### 5. Low: Eval
- **Category:** Source
- **Confidence:** 45.0%

Package source references a known benign dynamic code generation pattern.

### 6. Medium: Dynamic Require
- **Category:** Source
- **Confidence:** 75.0%
- **Path:** bundle/gemini-W3ABJZEM.js
- **Public source:** [View source](<https://unpkg.com/@trstyq/gemini-cli@0.67.4/bundle/gemini-W3ABJZEM.js>)

Package source references dynamic require/import behavior.

Public source snippet (untrusted):

```javascript
L1: const require = (await import('node:module')).createRequire(import.meta.url); const __chunk_filename = (await import('node:url')).fileURLToPath(import.meta.url); const __chunk_dirn...
L2: import {
```

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

Package source references network APIs.

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

Package source references environment variables.

### 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:** bundle/gemini-W3ABJZEM.js
- **Public source:** [View source](<https://unpkg.com/@trstyq/gemini-cli@0.67.4/bundle/gemini-W3ABJZEM.js>)

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

Public source snippet (untrusted):

```javascript
L11613: if (proxyCommand2) {
L11614: const proxy = process.env["HTTPS_PROXY"] || process.env["https_proxy"] || process.env["HTTP_PROXY"] || process.env["http_proxy"] || "http://localhost:8877";
L11615: sandboxEnv["HTTPS_PROXY"] = proxy;
...
L11625: stdio: ["ignore", "pipe", "pipe"],
L11626: shell: true,
L11627: detached: true
```

### 11. High: Command Output Exfiltration
- **Category:** Source
- **Confidence:** 82.0%
- **Path:** bundle/gemini-W3ABJZEM.js
- **Public source:** [View source](<https://unpkg.com/@trstyq/gemini-cli@0.67.4/bundle/gemini-W3ABJZEM.js>)

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

Public source snippet (untrusted):

```javascript
L130: ErrorCode,
L131: ExitCodes,
L132: FatalAuthenticationError,
...
L222: displayContentToString,
L223: execa,
L224: external_exports,
...
L1558: var _c;
L1559: var minNodeVersion = process && process.env && process.env.YARGS_MIN_NODE_VERSION ? Number(process.env.YARGS_MIN_NODE_VERSION) : 12;
L1560: var nodeVersion = (_b = (_a = process === null || process === void 0 ? void 0 : process.versions) === null || _a === void 0 ? void 0 : _a.node) !== null && _b !== void 0 ? _b : (_c...
...
L1563: if (major < minNodeVersion) {
L1564: throw Error(`yargs parser supports a minimum Node.js version of ${minNodeVersion}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`...
L1565: }
```

### 12. Critical: Download Execute
- **Category:** Source
- **Confidence:** 90.0%
- **Path:** bundle/chunk-WSFRV6RT.js
- **Public source:** [View source](<https://unpkg.com/@trstyq/gemini-cli@0.67.4/bundle/chunk-WSFRV6RT.js>)

Source downloads or fetches remote code and executes it.

Public source snippet (untrusted):

```javascript
L64: use_stdin_default,
L65: use_stdout_default,
L66: validateCustomTheme
...
L158: escapeShellArg,
L159: execa,
L160: execaSync,
...
L196: isNodeError,
L197: isPrivateIp,
L198: isProjectSkillPatchTarget,
...
L312: "use strict";
L313: var { FORCE_COLOR, NODE_DISABLE_COLORS, TERM } = process.env;
L314: var $3 = {
```

### 13. High: Sandbox Evasion Gated Capability
- **Category:** Source
- **Confidence:** 84.0%
- **Path:** bundle/gemini-W3ABJZEM.js
- **Public source:** [View source](<https://unpkg.com/@trstyq/gemini-cli@0.67.4/bundle/gemini-W3ABJZEM.js>)

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

Public source snippet (untrusted):

```javascript
L130: ErrorCode,
L131: ExitCodes,
L132: FatalAuthenticationError,
...
L222: displayContentToString,
L223: execa,
L224: external_exports,
...
L1558: var _c;
L1559: var minNodeVersion = process && process.env && process.env.YARGS_MIN_NODE_VERSION ? Number(process.env.YARGS_MIN_NODE_VERSION) : 12;
L1560: var nodeVersion = (_b = (_a = process === null || process === void 0 ? void 0 : process.versions) === null || _a === void 0 ? void 0 : _a.node) !== null && _b !== void 0 ? _b : (_c...
...
L1563: if (major < minNodeVersion) {
L1564: throw Error(`yargs parser supports a minimum Node.js version of ${minNodeVersion}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`...
L1565: }
```

### 14. High: Remote Agent Bridge
- **Category:** Source
- **Confidence:** 84.0%
- **Path:** bundle/gemini-W3ABJZEM.js
- **Public source:** [View source](<https://unpkg.com/@trstyq/gemini-cli@0.67.4/bundle/gemini-W3ABJZEM.js>)

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

Public source snippet (untrusted):

```javascript
L1581: } else if (path18.match(/\.json$/)) {
L1582: return JSON.parse(readFileSync(path18, "utf8"));
L1583: } else {
...
L7149: import path4 from "node:path";
L7150: import { execFileSync, spawn as nodeSpawn } from "node:child_process";
L7151: import readline from "node:readline";
...
L17567: );
L17568: const authType = loadedSettings.merged.security.auth.selectedType || (authDetails.baseUrl || process.env["GOOGLE_GEMINI_BASE_URL"] ? AuthType.GATEWAY : AuthType.USE_GEMINI);
L17569: let isAuthenticated = false;
```

### 15. High: Cross File Remote Execution Context
- **Category:** Source
- **Confidence:** 72.0%
- **Path:** bundle/chunk-J4GHF6SJ.js
- **Public source:** [View source](<https://unpkg.com/@trstyq/gemini-cli@0.67.4/bundle/chunk-J4GHF6SJ.js>)

Source spawns a local helper that also contains network and dynamic execution context; review data flow before blocking.

Public source snippet (untrusted):

```javascript
Cross-file remote execution chain: bundle/chunk-J4GHF6SJ.js spawns bundle/bundled/third_party/index.js; helper contains network access plus dynamic code execution.
L60: ];
L61: if (process.platform !== "win32") {
L62: module.exports.push(
...
L208: }
L209: process20.exitCode = code || /* istanbul ignore next */
L210: 0;
...
L577: function formatProdErrorMessage(code) {
L578: var url = "https://react.dev/errors/" + code;
L579: if (1 < arguments.length) {
...
L1389: controller: new AbortControllerLocal(),
L1390: data: /* @__PURE__ */ new Map(),
L1391: refCount: 0
```

### 16. Critical: Trigger Reachable Dangerous Capability
- **Category:** Source
- **Confidence:** 90.0%
- **Path:** bundle/chunk-WSFRV6RT.js
- **Public source:** [View source](<https://unpkg.com/@trstyq/gemini-cli@0.67.4/bundle/chunk-WSFRV6RT.js>)

A package entrypoint or install-time lifecycle script reaches a source file with blocking dangerous behavior.

Public source snippet (untrusted):

```javascript
Trigger-reachable chain: manifest.bin -> bundle/gemini.js -> bundle/gemini-W3ABJZEM.js -> bundle/chunk-WSFRV6RT.js
L64: use_stdin_default,
L65: use_stdout_default,
L66: validateCustomTheme
...
L158: escapeShellArg,
L159: execa,
L160: execaSync,
...
L196: isNodeError,
L197: isPrivateIp,
L198: isProjectSkillPatchTarget,
...
L312: "use strict";
L313: var { FORCE_COLOR, NODE_DISABLE_COLORS, TERM } = process.env;
L314: var $3 = {
```

### 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: Oversized Source File
- **Category:** Artifact Inventory
- **Confidence:** 70.0%
- **Path:** bundle/chunk-AFB3WDRO.js
- **Public source:** [View source](<https://unpkg.com/@trstyq/gemini-cli@0.67.4/bundle/chunk-AFB3WDRO.js>)

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

Public source snippet (untrusted):

```javascript
path = bundle/chunk-AFB3WDRO.js
kind = oversized_source_file
sizeBytes = 16764433
magicHex = [redacted]
```

### 20. Medium: Oversized Cli Entrypoint
- **Category:** Artifact Inventory
- **Confidence:** 80.0%
- **Path:** bundle/bundled/chrome-devtools-mcp.mjs
- **Public source:** [View source](<https://unpkg.com/@trstyq/gemini-cli@0.67.4/bundle/bundled/chrome-devtools-mcp.mjs>)

Package contains an oversized executable-looking CLI entrypoint.

Public source snippet (untrusted):

```javascript
path = bundle/bundled/chrome-devtools-mcp.mjs
kind = oversized_cli_entrypoint
sizeBytes = 11629199
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:** bundle/chunk-AUZOEBWM.js
- **Public source:** [View source](<https://unpkg.com/@trstyq/gemini-cli@0.67.4/bundle/chunk-AUZOEBWM.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_alias_growth_limit_exceeded; limitedFiles = 2
```

### 23. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** bundle/bundled/third\_party/index.js
- **Public source:** [View source](<https://unpkg.com/@trstyq/gemini-cli@0.67.4/bundle/bundled/third_party/index.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 = @trstyq/gemini-cli@0.67.3
matchedPath = bundle/bundled/third_party/index.js
matchedIdentity = npm:QHRyc3R5cS9nZW1pbmktY2xp:0.67.3
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 24. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** bundle/interactiveCli-M5FIJTJ5.js
- **Public source:** [View source](<https://unpkg.com/@trstyq/gemini-cli@0.67.4/bundle/interactiveCli-M5FIJTJ5.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 = @trstyq/gemini-cli@0.67.3
matchedPath = bundle/interactiveCli-OUDVMPGV.js
matchedIdentity = npm:QHRyc3R5cS9nZW1pbmktY2xp:0.67.3
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 25. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** bundle/chunk-WSFRV6RT.js
- **Public source:** [View source](<https://unpkg.com/@trstyq/gemini-cli@0.67.4/bundle/chunk-WSFRV6RT.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 = @trstyq/gemini-cli@0.67.3
matchedPath = bundle/chunk-GZKAUP6N.js
matchedIdentity = npm:QHRyc3R5cS9nZW1pbmktY2xp:0.67.3
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 26. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** bundle/chunk-J4GHF6SJ.js
- **Public source:** [View source](<https://unpkg.com/@trstyq/gemini-cli@0.67.4/bundle/chunk-J4GHF6SJ.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 = @trstyq/gemini-cli@0.67.3
matchedPath = bundle/chunk-YQ4RR6S6.js
matchedIdentity = npm:QHRyc3R5cS9nZW1pbmktY2xp:0.67.3
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 27. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** bundle/chunk-L6PII3GR.js
- **Public source:** [View source](<https://unpkg.com/@trstyq/gemini-cli@0.67.4/bundle/chunk-L6PII3GR.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 = @trstyq/gemini-cli@0.67.3
matchedPath = bundle/chunk-L6PII3GR.js
matchedIdentity = npm:QHRyc3R5cS9nZW1pbmktY2xp:0.67.3
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 28. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** bundle/gemini-W3ABJZEM.js
- **Public source:** [View source](<https://unpkg.com/@trstyq/gemini-cli@0.67.4/bundle/gemini-W3ABJZEM.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 = @trstyq/gemini-cli@0.67.3
matchedPath = bundle/gemini-LWEOWACV.js
matchedIdentity = npm:QHRyc3R5cS9nZW1pbmktY2xp:0.67.3
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 29. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** bundle/gemini.js
- **Public source:** [View source](<https://unpkg.com/@trstyq/gemini-cli@0.67.4/bundle/gemini.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 = @trstyq/gemini-cli@0.67.3
matchedPath = bundle/gemini.js
matchedIdentity = npm:QHRyc3R5cS9nZW1pbmktY2xp:0.67.3
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 30. High: Known Malware Source Fingerprint Signature
- **Category:** Supply Chain
- **Confidence:** 94.0%
- **Path:** bundle/bundled/third\_party/index.js
- **Public source:** [View source](<https://unpkg.com/@trstyq/gemini-cli@0.67.4/bundle/bundled/third_party/index.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 = 24ffff451c7e2601
signatureType = suspicious_hashes
sourceLabel = final_verdict:malicious
matchedPackage = @trstyq/gemini-cli@0.67.3
matchedPath = bundle/bundled/third_party/index.js
matchedIdentity = npm:QHRyc3R5cS9nZW1pbmktY2xp:0.67.3
similarity = 1.000
shingleOverlap = 47
summary = package final verdict is malicious
```

## Dependencies and install lifecycle
- **Lifecycle scripts present:** Yes
- **Published lifecycle scripts:** postinstall
- **Dependencies:** 6
- **Optional dependencies:** 8
- **Peer dependencies:** 0
- **Development dependencies:** 0
- **Published dependency-graph edges:** 14

### Published dependency entries
- ink npm:@jrichman/ink@6.6.9 (Dependency)
- latest-version 9.0.0 (Dependency)
- node-fetch-native 1.6.7 (Dependency)
- proper-lockfile 4.1.2 (Dependency)
- punycode 2.3.1 (Dependency)
- simple-git 3.28.0 (Dependency)
- @github/keytar 7.10.6 (OptionalDependency)
- @lydell/node-pty 1.1.0 (OptionalDependency)
- @lydell/node-pty-darwin-arm64 1.1.0 (OptionalDependency)
- @lydell/node-pty-darwin-x64 1.1.0 (OptionalDependency)
- @lydell/node-pty-linux-x64 1.1.0 (OptionalDependency)
- @lydell/node-pty-win32-arm64 1.1.0 (OptionalDependency)
- @lydell/node-pty-win32-x64 1.1.0 (OptionalDependency)
- node-pty 1.0.0 (OptionalDependency)

## Package metadata
- **Package:** @trstyq/gemini-cli
- **Ecosystem:** npm
- **Version:** 0.67.4
- **License:** Apache-2.0
- **Version published:** 2026-10-30T01:28:38.347Z
- **Package first seen:** 2026-10-29T01:32:12.265Z
- **Package last seen:** 2026-11-08T02:18:26.900Z
- **Known versions:** 5
- **Latest version:** 0.67.5
- **Appeal under review:** No
- **Description:** Gemini CLI fork for private LLM gateways without SSE support, with NDJSON streaming and configurable model routing
- **Runtime engines:** node: \>=20.0.0
- **Artifact files:** 421
- **Artifact unpacked size:** 52,019,918 bytes
- **Artifact signatures:** 2
- **Attestations:** No

## References
- [HTML security report](<https://firewall.lpm.dev/npm/@trstyq/gemini-cli/v/0.67.4>)
- [Repository](<https://github.com/ts2580/gemini-cli.git>)
- [Homepage](<https://github.com/ts2580/gemini-cli#readme>)
- [Issues](<https://github.com/ts2580/gemini-cli/issues>)
