---
canonical: "https://firewall.lpm.dev/npm/@strongflc/scode"
markdown: "https://firewall.lpm.dev/npm/@strongflc/scode/report.md"
package: "@strongflc/scode"
report_status: "published"
title: "@strongflc/scode@0.1.58 npm security report"
verdict: "policy_finding"
version: "0.1.58"
---

# @strongflc/scode@0.1.58 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
**Blocked by LPM policy** — Installs a package globally and executes its platform binary without asking the user first.

- **Verdict:** LPM policy finding
- **Product-default install policy:** Block
- **Firewall policy:** LPM policy block
- **Public report status:** Published
- **Threat category:** Policy block: runs code the user cannot review
- **Selected version:** 0.1.58
- **Selected version is latest:** No
- **Analysis source:** AI security review (lpm-firewall-ai)

Runs code the user cannot review. An LPM review rule requires blocking this behavior, but the AI review did not find malware intent; this finding does not say the publisher attacks its users.

AI assessment: malicious; recommendation: publish block. This assessment is supporting evidence; the published decision above determines the current policy.

The fallback is reachable from the CLI's default start path and globally installs then executes a downloaded companion binary without prior consent or an off-switch. Although the package is the same publisher's platform-specific companion and the behavior is visible in the launcher, the remote-code rule blocks undisclosed downloads executed on a default path.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Recorded final verdict:** Policy block
- **Recorded analysis confidence:** 86.0%
- **Started:** 2026-11-22T13:48:43.085Z
- **Finished:** 2026-11-22T13:51:24.402Z
- **Download time:** 520 ms
- **Static scan time:** 38 ms
- **AI review time:** 160757 ms
- **Total time:** 161317 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:** On the default CLI start path, a missing platform binary triggers a global npm install of a companion package, whose binary is then executed.

- **Trigger:** The user runs scode on a supported platform and neither the installed optional dependency nor the local build provides a binary.

- **Impact:** Installs a package globally and executes its platform binary without asking the user first.

- **Evidence paths:** package.json, bin/scode.cjs

- **Review source:** ai\_review

- **Reviewed:** 2026-11-22T13:51:24.402Z

### AI review details

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

- **Mechanism:** The launcher runs npm install -g for @strongflc/scode-\<platform\>, resolves its bin/scode executable, and spawns it with the CLI arguments.

- **Attack narrative:** When scode starts on a supported platform but cannot find its binary in the installed optional dependency or local build, it automatically runs a global npm install for the same-publisher platform package and executes the resulting binary. The package name and install are visible in the launcher, and the user sees a notice, but the fallback has no consent prompt or off-switch. This is a default-path download and execution, so it meets the remote-code block rule despite serving the CLI's stated platform-specific function.

- **Rationale:** The fallback is reachable from the CLI's default start path and globally installs then executes a downloaded companion binary without prior consent or an off-switch. Although the package is the same publisher's platform-specific companion and the behavior is visible in the launcher, the remote-code rule blocks undisclosed downloads executed on a default path.

- **Files touched:** global npm installation target, determined by npm configuration

- **Network endpoints:** npm registry selected by npm configuration; no registry hostname is hard-coded

### Review decision

- **Verdict:** Block (policy; no malware intent found)

- **Confidence:** 86.0%

- **Recommended action:** publish\_block

- **Intent class:** Dangerous Capability

- **False-positive risk:** Low

- **Evidence for block:** The package exposes bin/scode.cjs as its CLI and declares same-version, platform-specific @strongflc/scode-\* optional dependencies., When the platform binary cannot be resolved, the launcher calls autoInstallAndResolve on the default CLI path., The fallback runs npm install -g for the platform-specific companion package, then resolves that package's binary., The launcher spawns the resolved binary with the user's arguments and inherited terminal streams.

- **Evidence against:** The fallback targets a same-publisher companion package at the same version, consistent with the CLI's platform-specific binary design., The fallback is conditional on the binary being missing; the launcher first checks installed optional dependencies and a local build., The source prints that it is automatically installing the missing package, and the install command is visible in the launcher.

## Affected versions and remediation

This report applies to @strongflc/scode@0.1.58.

- Avoid installing @strongflc/scode@0.1.58. Remove it from direct dependencies and check your lockfile for transitive copies.
- Choose an independently verified alternative or release. This report does not establish that other versions are safe.
- If this version ran, review what the vendor code it ran could access, as this report describes. This finding does not establish malware intent.

## 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:** bin/scode.cjs
- **Public source:** [View source](<https://unpkg.com/@strongflc/scode@0.1.58/bin/scode.cjs>)

Package source references child process execution.

Public source snippet (untrusted):

```javascript
L18: 
L19: const { spawn, execSync } = require("node:child_process");
L20: const { existsSync, statSync } = require("node:fs");
```

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

Package source references shell execution.

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

Package source references filesystem APIs.

### 5. High: Runtime Package Install
- **Category:** Source
- **Confidence:** 86.0%
- **Path:** bin/scode.cjs
- **Public source:** [View source](<https://unpkg.com/@strongflc/scode@0.1.58/bin/scode.cjs>)

Package source invokes a package manager install command at runtime.

Public source snippet (untrusted):

```javascript
L3: //
L4: // 用户 `npm install -g s-code` 后走这里。主包本身不含任何原生代码——真正的
L5: // scode 二进制放在按平台拆分的 optionalDependencies 子包里（见根目录 npm/
...
L18: 
L19: const { spawn, execSync } = require("node:child_process");
L20: const { existsSync, statSync } = require("node:fs");
```

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

Package source contains URL literals.

### 7. Medium: Wildcard Dependency
- **Category:** Manifest
- **Confidence:** 80.0%

Package manifest contains a wildcard dependency.

### 8. High: Suspicious Dependency Evidence
- **Category:** Dependency
- **Confidence:** 86.0%
- **Path:** package.json
- **Public source:** [View source](<https://unpkg.com/@strongflc/scode@0.1.58/package.json>)

The package exposes bin/scode.cjs as its CLI and declares same-version, platform-specific @strongflc/scode-\* optional dependencies.

Public source snippet (untrusted):

```json
"bin": {
    "scode": "./bin/scode.cjs"
  },
  "files": [
    "bin/scode.cjs",
    "README.md",
    "LICENSE"
  ],
  "optionalDependencies": {
    "@strongflc/scode-darwin-arm64": "0.1.58",
    "@strongflc/scode-darwin-x64": "0.1.58",
    "@strongflc/scode-win32-x
```

### 9. High: Ai Review Evidence
- **Category:** Ai Review
- **Confidence:** 86.0%
- **Path:** bin/scode.cjs
- **Public source:** [View source](<https://unpkg.com/@strongflc/scode@0.1.58/bin/scode.cjs>)

When the platform binary cannot be resolved, the launcher calls autoInstallAndResolve on the default CLI path.

Public source snippet (untrusted):

```javascript
function main() {
  const target = detectTarget();
  if (!target) {
    fail(
      `当前平台 ${process.platform}-${process.arch} 暂未支持。` +
        `已支持：darwin-arm64 / darwin-x64 / win32-x64 / linux-x64。` +
        `如需其它平台请提 issue。`,
    );
  }

  let binaryPath = resolveBinary(target);

  // optionalDependencies 可能被 npm 静默跳过，自动补齐
  if (!binaryPath) {
    binaryPath = autoInstallAndResolve(target);
  }

  if (!binaryPath) {
    fail(
      `找不到 ${target.key} 平台的原生二进制。已尝试自动
```

### 10. High: Ai Review Evidence
- **Category:** Ai Review
- **Confidence:** 86.0%
- **Path:** bin/scode.cjs
- **Public source:** [View source](<https://unpkg.com/@strongflc/scode@0.1.58/bin/scode.cjs>)

The fallback runs npm install -g for the platform-specific companion package, then resolves that package's binary.

Public source snippet (untrusted):

```javascript
try {
    execSync(`npm install -g ${pkgName}`, {
      stdio: "pipe",
      timeout: 60_000,
    });
  } catch (err) {
    // 自动安装失败不抛，让上层统一报错
    return null;
  }

  // 清除 require 缓存后
```

### 11. High: Ai Review Evidence
- **Category:** Ai Review
- **Confidence:** 86.0%
- **Path:** bin/scode.cjs
- **Public source:** [View source](<https://unpkg.com/@strongflc/scode@0.1.58/bin/scode.cjs>)

The launcher spawns the resolved binary with the user's arguments and inherited terminal streams.

Public source snippet (untrusted):

```javascript
const child = spawn(binaryPath, process.argv.slice(2), {
    stdio: "inherit",
    // Windows 上 spawn 默认不 detach，正常继承 ctrl-c；不
```

### 12. High: Suspicious Dependency Evidence
- **Category:** Dependency
- **Confidence:** 86.0%
- **Path:** bin/scode.cjs
- **Public source:** [View source](<https://unpkg.com/@strongflc/scode@0.1.58/bin/scode.cjs>)

The package exposes bin/scode.cjs as its CLI and declares same-version, platform-specific @strongflc/scode-\* optional dependencies.

Public source snippet (untrusted):

```javascript
function resolveBinary(target) {
  const binName = target.platform === "win32" ? "scode.exe" : "scode";
  const pkgName = `@strongflc/scode-${target.key}`;

  // 优先走 npm 装好的子包
  try {
    return require.resolve(`${pkgNa
```

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

- **Dependencies:** 12
- **Optional dependencies:** 4
- **Peer dependencies:** 0
- **Development dependencies:** 6
- **Published dependency-graph edges:** 16

### Published dependency entries
- commander ^15.0.0 (Dependency)
- ink ^7.1.1 (Dependency)
- jszip ^3.10.1 (Dependency)
- linkedom ^0.18.13 (Dependency)
- mammoth ^1.12.0 (Dependency)
- pdf-parse ^2.4.5 (Dependency)
- pdfkit ^0.19.1 (Dependency)
- react ^19.2.7 (Dependency)
- string-width ^8.2.2 (Dependency)
- turndown ^7.2.4 (Dependency)
- xlsx ^0.18.5 (Dependency)
- zod ^4.4.3 (Dependency)
- @strongflc/scode-darwin-arm64 0.1.58 (OptionalDependency)
- @strongflc/scode-darwin-x64 0.1.58 (OptionalDependency)
- @strongflc/scode-linux-x64 0.1.58 (OptionalDependency)
- @strongflc/scode-win32-x64 0.1.58 (OptionalDependency)

## Package metadata
- **Package:** @strongflc/scode
- **Ecosystem:** npm
- **Version:** 0.1.58
- **License:** MIT
- **Version published:** 2026-11-22T13:23:06.130Z
- **Package first seen:** 2026-08-09T12:38:07.786Z
- **Package last seen:** 2026-11-23T10:31:18.681Z
- **Known versions:** 27
- **Latest version:** 0.1.59
- **Appeal under review:** No
- **Description:** 本地化终端 AI 编程 Agent（s-code）—— 独立、架构透明同类替代品
- **Keywords:** ai, agent, cli, bun, code-assistant, ai-agent, coding-assistant
- **Runtime engines:** node: \>=18
- **Artifact files:** 4
- **Artifact unpacked size:** 24,217 bytes
- **Artifact signatures:** 2
- **Attestations:** No

## References
- [HTML security report](<https://firewall.lpm.dev/npm/@strongflc/scode>)
- [Repository](<https://github.com/donzell/s-code.git>)
- [Homepage](<https://github.com/donzell/s-code>)
- [Issues](<https://github.com/donzell/s-code/issues>)
