---
canonical: "https://firewall.lpm.dev/npm/xsdsh-purge-next"
markdown: "https://firewall.lpm.dev/npm/xsdsh-purge-next/v/1.0.0.md"
package: "xsdsh-purge-next"
report_status: "published"
title: "xsdsh-purge-next@1.0.0 npm security report"
verdict: "malicious"
version: "1.0.0"
---

# xsdsh-purge-next@1.0.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
**Blocked by malware advisory** — OpenSSF/OSV malware advisory MAL-2026-19117 identifies this version as malicious and supplies the Firewall block. LPM AI assessed this version as clean; the assessments disagree.

- **Verdict:** Malicious
- **Product-default install policy:** Block
- **Firewall policy:** Trusted malware advisory block
- **Public report status:** Published
- **Threat category:** Malware
- **Selected version:** 1.0.0
- **Selected version is latest:** Yes
- **Analysis source:** OpenSSF/OSV malicious advisory (OpenSSF/OSV)

OpenSSF/OSV malware advisory MAL-2026-19117 identifies this version as malicious and supplies the Firewall block. LPM AI assessed this version as clean; the assessments disagree.

LPM's AI review found this version clean. That disagrees with the OpenSSF/OSV advisory, which supplies the block.

- **LPM AI reviewed:** 2026-11-11T17:50:03.373Z

OpenSSF/OSV advisory MAL-2026-19117 confirms this npm version as malicious. Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Recorded final verdict:** Malicious
- **Recorded analysis confidence:** 91.0%
- **Started:** 2026-11-11T17:48:54.322Z
- **Finished:** 2026-11-11T17:50:03.373Z
- **Download time:** 1815 ms
- **Static scan time:** 6009 ms
- **AI review time:** 61225 ms
- **Total time:** 69051 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 was identified; the reviewed process execution and host integration serve the package's DSH plugin features.

- **Trigger:** Plugin startup or an explicit image-analysis, restart, or update operation.

- **Impact:** No credential theft, unrelated network collection, or other attack behavior was identified in the reviewed paths.

- **Review source:** ai\_review

- **Reviewed:** 2026-11-11T17:50:03.373Z

### AI review details

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

- **Mechanism:** The plugin supports host patch management and web-port preflight; the image tool invokes ffprobe and ffmpeg on a user-supplied image.

- **Rationale:** The package is a DSH plugin with host integration and red-team tooling. Auto-apply and auto-update are disabled by default, and the reviewed process execution is associated with user-facing restart, update, or image-analysis features; no malicious data flow was found.

### Review decision

- **Verdict:** Clean

- **Confidence:** 91.0%

- **Recommended action:** mark\_clean

- **Intent class:** Benign

- **False-positive risk:** Low

- **Evidence for AI clean decision:** Startup auto-apply and auto-update are disabled by default., The web preflight is documented as fixing port conflicts for \`dsh web\` and only acts on that command., Image analysis runs ffprobe and ffmpeg on a file supplied to the tool.

- **Evidence against:** The plugin can modify the host CLI to add a preflight import during its runtime setup., The package includes shell and process execution for restart, update, and analysis features.

## Affected versions and remediation

This report applies to xsdsh-purge-next@1.0.0.

- Avoid installing xsdsh-purge-next@1.0.0. 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, investigate the affected machine and build environment. Rotate credentials it could access and rebuild from a trusted environment.

## Public findings

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

Package declares npm scripts.

### 2. Medium: Secret Pattern
- **Category:** Secrets
- **Confidence:** 75.0%
- **Path:** docs/prompt/refusal-t4-final-v3.json
- **Public source:** [View source](<https://unpkg.com/xsdsh-purge-next@1.0.0/docs/prompt/refusal-t4-final-v3.json>)

Package contains a possible secret pattern.

Public source snippet (untrusted):

```json
patternName = generic_password
severity = medium
line = 484
```

### 3. High: Child Process
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** tools/image-analyze.mjs
- **Public source:** [View source](<https://unpkg.com/xsdsh-purge-next@1.0.0/tools/image-analyze.mjs>)

Package source references child process execution.

Public source snippet (untrusted):

```javascript
L13: import { readFileSync, existsSync } from 'node:fs'
L14: import { execFileSync } from 'node:child_process'
L15:
```

### 4. High: Shell
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** lib/redteam/ui.js
- **Public source:** [View source](<https://unpkg.com/xsdsh-purge-next@1.0.0/lib/redteam/ui.js>)

Package source references shell execution.

Public source snippet (untrusted):

```javascript
L173: · Windows 上 npm/npx/pnpm/yarn 都是 .cmd 批处理，Node 的 spawn 不走
L174: shell 时直接找不到可执行文件 —— 必须 `shell: true`（或补 .cmd 后缀）
L175: 才能解析 PATHEXT，不然红队面板「检测新版本」永远 code=-1。 */
```

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

Package source references a known benign dynamic code generation pattern.

### 6. Medium: Dynamic Require
- **Category:** Source
- **Confidence:** 75.0%
- **Path:** client.js
- **Public source:** [View source](<https://unpkg.com/xsdsh-purge-next@1.0.0/client.js>)

Package source references dynamic require/import behavior.

Public source snippet (untrusted):

```javascript
L5: Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
L6: let react = require("react");
L7: const h = react.createElement;
```

### 7. Medium: Unsafe Vm Context
- **Category:** Source
- **Confidence:** 68.0%
- **Path:** scripts/test-client-bundle.mjs
- **Public source:** [View source](<https://unpkg.com/xsdsh-purge-next@1.0.0/scripts/test-client-bundle.mjs>)

Package source executes code through a VM context API.

Public source snippet (untrusted):

```javascript
L10: * 验证四件事：
L11: *   1. bundle 顶层注册的 id 必须 === package.json 的 name
L12: *   2. cordis.patch.yml 里每一条装载行的 name 必须 === package.json 的 name
...
L181: const bundleText = readFileSync(bundlePath, "utf8");
L182: const pkg = JSON.parse(readFileSync(pkgPath, "utf8"));
L183: const pkgName = String(pkg.name || "");
...
L189: head: makeElement("head"),
L190: body: makeElement("body"),
L191: documentElement: makeElement("html"),
...
L218: navigator: { userAgent: "Mozilla/5.0 (Windows NT 10.0; Win64; x64) test-runner", platform: "Win32", language: "zh-CN", languages: ["zh-CN", "en"], clipboard: { writeText: async () ...
L219: location: { href: "http://127.0.0.1:1/", hostname: "127.0.0.1", port: "1", protocol: "http:", origin: "http://127.0.0.1:1", pathname: "/", search: "", hash: "" },
L220: console,
```

### 8. Low: Weak Crypto
- **Category:** Source
- **Confidence:** 64.0%
- **Path:** lib/core.js
- **Public source:** [View source](<https://unpkg.com/xsdsh-purge-next@1.0.0/lib/core.js>)

Package source references weak cryptographic algorithms.

Public source snippet (untrusted):

```javascript
L4: import { createHash } from "node:crypto";
L5: import { execFileSync, spawn } from "node:child_process";
L6: import { createRequire } from "node:module";
...
L57: 
L58: const isWindows = process.platform === "win32";
L59: const SHIM_NAMES = ["dsh.cmd", "dsh.ps1", "dsh"];
...
L156: function pathEnvDirs() {
L157: const raw = process.env.PATH || process.env.Path || "";
L158: return raw.split(path.delimiter).map((d) => d.trim()).filter(Boolean);
...
L261: const AI_RESOLVE_IDS = [
L262: "@deepseek-ai/dsh-agent-instructions/package.json",
L263: "@deepseek-ai/dsh-agent-instructions",
```

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

Package source references network APIs.

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

Package source references environment variables.

### 11. Medium: Install Persistence
- **Category:** Source
- **Confidence:** 75.0%
- **Path:** lib/core.js
- **Public source:** [View source](<https://unpkg.com/xsdsh-purge-next@1.0.0/lib/core.js>)

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

Public source snippet (untrusted):

```javascript
L4: import { createHash } from "node:crypto";
L5: import { execFileSync, spawn } from "node:child_process";
L6: import { createRequire } from "node:module";
...
L57: 
L58: const isWindows = process.platform === "win32";
L59: const SHIM_NAMES = ["dsh.cmd", "dsh.ps1", "dsh"];
...
L156: function pathEnvDirs() {
L157: const raw = process.env.PATH || process.env.Path || "";
L158: return raw.split(path.delimiter).map((d) => d.trim()).filter(Boolean);
...
L261: const AI_RESOLVE_IDS = [
L262: "@deepseek-ai/dsh-agent-instructions/package.json",
L263: "@deepseek-ai/dsh-agent-instructions",
```

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

Package source references filesystem APIs.

### 13. High: Same File Env Network Execution
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** lib/redteam/ui.js
- **Public source:** [View source](<https://unpkg.com/xsdsh-purge-next@1.0.0/lib/redteam/ui.js>)

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

Public source snippet (untrusted):

```javascript
L18: import { homedir } from 'node:os'
L19: import { spawn, execFileSync } from 'node:child_process'
L20: import { request as httpsRequest } from 'node:https'
L21: import { dispatch, dispatchAsync } from './store-core.js'
...
L32: function dshHomeOf() {
L33: if (process.env.DSH_HOME) return process.env.DSH_HOME
L34: return join(homedir(), '.dsh')
```

### 14. Critical: Reverse Shell
- **Category:** Source
- **Confidence:** 92.0%
- **Path:** lib/restart-web.js
- **Public source:** [View source](<https://unpkg.com/xsdsh-purge-next@1.0.0/lib/restart-web.js>)

Source matches reverse-shell style process and socket wiring.

Public source snippet (untrusted):

```javascript
L1: import net from "node:net";
L2: import { spawn, spawnSync } from "node:child_process";
L3: import { envForDetachedSpawn } from "./core.js";
L4: 
L5: const encoded = process.env.DSH_PURGE_RESTART;
L6: if (!encoded) process.exit(1);
...
L9: try {
L10: info = JSON.parse(encoded);
L11: } catch {
...
L30: if (!pid || pid === process.pid) return;
L31: if (process.platform === "win32") {
L32: spawnSync("taskkill", ["/PID", String(pid), "/F"], { windowsHide: true, stdio: "ignore" });
```

### 15. High: Sandbox Evasion Gated Capability
- **Category:** Source
- **Confidence:** 84.0%
- **Path:** lib/restart-web.js
- **Public source:** [View source](<https://unpkg.com/xsdsh-purge-next@1.0.0/lib/restart-web.js>)

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

Public source snippet (untrusted):

```javascript
L1: import net from "node:net";
L2: import { spawn, spawnSync } from "node:child_process";
L3: import { envForDetachedSpawn } from "./core.js";
L4: 
L5: const encoded = process.env.DSH_PURGE_RESTART;
L6: if (!encoded) process.exit(1);
...
L9: try {
L10: info = JSON.parse(encoded);
L11: } catch {
...
L30: if (!pid || pid === process.pid) return;
L31: if (process.platform === "win32") {
L32: spawnSync("taskkill", ["/PID", String(pid), "/F"], { windowsHide: true, stdio: "ignore" });
```

### 16. High: Trigger Reachable Persistence
- **Category:** Source
- **Confidence:** 94.0%
- **Path:** lib/core.js
- **Public source:** [View source](<https://unpkg.com/xsdsh-purge-next@1.0.0/lib/core.js>)

A manifest entrypoint or package-local install chain reaches persistence behavior.

Public source snippet (untrusted):

```javascript
Trigger-reachable persistence chain: manifest.main -> lib/index.js -> lib/core.js
L4: import { createHash } from "node:crypto";
L5: import { execFileSync, spawn } from "node:child_process";
L6: import { createRequire } from "node:module";
...
L57: 
L58: const isWindows = process.platform === "win32";
L59: const SHIM_NAMES = ["dsh.cmd", "dsh.ps1", "dsh"];
...
L156: function pathEnvDirs() {
L157: const raw = process.env.PATH || process.env.Path || "";
L158: return raw.split(path.delimiter).map((d) => d.trim()).filter(Boolean);
...
L261: const AI_RESOLVE_IDS = [
L262: "@deepseek-ai/dsh-agent-instructions/package.json",
L263: "@deepseek-ai/dsh-agent-instructions",
```

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

Package source contains high-entropy string patterns.

### 18. Low: Telemetry
- **Category:** Supply Chain
- **Confidence:** 70.0%

Package source references telemetry or analytics APIs.

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

Package source contains URL literals.

### 20. Medium: Ships Build Helper
- **Category:** Artifact Inventory
- **Confidence:** 70.0%
- **Path:** tools/wallpaper-live-check.py
- **Public source:** [View source](<https://unpkg.com/xsdsh-purge-next@1.0.0/tools/wallpaper-live-check.py>)

Package ships non-JavaScript build or shell helper files.

Public source snippet (untrusted):

```python
path = tools/wallpaper-live-check.py
kind = build_helper
sizeBytes = 3063
magicHex = [redacted]
```

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

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

### 22. High: Semantic Analysis Limited
- **Category:** Scanner Coverage
- **Confidence:** 100.0%
- **Path:** lib/ui/shell/00-loader.js
- **Public source:** [View source](<https://unpkg.com/xsdsh-purge-next@1.0.0/lib/ui/shell/00-loader.js>)

A bounded semantic-analysis stage reached its safety limit; remaining detectors completed, but this package requires AI review.

Public source snippet (untrusted):

```javascript
stage = ast_semantic_analysis; reason = ast_parse_error; limitedFiles = 4
```

### 23. Medium: Secret Pattern
- **Category:** Secrets
- **Confidence:** 75.0%
- **Path:** docs/prompt/refusal-t6-temp0-v6.json
- **Public source:** [View source](<https://unpkg.com/xsdsh-purge-next@1.0.0/docs/prompt/refusal-t6-temp0-v6.json>)

Hardcoded password in docs/prompt/refusal-t6-temp0-v6.json

Public source snippet (untrusted):

```json
patternName = generic_password
severity = medium
line = 484
```

### 24. Medium: Secret Pattern
- **Category:** Secrets
- **Confidence:** 75.0%
- **Path:** docs/prompt/refusal-t6-temp0-v6.json
- **Public source:** [View source](<https://unpkg.com/xsdsh-purge-next@1.0.0/docs/prompt/refusal-t6-temp0-v6.json>)

Hardcoded password in docs/prompt/refusal-t6-temp0-v6.json

Public source snippet (untrusted):

```json
patternName = generic_password
severity = medium
line = 485
```

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

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

## Package metadata
- **Package:** xsdsh-purge-next
- **Ecosystem:** npm
- **Version:** 1.0.0
- **License:** MIT
- **Version published:** 2026-11-10T18:53:27.308Z
- **Package first seen:** 2026-11-09T02:01:53.990Z
- **Package last seen:** 2026-11-11T17:50:03.373Z
- **Known versions:** 2
- **Latest version:** 1.0.0
- **Appeal under review:** No

## References
- [HTML security report](<https://firewall.lpm.dev/npm/xsdsh-purge-next/v/1.0.0>)
- [OpenSSF/OSV advisory](<https://osv.dev/vulnerability/MAL-2026-19117>)
- [ADVISORY](<https://github.com/advisories/GHSA-qpc3-24mv-6qrp>)
