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

# dsh-reflex@0.4.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
**Flagged as agent extension risk** — Allowed by default with warning: install-time first-party agent extension setup was detected.

- **Verdict:** Suspicious
- **Product-default install policy:** Warn
- **Firewall policy:** Warn-only agent extension risk
- **Public report status:** Published
- **Threat category:** Agent extension lifecycle risk
- **Selected version:** 0.4.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: suspicious; recommendation: downgrade to warn. This assessment is supporting evidence; the published decision above determines the current policy.

The package has no npm lifecycle hooks or identified credential theft, but plugin startup automatically deploys bundled skills into an agent skills directory. That automatic extension setup warrants a warning.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Recorded final verdict:** Suspicious
- **Recorded analysis confidence:** 87.0%
- **Started:** 2026-11-15T12:08:43.449Z
- **Finished:** 2026-11-15T12:09:22.356Z
- **Download time:** 520 ms
- **Static scan time:** 294 ms
- **AI review time:** 38092 ms
- **Total time:** 38907 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:** Plugin startup automatically deploys bundled agent skills outside the package directory.

- **Trigger:** The host loads the plugin and invokes apply().

- **Impact:** The bundled skills become available to the user's agent without a separate deployment command; this automatic agent extension setup is a lifecycle risk.

- **Evidence paths:** index.js

- **Review source:** ai\_review

- **Reviewed:** 2026-11-15T12:09:22.356Z

### AI review details

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

- **Mechanism:** install() copies bundled skill directories into ~/.agents/skills, or the directory selected by AGENTS\_SKILLS\_DIR.

- **Rationale:** The package has no npm lifecycle hooks or identified credential theft, but plugin startup automatically deploys bundled skills into an agent skills directory. That automatic extension setup warrants a warning.

- **Files touched:** ~/.agents/skills/\<skill-name\>/, AGENTS\_SKILLS\_DIR/\<skill-name\>/

### Review decision

- **Verdict:** Suspicious

- **Confidence:** 87.0%

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

- **Intent class:** Dangerous Capability

- **False-positive risk:** Medium

- **Evidence for warning:** Loading the plugin calls install() automatically from apply()., install() recursively copies bundled skills into ~/.agents/skills or AGENTS\_SKILLS\_DIR without a separate user command.

- **Evidence against:** There are no npm lifecycle scripts in package.json., The hosted Jev backend and credential forwarding are used only when the backend is configured as jev or jevlocal., The flagged Python test file contains ordinary unit tests, not a payload.

## Affected versions and remediation

This report applies to dsh-reflex@0.4.0.

- Review the evidence and your use of dsh-reflex@0.4.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: Weak Crypto
- **Category:** Source
- **Confidence:** 64.0%
- **Path:** index.js
- **Public source:** [View source](<https://unpkg.com/dsh-reflex@0.4.0/index.js>)

Package source references weak cryptographic algorithms.

Public source snippet (untrusted):

```javascript
L13: import { fileURLToPath } from 'node:url'
L14: import { execFile, spawn } from 'node:child_process'
L15: import Schema from '@deepseek-ai/schemastery'
...
L25: const execFileP = promisify(execFile)
L26: const __dirname = dirname(fileURLToPath(import.meta.url))
L27: 
...
L29: /** DSH 主目录。原先各处内联重复了三遍, 这里统一 —— 也是默认凭据文件位置的基准。 */
L30: const DSH_HOME = process.env.DSH_HOME || join(process.env.HOME || '.', '.dsh')
L31: 
...
L77: backend: '',
L78: jevBaseUrl: 'https://api.typesafe.ai',
L79: jevModel: 'jev-latest',
```

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

Package source references environment variables.

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

Package source references filesystem APIs.

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

Package source contains high-entropy string patterns.

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

Package source contains URL literals.

### 6. Medium: Ships Build Helper
- **Category:** Artifact Inventory
- **Confidence:** 70.0%
- **Path:** skill/reflex-tuning/scripts/test\_label\_dims.py
- **Public source:** [View source](<https://unpkg.com/dsh-reflex@0.4.0/skill/reflex-tuning/scripts/test_label_dims.py>)

Package ships non-JavaScript build or shell helper files.

Public source snippet (untrusted):

```python
path = skill/reflex-tuning/scripts/test_label_dims.py
kind = build_helper
sizeBytes = 4372
magicHex = [redacted]
```

### 7. High: Payload In Excluded Dir
- **Category:** Artifact Inventory
- **Confidence:** 85.0%
- **Path:** skill/semif-decide/assets/semif/tests/test\_shared.py
- **Public source:** [View source](<https://unpkg.com/dsh-reflex@0.4.0/skill/semif-decide/assets/semif/tests/test_shared.py>)

Package hides binary, compressed, or executable-looking payloads in test/fixture/hidden paths.

Public source snippet (untrusted):

```python
path = skill/semif-decide/assets/semif/tests/test_shared.py
kind = payload_in_excluded_dir
sizeBytes = 476
magicHex = [redacted]
```

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

### 9. High: Previous Version Dangerous Delta
- **Category:** Supply Chain
- **Confidence:** 93.0%
- **Path:** index.js
- **Public source:** [View source](<https://unpkg.com/dsh-reflex@0.4.0/index.js>)

This package version adds a dangerous source file absent from the previous stored version; route for source-aware review.

Public source snippet (untrusted):

```javascript
matchType = previous_version_dangerous_delta
matchedPackage = dsh-reflex@0.3.18
matchedIdentity = npm:ZHNoLXJlZmxleA:0.3.18
similarity = 0.692
summary = stored previous version shares package body but lacks this dangerous source file
```

### 10. Medium: Ai Review Evidence
- **Category:** Ai Review
- **Confidence:** 87.0%
- **Path:** index.js
- **Public source:** [View source](<https://unpkg.com/dsh-reflex@0.4.0/index.js>)

Loading the plugin calls install() automatically from apply().

Public source snippet (untrusted):

```javascript
export function apply(ctx, config = {}) {
  try {
    return install(rtOf(ctx), ctx, normalize(cfgOf(config)))
```

### 11. Medium: Ai Review Evidence
- **Category:** Ai Review
- **Confidence:** 87.0%
- **Path:** index.js
- **Public source:** [View source](<https://unpkg.com/dsh-reflex@0.4.0/index.js>)

install() recursively copies bundled skills into ~/.agents/skills or AGENTS\_SKILLS\_DIR without a separate user command.

Public source snippet (untrusted):

```javascript
// 自动部署 skill: 仓库 skill/<name>/ → agent skills 目录 (~/.agents/skills/<name>/)
  // 整个目录递归部署(有的 skill 带 scripts/ assets/ 边车, 只拷 SKILL.md 会
```

### 12. Medium: Ai Review Evidence
- **Category:** Ai Review
- **Confidence:** 87.0%
- **Path:** index.js
- **Public source:** [View source](<https://unpkg.com/dsh-reflex@0.4.0/index.js>)

install() recursively copies bundled skills into ~/.agents/skills or AGENTS\_SKILLS\_DIR without a separate user command.

Public source snippet (untrusted):

```javascript
try {
    const pkgSkills = join(__dirname, 'skill')
    const skillsRoot = process.env.AGENTS_SKILLS_DIR || join(process.env.HOME || '', '.agents', 'skills')
    if (existsSync(pkgSkills)) {
      for (const
```

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

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

### Published dependency entries
- @deepseek-ai/schemastery ^3.18.4 (Dependency)

## Package metadata
- **Package:** dsh-reflex
- **Ecosystem:** npm
- **Version:** 0.4.0
- **License:** MIT
- **Version published:** 2026-11-15T12:06:33.926Z
- **Package first seen:** 2026-10-16T15:07:15.776Z
- **Package last seen:** 2026-11-23T14:56:55.432Z
- **Known versions:** 18
- **Latest version:** 0.6.0
- **Appeal under review:** No
- **Description:** Layered agent for DeepSeek Harness: L0 fact layer + L1 local decision layer (SemIf/Jev) + L2 event-driven wake, as a sibling cordis plugin to ds-bot (zero modification to the original).
- **Maintainers:** onesmash
- **Artifact files:** 130
- **Artifact unpacked size:** 9,545,110 bytes
- **Artifact signatures:** 2
- **Attestations:** No

## References
- [HTML security report](<https://firewall.lpm.dev/npm/dsh-reflex/v/0.4.0>)
- [Repository](<https://github.com/onesmash/dsh-reflex>)
- [Homepage](<https://github.com/onesmash/dsh-reflex#readme>)
- [Issues](<https://github.com/onesmash/dsh-reflex/issues>)
