registry  /  @cnbcool/cnb-cli  /  1.10.6

@cnbcool/cnb-cli@1.10.6

CNB OpenAPI 命令行工具,基于 CNB 平台 Swagger 自动生成,支持 Issues、PR、Git、组织管理等全部 API 操作

Static Scan Results

scanned 3h ago · by rust-scanner

Static analysis flagged 13 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
ChildProcessEnvironmentVarsFilesystemNetwork
Supply chain
HighEntropyStringsMinifiedObfuscatedUrlStrings
ManifestNo manifest risk signals triggered.
scanned 2 file(s), 1.03 MB of source, external domains: api.cnb.cool, cnb.cool, cnb.woa.com, docs.cnb.cool, dummy.example

Source & flagged code

5 flagged · loading source
dist/index.jsView file
14(Did you mean one of ${i.join(", ")}?)`;if(i.length===1)return` L15: (Did you mean ${i[0]}?)`;return""}xn.suggestSimilar=Du});var so=o((xe)=>{var Cu=require("node:events").EventEmitter,Oe=require("node:child_process"),F=require("node:path"),ge=requi... L16: - specify the name in Command constructor or using .name()`);if(t=t||{},t.isDefault)this._defaultCommandName=e._name;if(t.noHelp||t.hidden)e._hidden=!0;return this._registerCommand...
High
Child Process

Package source references child process execution.

dist/index.jsView on unpkg · L14
115`)}function nb(e,t){return va(e.split(` L116: `),t)}function fa(e,t){let r=Y(e),i=cb(t);return Lm(i.replacer?rb(r,i.replacer):r,i,0)}function va(e,t){let r=db(t),i=Xm(Yt(e,{indent:r.indent,strict:r.strict}));if(r.expandPaths==... L117: PR 页面路径: ${s} L118: `)}return r}}}}},quickCommands:{issues:[{shortName:"get",realTool:"get-issue",description:"获取详情"},{shortName:"list-comments",realTool:"list-issue-comments",description:"获取评论列表"},{s... L119: `);zu(m,r,y),n.add(y)}let a=uS(r);for(let y of a){if(n.has(y.shortName))continue;let l=p.command(y.shortName).description(`[快捷] ${y.description}`).option("-v, --verbose","输出完整原始响应"... L120: 请打开以下链接完成授权:
High
Same File Env Network Execution

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

dist/index.jsView on unpkg · L115
21- if the default executable name is not suitable, use the executableFile option to supply a custom name or path L22: - ${i}`;throw Error(s)}_executeSubCommand(e,t){t=t.slice();let r=!1,i=[".js",".ts",".tsx",".mjs",".cjs"];function s(l,u){let m=F.resolve(l,u);if(ge.existsSync(m))return m;if(i.incl... L23: `,this._outputConfiguration.writeErr),typeof this._showHelpAfterError==="string")this._outputConfiguration.writeErr(`${this._showHelpAfterError} ... L25: `),this.outputHelp({error:!0});let r=t||{},i=r.exitCode||1,s=r.code||"commander.error";this._exit(i,s,e)}_parseOptionsEnv(){this.options.forEach((e)=>{if(e.envVar&&e.envVar in P.en... L26: `),this._exit(0,"commander.version",e)}),this}description(e,t){if(e===void 0&&t===void 0)return this._description;if(this._description=e,t)this._argsDescription=t;return this}summa... L27: Expecting one of '${r.join("', '")}'`);let i=`${e}Help`;return this.on(i,(s)=>{let p;if(typeof t==="function")p=t({error:s.error,command:s.command});else p=t;if(p)s.write(`${p} ... L33: ${"cnb"} <module> <tool> --help L34: 快捷: ${"cnb"} --short`}});var co=o((it)=>{Object.defineProperty(it,"__esModule",{value:!0});it.trimSummary=og;function og(e){if(!e)retu
High
Command Output Exfiltration

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

dist/index.jsView on unpkg · L21
2"use strict"; L3: var{defineProperty:$e,getOwnPropertyNames:Mu,getOwnPropertyDescriptor:Yu}=Object,$u=Object.prototype.hasOwnProperty;var Hn=new WeakMap,Zu=(e)=>{var t=Hn.get(e),r;if(t)return t;if(t... L4: `)}displayWidth(e){return On(e).length}styleTitle(e){return e}styleUsage(e){return e.split(" ").map((t)=>{if(t==="[options]")return this.styleOptionText(t);if(t==="[command]")retur... ... L14: (Did you mean one of ${i.join(", ")}?)`;if(i.length===1)return` L15: (Did you mean ${i[0]}?)`;return""}xn.suggestSimilar=Du});var so=o((xe)=>{var Cu=require("node:events").EventEmitter,Oe=require("node:child_process"),F=require("node:path"),ge=requi... L16: - specify the name in Command constructor or using .name()`);if(t=t||{},t.isDefault)this._defaultCommandName=e._name;if(t.noHelp||t.hidden)e._hidden=!0;return this._registerCommand... ... L33: ${"cnb"} <module> <tool> --help L34: 快捷: ${"cnb"} --short`}});var co=o((it)=>{Object.defineProperty(it,"__esModule",{value:!0});it.trimSummary=og;function og(e){if(!e)return"";let t=e.match(/^(.*?[\u4e00-\u9fff].*?)[。... L35: made available for inspection by other applications.`},apiVersion:{type:"string",description:"The API Version of this ch
High
Sandbox Evasion Gated Capability

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

dist/index.jsView on unpkg · L2
2"use strict"; L3: var{defineProperty:$e,getOwnPropertyNames:Mu,getOwnPropertyDescriptor:Yu}=Object,$u=Object.prototype.hasOwnProperty;var Hn=new WeakMap,Zu=(e)=>{var t=Hn.get(e),r;if(t)return t;if(t... L4: `)}displayWidth(e){return On(e).length}styleTitle(e){return e}styleUsage(e){return e.split(" ").map((t)=>{if(t==="[options]")return this.styleOptionText(t);if(t==="[command]")retur... ... L14: (Did you mean one of ${i.join(", ")}?)`;if(i.length===1)return` L15: (Did you mean ${i[0]}?)`;return""}xn.suggestSimilar=Du});var so=o((xe)=>{var Cu=require("node:events").EventEmitter,Oe=require("node:child_process"),F=require("node:path"),ge=requi... L16: - specify the name in Command constructor or using .name()`);if(t=t||{},t.isDefault)this._defaultCommandName=e._name;if(t.noHelp||t.hidden)e._hidden=!0;return this._registerCommand... ... L33: ${"cnb"} <module> <tool> --help L34: 快捷: ${"cnb"} --short`}});var co=o((it)=>{Object.defineProperty(it,"__esModule",{value:!0});it.trimSummary=og;function og(e){if(!e)return"";let t=e.match(/^(.*?[\u4e00-\u9fff].*?)[。... L35: made available for inspection by other applications.`},apiVersion:{type:"string",description:"The API Version of this ch
Medium
Install Persistence

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

dist/index.jsView on unpkg · L2

Findings

4 High4 Medium5 Low
HighChild Processdist/index.js
HighSame File Env Network Executiondist/index.js
HighCommand Output Exfiltrationdist/index.js
HighSandbox Evasion Gated Capabilitydist/index.js
MediumNetwork
MediumEnvironment Vars
MediumInstall Persistencedist/index.js
MediumStructural Risk Force Deep Review
LowScripts Present
LowFilesystem
LowObfuscated
LowHigh Entropy Strings
LowUrl Strings