registry  /  @crisxie/mbridge  /  1.1.9

@crisxie/mbridge@1.1.9

ModelBridge (mbridge) — 国产模型优先的 AI Coding Agent + CLI. Installs a self-contained binary (no Python required).

Static Scan Results

scanned 2d ago · by rust-scanner

Static analysis flagged 12 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
ChildProcessCryptoEnvironmentVarsFilesystemNetwork
Supply chain
HighEntropyStringsUrlStrings
ManifestNo manifest risk signals triggered.
scanned 2 file(s), 9.48 KB of source, external domains: github.com

Source & flagged code

5 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
bin/cli.jsView file
9const path = require("path"); L10: const { spawnSync } = require("child_process"); L11:
High
Child Process

Package source references child process execution.

bin/cli.jsView on unpkg · L9
9const path = require("path"); L10: const { spawnSync } = require("child_process"); L11: ... L17: if (fs.existsSync(binary)) return true; L18: // The postinstall step may have been skipped (e.g. `npm i --ignore-scripts`). L19: // Bootstrap on first run instead of failing.
High
Runtime Package Install

Package source invokes a package manager install command at runtime.

bin/cli.jsView on unpkg · L9
scripts/install.jsView file
19const path = require("path"); L20: const https = require("https"); L21: const crypto = require("crypto"); L22: const { spawnSync } = require("child_process"); L23: ... L27: const BASE = L28: process.env.MBRIDGE_DOWNLOAD_BASE || L29: `https://github.com/${REPO}/releases/download/v${VERSION}`;
High
Same File Env Network Execution

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

scripts/install.jsView on unpkg · L19

Findings

4 High4 Medium4 Low
HighInstall Time Lifecycle Scriptspackage.json
HighChild Processbin/cli.js
HighSame File Env Network Executionscripts/install.js
HighRuntime Package Installbin/cli.js
MediumAmbiguous Install Lifecycle Scriptpackage.json
MediumNetwork
MediumEnvironment Vars
MediumStructural Risk Force Deep Review
LowScripts Present
LowFilesystem
LowHigh Entropy Strings
LowUrl Strings