---
canonical: "https://firewall.lpm.dev/npm/@kaitranntt/ccs/v/8.11.1"
markdown: "https://firewall.lpm.dev/npm/@kaitranntt/ccs/v/8.11.1.md"
package: "@kaitranntt/ccs"
report_status: "published"
title: "@kaitranntt/ccs@8.11.1 npm security report"
verdict: "clean"
version: "8.11.1"
---

# @kaitranntt/ccs@8.11.1 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** — 21 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:** 8.11.1
- **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: clean; recommendation: mark clean. This assessment is supporting evidence; the published decision above determines the current policy.

The flagged credential headers are used for provider requests: GLMT targets the configured upstream (Z.AI by default), and preflight validation targets the selected provider. Install-time setup creates CCS state and an empty Claude settings file without replacing existing settings or installing agent instructions.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Recorded final verdict:** Clean
- **Recorded analysis confidence:** 90.0%
- **Started:** 2026-11-24T18:02:54.729Z
- **Finished:** 2026-11-24T18:05:31.659Z
- **Download time:** 1781 ms
- **Static scan time:** 13310 ms
- **AI review time:** 141838 ms
- **Total time:** 156930 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 identified; the reviewed credential requests go to the configured AI provider, and install-time writes set up the CLI.

- **Trigger:** Provider requests occur when using the corresponding profile; install-time setup runs through the package lifecycle hooks. Shell completion changes require the explicit completion command.

- **Impact:** No unrelated credential recipient, concealed payload, or unrequested agent control change was identified in the reviewed paths.

- **Review source:** ai\_review

- **Reviewed:** 2026-11-24T18:05:31.659Z

### AI review details

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

- **Mechanism:** The proxy uses the configured upstream URL (Z.AI by default); preflight validation sends a profile key to its provider URL. Install setup creates CCS directories and an empty Claude settings file when missing.

- **Rationale:** The flagged credential headers are used for provider requests: GLMT targets the configured upstream (Z.AI by default), and preflight validation targets the selected provider. Install-time setup creates CCS state and an empty Claude settings file without replacing existing settings or installing agent instructions.

- **Files touched:** ~/.ccs/, ~/.claude/settings.json

- **Network endpoints:** api.z.ai, api.minimax.io, api.anthropic.com

### Review decision

- **Verdict:** Clean

- **Confidence:** 90.0%

- **Recommended action:** mark\_clean

- **Intent class:** Benign

- **False-positive risk:** Low

- **Evidence for AI clean decision:** The install hook creates CCS configuration and, if absent, an empty Claude settings file; it preserves an existing settings file., GLMT sends ANTHROPIC\_AUTH\_TOKEN to the configured ANTHROPIC\_BASE\_URL, defaulting to Z.AI., The GLM preflight uses the configured provider URL and puts the key in Authorization; it runs in the GLM profile flow.

- **Evidence against:** The package has install lifecycle hooks and writes files under the user’s home directory, but the inspected writes support its profile and CLI setup., The shell completion installer is invoked by the explicit shell-completion command, not automatically during install or import.

## Affected versions and remediation

This report applies to @kaitranntt/ccs@8.11.1.

- No action is needed for @kaitranntt/ccs@8.11.1. 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. High: Install Time Lifecycle Scripts (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Manifest
- **Confidence:** 90.0%
- **Path:** package.json
- **Public source:** [View source](<https://unpkg.com/@kaitranntt/ccs@8.11.1/package.json>)

Package defines install-time lifecycle scripts.

Public source snippet (untrusted):

```json
scripts.preinstall = node scripts/preinstall.js
```

### 2. Medium: Ambiguous Install Lifecycle Script (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Manifest
- **Confidence:** 75.0%
- **Path:** package.json
- **Public source:** [View source](<https://unpkg.com/@kaitranntt/ccs@8.11.1/package.json>)

Install-time lifecycle script is not statically allowlisted and needs review.

Public source snippet (untrusted):

```json
scripts.preinstall = node scripts/preinstall.js
```

### 3. Medium: Ambiguous Install Lifecycle Script (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Manifest
- **Confidence:** 75.0%
- **Path:** package.json
- **Public source:** [View source](<https://unpkg.com/@kaitranntt/ccs@8.11.1/package.json>)

Install-time lifecycle script is not statically allowlisted and needs review.

Public source snippet (untrusted):

```json
scripts.postinstall = node scripts/postinstall.js
```

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

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

### 6. Medium: Secret Pattern (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Secrets
- **Confidence:** 75.0%
- **Path:** dist/ui/assets/index-gX7Mi5Ws.js
- **Public source:** [View source](<https://unpkg.com/@kaitranntt/ccs@8.11.1/dist/ui/assets/index-gX7Mi5Ws.js>)

Package contains a possible secret pattern.

Public source snippet (untrusted):

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

### 7. Low: Eval (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Source
- **Confidence:** 45.0%
- **Path:** dist/utils/ui/init.js
- **Public source:** [View source](<https://unpkg.com/@kaitranntt/ccs@8.11.1/dist/utils/ui/init.js>)

Package source references a known benign dynamic code generation pattern.

Public source snippet (untrusted):

```javascript
L17: */
L18: const dynamicImport = new Function('specifier', 'return import(specifier)');
L19: /**
```

### 8. Medium: Dynamic Require (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Source
- **Confidence:** 75.0%
- **Path:** dist/ui/assets/proxy-C4-M\_9kB.js
- **Public source:** [View source](<https://unpkg.com/@kaitranntt/ccs@8.11.1/dist/ui/assets/proxy-C4-M_9kB.js>)

Package source references dynamic require/import behavior.

Public source snippet (untrusted):

```javascript
L8: }
L9: `),()=>{a.current?.removeAttribute("data-motion-pop-id"),b.contains(T)&&b.removeChild(T)}},[e]),nt.jsx(Tu,{isPresent:e,childRef:a,sizeRef:u,pop:r,children:r===!1?t:w.cloneElement(t...
```

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

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

### 11. Medium: Install Persistence (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Source
- **Confidence:** 75.0%
- **Path:** dist/utils/shell-completion.js
- **Public source:** [View source](<https://unpkg.com/@kaitranntt/ccs@8.11.1/dist/utils/shell-completion.js>)

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

Public source snippet (untrusted):

```javascript
L32: * Shell Completion Installer
L33: * Auto-configures shell completion for bash, zsh, fish, PowerShell
L34: */
...
L36: constructor() {
L37: this.homeDir = os.homedir();
L38: this.ccsDir = (0, config_manager_1.getCcsDir)();
...
L45: detectShell() {
L46: const shell = process.env.SHELL || '';
L47: if (shell.includes('bash'))
...
L52: return 'fish';
L53: if (process.platform === 'win32')
L54: return 'powershell';
```

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

### 13. Critical: Ai Agent Control Hijack (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Source
- **Confidence:** 90.0%
- **Path:** scripts/postinstall.js
- **Public source:** [View source](<https://unpkg.com/@kaitranntt/ccs@8.11.1/scripts/postinstall.js>)

Source creates an unconsented AI-agent control surface through install-time mutation or a default unauthenticated remote skill channel.

Public source snippet (untrusted):

```javascript
L79: 
L80: // Check ~/.claude/settings.json (warning only, not critical)
L81: const claudeSettings = path.join(homedir, '.claude', 'settings.json');
L82: if (!fs.existsSync(claudeSettings)) {
L83: warnings.push('~/.claude/settings.json not found - run "claude /login"');
L84: }
...
L104: } else {
L105: fs.mkdirSync(ccsDir, { recursive: true, mode: 0o755 });
L106: console.log('[OK] Created directory: ~/.ccs/');
...
L113: if (!fs.existsSync(sharedDir)) {
L114: fs.mkdirSync(sharedDir, { recursive: true, mode: 0o755 });
L115: console.log('[OK] Created directory: ~/.ccs/shared/');
```

### 14. High: Trigger Reachable External Ai Agent Control Surface Mutation (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Source
- **Confidence:** 94.0%
- **Path:** dist/utils/claude-symlink-manager.js
- **Public source:** [View source](<https://unpkg.com/@kaitranntt/ccs@8.11.1/dist/utils/claude-symlink-manager.js>)

Manifest-trigger-reachable source writes behavior-bearing configuration into a user or project AI-agent control surface.

Public source snippet (untrusted):

```javascript
Manifest-trigger-reachable source links an external AI-agent control path to a behavior-bearing write operation.
var __createbinding = (this && this.__createbinding) || (object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    var desc = object.getownpropertydescriptor(m, k);
    if (!desc || ("get" in desc ? !m.__esmodule : desc.writable || desc.configurable)) {
      desc = { enumerable: true, get: function() { return m[k]; } };
    }
    object.defineproperty(o, k2, desc);
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __setmoduledefault = (this && this.__setmoduledefault) || (object.create ? (function(o, v) {
    object.defineproperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] =
```

### 15. High: Trigger Reachable Persistence (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Source
- **Confidence:** 94.0%
- **Path:** dist/utils/shell-completion.js
- **Public source:** [View source](<https://unpkg.com/@kaitranntt/ccs@8.11.1/dist/utils/shell-completion.js>)

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

Public source snippet (untrusted):

```javascript
Trigger-reachable persistence chain: scripts.dev -> dist/ccs.js -> dist/dispatcher/cli-argument-parser.js -> dist/commands/root-command-router.js -> dist/commands/shell-completion-command.js -> dist/utils/shell-completion.js
L32: * Shell Completion Installer
L33: * Auto-configures shell completion for bash, zsh, fish, PowerShell
L34: */
...
L36: constructor() {
L37: this.homeDir = os.homedir();
L38: this.ccsDir = (0, config_manager_1.getCcsDir)();
...
L45: detectShell() {
L46: const shell = process.env.SHELL || '';
L47: if (shell.includes('bash'))
...
L52: return 'fish';
L53: if (process.platform === 'win32')
L54: return 'powershell';
```

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

### 17. Low: Telemetry (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Supply Chain
- **Confidence:** 70.0%

Package source references telemetry or analytics APIs.

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

### 19. Medium: Ships Build Helper (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Artifact Inventory
- **Confidence:** 70.0%
- **Path:** scripts/get-version.sh
- **Public source:** [View source](<https://unpkg.com/@kaitranntt/ccs@8.11.1/scripts/get-version.sh>)

Package ships non-JavaScript build or shell helper files.

Public source snippet (untrusted):

```shell
path = scripts/get-version.sh
kind = build_helper
sizeBytes = 323
magicHex = [redacted]
```

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

### 21. High: Previous Version Dangerous Delta (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Supply Chain
- **Confidence:** 93.0%
- **Path:** dist/commands/update-command.js
- **Public source:** [View source](<https://unpkg.com/@kaitranntt/ccs@8.11.1/dist/commands/update-command.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 = @kaitranntt/ccs@8.11.0
matchedIdentity = npm:QGthaXRyYW5udHQvY2Nz:8.11.0
similarity = 0.992
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, preinstall, prepare, postuninstall
- **Dependencies:** 20
- **Optional dependencies:** 0
- **Peer dependencies:** 0
- **Development dependencies:** 32
- **Published dependency-graph edges:** 20

### Published dependency entries
- bcrypt ^6.0.0 (Dependency)
- boxen ^5.1.2 (Dependency)
- chalk ^4.1.2 (Dependency)
- chokidar ^3.6.0 (Dependency)
- cli-table3 ^0.6.5 (Dependency)
- express ^4.18.2 (Dependency)
- express-rate-limit ^8.2.1 (Dependency)
- express-session ^1.18.2 (Dependency)
- get-port ^5.1.1 (Dependency)
- gradient-string ^2.0.2 (Dependency)
- http-proxy-agent ^7.0.2 (Dependency)
- https-proxy-agent ^7.0.6 (Dependency)
- js-yaml ^4.1.1 (Dependency)
- listr2 ^3.14.0 (Dependency)
- open ^8.4.2 (Dependency)
- ora ^5.4.1 (Dependency)
- proper-lockfile ^4.1.2 (Dependency)
- smol-toml ^1.6.1 (Dependency)
- undici ^5.29.0 (Dependency)
- ws ^8.16.0 (Dependency)

## Package metadata
- **Package:** @kaitranntt/ccs
- **Ecosystem:** npm
- **Version:** 8.11.1
- **License:** MIT
- **Version published:** 2026-11-16T13:30:38.282Z
- **Package first seen:** 2026-08-09T03:50:15.368Z
- **Package last seen:** 2026-11-24T18:05:31.659Z
- **Known versions:** 7
- **Latest version:** 8.11.1
- **Appeal under review:** No
- **Description:** Claude Codex Switch - Instant profile switching between Claude, GLM, Kimi, and more
- **Author:** Tam Nhu Tran
- **Maintainers:** kaitranntt
- **Keywords:** cli, claude, glm, ai, profile, switch
- **Runtime engines:** bun: \>=1.0.0, node: \>=18.0.0
- **Supported OS:** darwin, linux, win32
- **Artifact files:** 3304
- **Artifact unpacked size:** 16,484,412 bytes
- **Artifact signatures:** 2
- **Attestations:** Yes
- **Provenance:** https://slsa.dev/provenance/v1

## References
- [HTML security report](<https://firewall.lpm.dev/npm/@kaitranntt/ccs/v/8.11.1>)
- [Repository](<https://github.com/kaitranntt/ccs>)
- [Issues](<https://github.com/kaitranntt/ccs/issues>)
