---
canonical: "https://firewall.lpm.dev/npm/bailian-cli-runtime/v/2.5.0"
markdown: "https://firewall.lpm.dev/npm/bailian-cli-runtime/v/2.5.0.md"
package: "bailian-cli-runtime"
report_status: "published"
title: "bailian-cli-runtime@2.5.0 npm security report"
verdict: "clean"
version: "2.5.0"
---

# bailian-cli-runtime@2.5.0 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** — No malicious behavior detected. 13 low-signal pattern(s) reviewed.

- **Verdict:** Clean
- **Product-default install policy:** Allow
- **Firewall policy:** No policy match
- **Public report status:** Published
- **Threat category:** None published
- **Selected version:** 2.5.0
- **Selected version is latest:** No
- **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 manifest has no install lifecycle hook, and the inspected command output path sends output only to the local terminal. The registry request is an update check for CLI package metadata, so the scanner's command-output exfiltration signal is not supported by the inspected source.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Recorded final verdict:** Clean
- **Recorded analysis confidence:** 96.0%
- **Started:** 2026-10-20T09:40:11.242Z
- **Finished:** 2026-10-20T09:40:57.181Z
- **Download time:** 1541 ms
- **Static scan time:** 409 ms
- **AI review time:** 43988 ms
- **Total time:** 45939 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 surface was identified in the inspected source. The flagged command output is relayed to the local terminal, while the observed network request checks CLI package version metadata.

- **Trigger:** A user invokes a Command Pack operation or runs the CLI runtime.

- **Impact:** No command-output exfiltration or other confirmed attack impact was established.

- **Review source:** ai\_review

- **Reviewed:** 2026-10-20T09:40:57.181Z

### AI review details

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

- **Mechanism:** The runtime runs npm for Command Pack operations and writes its output to process.stderr; its update check requests version metadata from the npm registry.

- **Rationale:** The manifest has no install lifecycle hook, and the inspected command output path sends output only to the local terminal. The registry request is an update check for CLI package metadata, so the scanner's command-output exfiltration signal is not supported by the inspected source.

- **Network endpoints:** https://registry.npmjs.org

### Review decision

- **Verdict:** Clean

- **Confidence:** 96.0%

- **Recommended action:** mark\_clean

- **Intent class:** Benign

- **False-positive risk:** Low

- **Evidence for AI clean decision:** package.json exposes dist/index.mjs and defines no install lifecycle script., The flagged npm command path pipes output to the local process.stderr; it does not send that output in a network request., The registry request checks the latest version of the CLI package and fetches package metadata.

## Affected versions and remediation

This report applies to bailian-cli-runtime@2.5.0.

- Review the evidence and your use of bailian-cli-runtime@2.5.0 before allowing it. Restrict the permissions described in this report.
- Choose an independently verified alternative or release. This report does not establish that other versions are safe.

## Public findings

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

Package declares npm scripts.

### 2. High: Child Process
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** dist/index.mjs
- **Public source:** [View source](<https://unpkg.com/bailian-cli-runtime@2.5.0/dist/index.mjs>)

Package source references child process execution.

Public source snippet (untrusted):

```javascript
L1: import{BINARY_PRODUCT_CLIENT_NAME as e,BailianError as t,COMMAND_PACK_API_VERSION as n,CONSOLE_AUTH_FLAGS as r,Client as i,DEFAULT_INSTALL_PS1_URL as a,DEFAULT_INSTALL_SCRIPT_URL a...
L2: `),o=i.join(`
```

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

Package source references a known benign dynamic code generation pattern.

### 4. Medium: Dynamic Require
- **Category:** Source
- **Confidence:** 75.0%
- **Path:** dist/index.mjs
- **Public source:** [View source](<https://unpkg.com/bailian-cli-runtime@2.5.0/dist/index.mjs>)

Package source references dynamic require/import behavior.

Public source snippet (untrusted):

```javascript
L37: `),e.notes&&e.notes.length>0){n.write(`\n${r(this.localize(L.notes))}\n`);for(let t of e.notes)n.write(`  ${this.localize(t)}\n`)}if(e.exampleArgs&&e.exampleArgs.length>0){n.write(...
L38: `)}};function Rt(e,t,n=e=>_t(s).localize(e)){try{let{path:r,rest:i,hasHelpFlag:a,hasVersionFlag:o}=xt(e,n),s=t.locate(r);if(s.kind===`unknown`&&!o&&!a)return{kind:`usageError`,erro...
L39: `),process.stderr.write(`  ${l}━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━${f}\n`),g?process.stderr.write(`  ${l}⚡ Major update detected: ${e} → ${n}${f}\n`):process.stderr.writ...
```

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

Package source references network APIs.

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

Package source references environment variables.

### 7. Low: Filesystem
- **Category:** Source
- **Confidence:** 70.0%

Package source references filesystem APIs.

### 8. High: Same File Env Network Execution
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** dist/index.mjs
- **Public source:** [View source](<https://unpkg.com/bailian-cli-runtime@2.5.0/dist/index.mjs>)

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

Public source snippet (untrusted):

```javascript
L1: import{BINARY_PRODUCT_CLIENT_NAME as e,BailianError as t,COMMAND_PACK_API_VERSION as n,CONSOLE_AUTH_FLAGS as r,Client as i,DEFAULT_INSTALL_PS1_URL as a,DEFAULT_INSTALL_SCRIPT_URL a...
L2: `),o=i.join(`
```

### 9. High: Command Output Exfiltration
- **Category:** Source
- **Confidence:** 82.0%
- **Path:** dist/index.mjs
- **Public source:** [View source](<https://unpkg.com/bailian-cli-runtime@2.5.0/dist/index.mjs>)

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

Public source snippet (untrusted):

```javascript
L1: import{BINARY_PRODUCT_CLIENT_NAME as e,BailianError as t,COMMAND_PACK_API_VERSION as n,CONSOLE_AUTH_FLAGS as r,Client as i,DEFAULT_INSTALL_PS1_URL as a,DEFAULT_INSTALL_SCRIPT_URL a...
L2: `),o=i.join(`
```

### 10. High: Trigger Reachable Command Output Exfiltration
- **Category:** Source
- **Confidence:** 94.0%
- **Path:** dist/index.mjs
- **Public source:** [View source](<https://unpkg.com/bailian-cli-runtime@2.5.0/dist/index.mjs>)

A manifest entrypoint or package-local install chain reaches command-output exfiltration behavior.

Public source snippet (untrusted):

```javascript
Trigger-reachable command-output exfiltration chain: manifest.exports -> dist/index.mjs
L1: import{BINARY_PRODUCT_CLIENT_NAME as e,BailianError as t,COMMAND_PACK_API_VERSION as n,CONSOLE_AUTH_FLAGS as r,Client as i,DEFAULT_INSTALL_PS1_URL as a,DEFAULT_INSTALL_SCRIPT_URL a...
L2: `),o=i.join(`
```

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

Package source contains high-entropy string patterns.

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

Package source contains URL literals.

### 13. Medium: Structural Risk Force Deep Review
- **Category:** Artifact Inventory
- **Confidence:** 70.0%

Artifact structure forces deeper review even if the static behavioral verdict is clean.

## Dependencies and install lifecycle
- **Lifecycle scripts present:** No

- **Dependencies:** 4
- **Optional dependencies:** 0
- **Peer dependencies:** 0
- **Development dependencies:** 8
- **Published dependency-graph edges:** 4

### Published dependency entries
- bailian-cli-core 2.5.0 (Dependency)
- boxen ^8.0.1 (Dependency)
- chalk ^5.6.2 (Dependency)
- undici ^6.27.0 (Dependency)

## Package metadata
- **Package:** bailian-cli-runtime
- **Ecosystem:** npm
- **Version:** 2.5.0
- **License:** Apache-2.0
- **Version published:** 2026-10-20T09:38:55.676Z
- **Package first seen:** 2026-07-01T08:11:01.612Z
- **Package last seen:** 2026-11-03T12:17:12.584Z
- **Known versions:** 34
- **Latest version:** 2.8.0
- **Appeal under review:** No
- **Description:** Runtime framework for bailian-cli (createCli, registry, args, output, pipeline). See https://www.npmjs.com/package/bailian-cli for usage.
- **Author:** Aliyun Model Studio
- **Maintainers:** ali-pizza
- **Runtime engines:** node: \>=18.17.0
- **Artifact files:** 4
- **Artifact unpacked size:** 260,796 bytes
- **Artifact signatures:** 2
- **Attestations:** Yes
- **Provenance:** https://slsa.dev/provenance/v1

## References
- [HTML security report](<https://firewall.lpm.dev/npm/bailian-cli-runtime/v/2.5.0>)
- [Repository](<https://github.com/modelstudioai/cli>)
- [Homepage](<https://bailian.console.aliyun.com/cli>)
- [Issues](<https://github.com/modelstudioai/cli/issues>)
