registry  /  @sokeai/cli  /  1.0.66

@sokeai/cli@1.0.66

授客AI官方CLI工具 - 支持AI Agent Skills

Static Scan Results

scanned 8h ago · by rust-scanner

Static analysis flagged 14 finding(s) at 72.0% confidence. This version is warn-only unless an AI or security-team review confirms malicious behavior.

Static reason
One or more suspicious static signals were detected.

Decision evidence

public snapshot
Behavioral surface
Source
ChildProcessEnvironmentVarsFilesystemNetworkShell
Supply chain
HighEntropyStringsUrlStrings
ManifestNo manifest risk signals triggered.
scanned 4 file(s), 37.8 KB of source, external domains: github.com

Source & flagged code

6 flagged · loading source
package.jsonView file
scripts.postinstall = node scripts/install.js
High
Install Time Lifecycle Scripts

Package defines install-time lifecycle scripts.

package.jsonView on unpkg
scripts.postinstall = node scripts/install.js
Medium
Ambiguous Install Lifecycle Script

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

package.jsonView on unpkg
scripts/run.jsView file
2L3: const { spawn, execSync } = require('child_process'); L4: const path = require('path');
High
Child Process

Package source references child process execution.

scripts/run.jsView on unpkg · L2
scripts/install.jsView file
3const 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);
High
Install Named Payload File

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

scripts/install.jsView on unpkg · L3
391const 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 // 允许子进程独立于父进程运行
High
Runtime Package Install

Package source invokes a package manager install command at runtime.

scripts/install.jsView on unpkg · L391
scripts/push.shView file
path = scripts/push.sh kind = build_helper sizeBytes = 6312 magicHex = [redacted]
Medium
Ships Build Helper

Package ships non-JavaScript build or shell helper files.

scripts/push.shView on unpkg

Findings

5 High5 Medium4 Low
HighInstall Time Lifecycle Scriptspackage.json
HighChild Processscripts/run.js
HighShell
HighInstall Named Payload Filescripts/install.js
HighRuntime Package Installscripts/install.js
MediumAmbiguous Install Lifecycle Scriptpackage.json
MediumNetwork
MediumEnvironment Vars
MediumShips Build Helperscripts/push.sh
MediumStructural Risk Force Deep Review
LowScripts Present
LowFilesystem
LowHigh Entropy Strings
LowUrl Strings