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

# dsh-purge@1.2.1 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-18707 identifies this version as malicious and supplies the Firewall block. LPM AI assessed this version as suspicious; 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.2.1
- **Selected version is latest:** Yes
- **Analysis source:** OpenSSF/OSV malicious advisory (OpenSSF/OSV)

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

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

- **LPM AI reviewed:** 2026-11-05T17:35:03.517Z

OpenSSF/OSV advisory MAL-2026-18707 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:** 84.0%
- **Started:** 2026-11-05T17:34:14.379Z
- **Finished:** 2026-11-05T17:35:03.517Z
- **Download time:** 762 ms
- **Static scan time:** 4264 ms
- **AI review time:** 44110 ms
- **Total time:** 49138 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:** The package provides jailbreak prompts that can weaken a model’s safeguards during red-team use; no hidden attack behavior was identified.

- **Trigger:** A user installs and configures the plugin, then uses its jailbreak prompt features.

- **Impact:** Models may produce outputs that their normal safeguards would restrict.

- **Evidence paths:** package.json, README.md

- **Review source:** ai\_review

- **Reviewed:** 2026-11-05T17:35:03.517Z

### AI review details

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

- **Mechanism:** It advertises model-specific, swappable jailbreak prompts for DeepSeek Harness.

- **Rationale:** This is an openly described red-team jailbreak tool, so its core capability can weaken model safeguards and merits a warning. The reviewed sources show no install-time attack, and automatic patching is disabled by default.

### Review decision

- **Verdict:** Suspicious

- **Confidence:** 84.0%

- **Recommended action:** downgrade\_to\_warn

- **Intent class:** Unknown

- **False-positive risk:** Medium

- **Evidence for AI warning decision:** The package describes itself as a DeepSeek Harness jailbreak with swappable prompts for different models., The README identifies the package as a cybersecurity red-team plugin and advertises jailbreak prompts.

- **Evidence against:** Automatic patching is disabled by default; the package configuration sets autoApplyOnStart to false., The Android installer tells users to explicitly run /purge apply or use the panel to apply changes., The manifest declares no install, preinstall, or postinstall lifecycle script.

## Affected versions and remediation

This report applies to dsh-purge@1.2.1.

- Avoid installing dsh-purge@1.2.1. 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. High: Child Process
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** scripts/patch-client-dock.mjs
- **Public source:** [View source](<https://unpkg.com/dsh-purge@1.2.1/scripts/patch-client-dock.mjs>)

Package source references child process execution.

Public source snippet (untrusted):

```javascript
L7: import { fileURLToPath } from "node:url";
L8: import { spawnSync } from "node:child_process";
L9:
```

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

Package source references shell execution.

Public source snippet (untrusted):

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

### 4. Medium: Dynamic Require
- **Category:** Source
- **Confidence:** 75.0%
- **Path:** client.js
- **Public source:** [View source](<https://unpkg.com/dsh-purge@1.2.1/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;
```

### 5. Low: Weak Crypto
- **Category:** Source
- **Confidence:** 64.0%
- **Path:** lib/core.js
- **Public source:** [View source](<https://unpkg.com/dsh-purge@1.2.1/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";
...
L40: 
L41: const isWindows = process.platform === "win32";
L42: const SHIM_NAMES = ["dsh.cmd", "dsh.ps1", "dsh"];
...
L181: function pathEnvDirs() {
L182: const raw = process.env.PATH || process.env.Path || "";
L183: return raw.split(path.delimiter).map((d) => d.trim()).filter(Boolean);
...
L248: const AI_RESOLVE_IDS = [
L249: "@deepseek-ai/dsh-agent-instructions/package.json",
L250: "@deepseek-ai/dsh-agent-instructions",
```

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

Package source references network APIs.

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

Package source references environment variables.

### 8. Medium: Install Persistence
- **Category:** Source
- **Confidence:** 75.0%
- **Path:** lib/core.js
- **Public source:** [View source](<https://unpkg.com/dsh-purge@1.2.1/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";
...
L40: 
L41: const isWindows = process.platform === "win32";
L42: const SHIM_NAMES = ["dsh.cmd", "dsh.ps1", "dsh"];
...
L181: function pathEnvDirs() {
L182: const raw = process.env.PATH || process.env.Path || "";
L183: return raw.split(path.delimiter).map((d) => d.trim()).filter(Boolean);
...
L248: const AI_RESOLVE_IDS = [
L249: "@deepseek-ai/dsh-agent-instructions/package.json",
L250: "@deepseek-ai/dsh-agent-instructions",
```

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

Package source references filesystem APIs.

### 10. High: Same File Env Network Execution
- **Category:** Source
- **Confidence:** 85.0%
- **Path:** lib/uninstall-restart.js
- **Public source:** [View source](<https://unpkg.com/dsh-purge@1.2.1/lib/uninstall-restart.js>)

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 fs from "node:fs";
L2: import net from "node:net";
L3: import { spawn } from "node:child_process";
L4: 
L5: const encoded = process.env.DSH_PURGE_RESTART;
L6: if (!encoded) process.exit(1);
```

### 11. Critical: Reverse Shell
- **Category:** Source
- **Confidence:** 92.0%
- **Path:** lib/restart-web.js
- **Public source:** [View source](<https://unpkg.com/dsh-purge@1.2.1/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 fs from "node:fs";
L3: import path from "node:path";
L4: import { spawn } from "node:child_process";
L5: import { envForDetachedSpawn } from "./core.js";
...
L14: 
L15: const encoded = process.env.DSH_PURGE_RESTART;
L16: if (!encoded) process.exit(1);
...
L19: try {
L20: info = JSON.parse(encoded);
L21: } catch {
...
L53: if (!url) return;
```

### 12. High: Sandbox Evasion Gated Capability
- **Category:** Source
- **Confidence:** 84.0%
- **Path:** lib/restart-web.js
- **Public source:** [View source](<https://unpkg.com/dsh-purge@1.2.1/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 fs from "node:fs";
L3: import path from "node:path";
L4: import { spawn } from "node:child_process";
L5: import { envForDetachedSpawn } from "./core.js";
...
L14: 
L15: const encoded = process.env.DSH_PURGE_RESTART;
L16: if (!encoded) process.exit(1);
...
L19: try {
L20: info = JSON.parse(encoded);
L21: } catch {
...
L53: if (!url) return;
```

### 13. High: Trigger Reachable Persistence
- **Category:** Source
- **Confidence:** 94.0%
- **Path:** lib/core.js
- **Public source:** [View source](<https://unpkg.com/dsh-purge@1.2.1/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";
...
L40: 
L41: const isWindows = process.platform === "win32";
L42: const SHIM_NAMES = ["dsh.cmd", "dsh.ps1", "dsh"];
...
L181: function pathEnvDirs() {
L182: const raw = process.env.PATH || process.env.Path || "";
L183: return raw.split(path.delimiter).map((d) => d.trim()).filter(Boolean);
...
L248: const AI_RESOLVE_IDS = [
L249: "@deepseek-ai/dsh-agent-instructions/package.json",
L250: "@deepseek-ai/dsh-agent-instructions",
```

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

Package source contains high-entropy string patterns.

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

Package source references telemetry or analytics APIs.

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

Package source contains URL literals.

### 17. Medium: Ships Build Helper
- **Category:** Artifact Inventory
- **Confidence:** 70.0%
- **Path:** scripts/redteam-setup.sh
- **Public source:** [View source](<https://unpkg.com/dsh-purge@1.2.1/scripts/redteam-setup.sh>)

Package ships non-JavaScript build or shell helper files.

Public source snippet (untrusted):

```shell
path = scripts/redteam-setup.sh
kind = build_helper
sizeBytes = 25046
magicHex = [redacted]
```

### 18. 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.

### 19. High: Semantic Analysis Limited
- **Category:** Scanner Coverage
- **Confidence:** 100.0%
- **Path:** lib/identity.js\#virtual:normalized:round1
- **Public source:** [View source](<https://unpkg.com/dsh-purge@1.2.1/lib/identity.js%23virtual%3Anormalized%3Around1>)

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

Public source snippet (untrusted):

```text
stage = ast_semantic_analysis; reason = ast_parse_error; limitedFiles = 3
```

## 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:** dsh-purge
- **Ecosystem:** npm
- **Version:** 1.2.1
- **License:** Apache-2.0
- **Version published:** 2026-11-03T18:11:56.105Z
- **Package first seen:** 2026-11-03T16:19:40.321Z
- **Package last seen:** 2026-11-05T17:35:03.517Z
- **Known versions:** 2
- **Latest version:** 1.2.1
- **Appeal under review:** No

## References
- [HTML security report](<https://firewall.lpm.dev/npm/dsh-purge/v/1.2.1>)
- [OpenSSF/OSV advisory](<https://osv.dev/vulnerability/MAL-2026-18707>)
- [ADVISORY](<https://github.com/advisories/GHSA-w7xp-2vj9-g24m>)
