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

# @sokeai/cli@1.0.79 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. An install can alter SokeClaw, Zev, and WorkClaw agent behavior and run an unverified downloaded binary.

- **Verdict:** Malicious
- **Product-default install policy:** Block
- **Firewall policy:** Warn by default
- **Public report status:** Published
- **Threat category:** Soft block: AI-agent control surface
- **Selected version:** 1.0.79
- **Selected version is latest:** Yes
- **Analysis source:** AI Security Review (lpm-firewall-ai)

LPM flags this version as an AI-agent control-surface risk. Installing the package automatically downloads and enables a native executable, then injects bundled skills into multiple AI-agent workspace locations. The mutation occurs without an interactive consent check.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Verdict:** Malicious
- **Confidence:** 98.0%
- **Started:** 2026-09-01T09:24:53.062Z
- **Finished:** 2026-09-01T09:25:48.851Z
- **Download time:** 1019 ms
- **Static scan time:** 275 ms
- **AI review time:** 54493 ms
- **Total time:** 55789 ms

## Security analysis

### Published attack-surface review

- **Summary:** Installing the package automatically downloads and enables a native executable, then injects bundled skills into multiple AI-agent workspace locations. The mutation occurs without an interactive consent check.

- **Trigger:** npm installation, through postinstall.

- **Impact:** An install can alter SokeClaw, Zev, and WorkClaw agent behavior and run an unverified downloaded binary.

- **Evidence paths:** package.json, scripts/install.js

- **Review source:** ai\_review

- **Reviewed:** 2026-09-01T09:25:48.851Z

### AI review details

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

- **Mechanism:** Install-time executable download and broad AI-agent skill registration.

- **Attack narrative:** The postinstall hook runs automatically. It downloads a release binary, grants it execute permission, copies packaged skill directories into SokeClaw and Zev workspaces, and registers those skills as enabled in WorkClaw. These are behavior-bearing AI-agent control surfaces outside the installed package, and the installer does not ask for consent before mutating them.

- **Rationale:** This is an unconsented postinstall mutation of multiple external AI-agent control surfaces, combined with execution of an unverified downloaded binary. That is concrete install-hook abuse under the stated policy.

- **Files touched:** bin/soke-cli, $HOME/.sokeclaw/openai-agents/workspaces/main/skills, $HOME/.zev/openai-agents/workspaces/main/skills, $HOME/.workclaw/skills, $HOME/.workclaw/skills/registry.json

- **Network endpoints:** https://github.com/sokeai/soke-cli/releases/download/v${version}/${binaryFileName}

### Review decision

- **Verdict:** Malicious

- **Confidence:** 98.0%

- **Recommended action:** publish\_block

- **Intent class:** Malware

- **False-positive risk:** Low

- **Evidence for:** The npm postinstall hook automatically runs the installer., The installer downloads an executable from GitHub Releases and makes it executable without a checksum or signature check., During installation it copies bundled skills into SokeClaw and Zev agent workspace directories., It writes enabled skill records into the existing WorkClaw registry without user confirmation.

- **Evidence against:** The only hard-coded download endpoint is the package's GitHub repository releases URL., No source evidence shows credential collection or secret exfiltration.

## Public findings

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

Package defines install-time lifecycle scripts.

Public source snippet (untrusted):

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

### 2. Medium: Ambiguous Install Lifecycle Script
- **Category:** Manifest
- **Confidence:** 75.0%
- **Path:** package.json
- **Public source:** [View source](<https://unpkg.com/@sokeai/cli@1.0.79/package.json>)

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

Public source snippet (untrusted):

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

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

Package declares npm scripts.

### 4. High: Child Process
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** scripts/run.js
- **Public source:** [View source](<https://unpkg.com/@sokeai/cli@1.0.79/scripts/run.js>)

Package source references child process execution.

Public source snippet (untrusted):

```javascript
L2: 
L3: const { spawn, execSync } = require('child_process');
L4: const path = require('path');
```

### 5. High: Shell
- **Category:** Source
- **Confidence:** 85.0%

Package source references shell execution.

### 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. Low: Filesystem
- **Category:** Source
- **Confidence:** 70.0%

Package source references filesystem APIs.

### 9. High: Install Named Payload File
- **Category:** Source
- **Confidence:** 82.0%
- **Path:** scripts/install.js
- **Public source:** [View source](<https://unpkg.com/@sokeai/cli@1.0.79/scripts/install.js>)

Install-named source file stages remote content through filesystem writes and execution.

Public source snippet (untrusted):

```javascript
L3: const fs = require('fs');
L4: const https = require('https');
L5: const { execSync } = require('child_process');
L6: const readline = require('readline');
...
L9: const arch = os.arch();
L10: const version = require('../package.json').version;
L11: 
...
L41: function [redacted]() {
L42: const homeDir = os.homedir();
L43: const dirs = [];
...
L70: const configText = fs.readFileSync(workclawConfigPath, 'utf8');
L71: const config = JSON.parse(configText);
```

### 10. Critical: Ai Agent Control Hijack
- **Category:** Source
- **Confidence:** 90.0%
- **Path:** scripts/install.js
- **Public source:** [View source](<https://unpkg.com/@sokeai/cli@1.0.79/scripts/install.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
L13: if (!fs.existsSync(srcDir)) return;
L14: if (!fs.existsSync(destDir)) fs.mkdirSync(destDir, { recursive: true });
L15: 
...
L36: 
L37: fs.copyFileSync(srcPath, destPath);
L38: }
...
L71: const config = JSON.parse(configText);
L72: const workspaceDir = config?.defaults?.agents?.openaiAgents?.main?.workspace;
L73: if (typeof workspaceDir === 'string' && workspaceDir.length > 0) {
...
L119: try {
L120: fs.mkdirSync(targetDir, { recursive: true });
L121: for (const skillName of skillNames) {
```

### 11. High: External Ai Agent Control Surface Mutation
- **Category:** Source
- **Confidence:** 94.0%
- **Path:** scripts/local-test.js
- **Public source:** [View source](<https://unpkg.com/@sokeai/cli@1.0.79/scripts/local-test.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:
!== after) {
            fs.writefilesync(target.registrypath, json.stringify(registry, null, 2));
            logsuccess(`  ✓ 清理 registry.json (删除 ${before - after} 个条目)`);
          }
        }
      } catch (err) {
        logerror(`  ✗ 清理 registry.json 失败: ${err.message}`);
      }
    }

    console.log('');
  }
}

/**
 * 主函数
 */
function main() {
  const args = process.argv.slice(2);
  const isclean = args.includes('--clean');
  const skillarg = args.find(arg => arg.startswith('--skill='));
  const specificskill = skillarg ? sk[redacted]('=')[1] : null;

  logsection('本地 skill 测试工具');

  // 检测项目目录
  const packageroot = path.join(__dirname, '..');
  const packagedskillsdir = path.join(packageroo
```

### 12. High: Runtime Package Install
- **Category:** Source
- **Confidence:** 86.0%
- **Path:** scripts/install.js
- **Public source:** [View source](<https://unpkg.com/@sokeai/cli@1.0.79/scripts/install.js>)

Package source invokes a package manager install command at runtime.

Public source snippet (untrusted):

```javascript
L391: const runJsPath = path.join(__dirname, 'run.js');
L392: const { spawn } = require('child_process');
L393: const child = spawn(process.execPath, [runJsPath, 'setup-gui-env', '--silent'], {
L394: stdio: 'ignore', // 静默执行，不污染 npm install 输出
L395: detached: true   // 允许子进程独立于父进程运行
```

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

Package source contains high-entropy string patterns.

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

Package source contains URL literals.

### 15. Medium: Ships Build Helper
- **Category:** Artifact Inventory
- **Confidence:** 70.0%
- **Path:** scripts/push.sh
- **Public source:** [View source](<https://unpkg.com/@sokeai/cli@1.0.79/scripts/push.sh>)

Package ships non-JavaScript build or shell helper files.

Public source snippet (untrusted):

```shell
path = scripts/push.sh
kind = build_helper
sizeBytes = 6312
magicHex = [redacted]
```

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

### 17. High: Semantic Analysis Limited
- **Category:** Scanner Coverage
- **Confidence:** 100.0%
- **Path:** package.json
- **Public source:** [View source](<https://unpkg.com/@sokeai/cli@1.0.79/package.json>)

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

Public source snippet (untrusted):

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

### 18. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** scripts/install.js
- **Public source:** [View source](<https://unpkg.com/@sokeai/cli@1.0.79/scripts/install.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 = @sokeai/cli@1.0.78
matchedPath = scripts/install.js
matchedIdentity = npm:QHNva2VhaS9jbGk:1.0.78
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 19. High: Known Malware Source Similarity
- **Category:** Static
- **Confidence:** 97.0%
- **Path:** scripts/run.js
- **Public source:** [View source](<https://unpkg.com/@sokeai/cli@1.0.79/scripts/run.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 = @sokeai/cli@1.0.78
matchedPath = scripts/run.js
matchedIdentity = npm:QHNva2VhaS9jbGk:1.0.78
similarity = 1.000
summary = normalized source hash matched finalized malicious source
```

### 20. High: Known Malware Source Fingerprint Signature
- **Category:** Supply Chain
- **Confidence:** 94.0%
- **Path:** scripts/install.js
- **Public source:** [View source](<https://unpkg.com/@sokeai/cli@1.0.79/scripts/install.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 = 4aadc992d319f506
signatureType = suspicious_hashes
sourceLabel = final_verdict:malicious
matchedPackage = @sokeai/cli@1.0.78
matchedPath = scripts/install.js
matchedIdentity = npm:QHNva2VhaS9jbGk:1.0.78
similarity = 1.000
shingleOverlap = 9
summary = package final verdict is malicious
```

### 21. Critical: Previous Version Dangerous Delta
- **Category:** Supply Chain
- **Confidence:** 93.0%
- **Path:** scripts/install.js
- **Public source:** [View source](<https://unpkg.com/@sokeai/cli@1.0.79/scripts/install.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 = @sokeai/cli@1.0.74
matchedIdentity = npm:QHNva2VhaS9jbGk:1.0.74
similarity = 0.500
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:** 0
- **Optional dependencies:** 0
- **Peer dependencies:** 0
- **Development dependencies:** 0
- **Published dependency-graph edges:** 0

## Package metadata
- **Package:** @sokeai/cli
- **Ecosystem:** npm
- **Version:** 1.0.79
- **License:** MIT
- **Version published:** 2026-09-01T09:02:49.165Z
- **Package first seen:** 2026-07-01T05:34:55.476Z
- **Package last seen:** 2026-09-01T09:25:48.851Z
- **Known versions:** 6
- **Latest version:** 1.0.79
- **Appeal under review:** No
- **Description:** 授客AI官方CLI工具 - 支持AI Agent Skills
- **Author:** 授客AI
- **Keywords:** soke, cli, 授客AI, shouke, command-line, ai-agent, skills, claude-code
- **Runtime engines:** node: \>=14.0.0
- **Artifact files:** 299
- **Artifact unpacked size:** 2,177,007 bytes
- **Artifact signatures:** 2
- **Attestations:** No

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