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

# dsh-labscript@0.2.2 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
**Allowed — no malicious behavior detected** — 12 low-signal patterns reviewed and cleared.

- **Verdict:** Clean
- **Product-default install policy:** Allow
- **Firewall policy:** No policy match
- **Public report status:** Published
- **Threat category:** None published
- **Selected version:** 0.2.2
- **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: clean; recommendation: mark clean. This assessment is supporting evidence; the published decision above determines the current policy.

The flagged test file contains ordinary mock-backend tests and runs them only when invoked directly. The package’s bridge is invoked on demand, hardware submission is approval-gated, and its optional HTTP simulator is restricted to loopback.

## Latest scan
- **Scanner version:** rust-scanner-worker-schema-1
- **Recorded final verdict:** Clean
- **Recorded analysis confidence:** 91.0%
- **Started:** 2026-11-12T14:15:35.717Z
- **Finished:** 2026-11-12T14:16:14.618Z
- **Download time:** 261 ms
- **Static scan time:** 161 ms
- **AI review time:** 38478 ms
- **Total time:** 38901 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 package provides labscript controls through host-invoked tools.

- **Trigger:** The host applies the plugin; Python bridge actions occur only when a tool is called.

- **Impact:** Actions are limited to configured lab controls and local state; real hardware submission uses an approval check.

- **Review source:** ai\_review

- **Reviewed:** 2026-11-12T14:16:14.618Z

### AI review details

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

- **Mechanism:** The plugin registers tools and local API routes, starts a configured Python bridge on demand, and can contact a loopback simulator.

- **Rationale:** The flagged test file contains ordinary mock-backend tests and runs them only when invoked directly. The package’s bridge is invoked on demand, hardware submission is approval-gated, and its optional HTTP simulator is restricted to loopback.

- **Files touched:** python/bridge.py, lib/runtime.js, lib/store.mjs

- **Network endpoints:** http://127.0.0.1:\<port\>, http://127.0.0.1:18761

### Review decision

- **Verdict:** Clean

- **Confidence:** 91.0%

- **Recommended action:** mark\_clean

- **Intent class:** Benign

- **False-positive risk:** Low

- **Evidence for AI clean decision:** The manifest declares test scripts and a yaml dependency; it has no install, preinstall, or postinstall script., The package entry point registers tools and routes when the host applies the plugin., The Python bridge runs only when a configured interpreter is present and a bridge command is invoked., Hardware submission requires an explicit tool call and approval unless approval is configured otherwise., Scan expressions are restricted to allowed syntax and np.\* calls., The shipped Python test runner invokes tests only under its \_\_main\_\_ guard.

- **Evidence against:** The bridge supports HTTP requests for an optional simulator, but restricts its URL to the 127.0.0.1 loopback address., The package spawns a configured Python interpreter and writes local state and configuration files as part of its lab-control features.

## Affected versions and remediation

This report applies to dsh-labscript@0.2.2.

- No action is needed for dsh-labscript@0.2.2. Pin the version in your lockfile and check new releases as they are scanned.

## Public findings

These are automated scan signals. The review checked each one and found no malicious behavior, so all of them are cleared.

### 1. Low: Scripts Present (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Manifest
- **Confidence:** 100.0%

Package declares npm scripts.

### 2. Medium: Network (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Source
- **Confidence:** 75.0%

Package source references network APIs.

### 3. Medium: Environment Vars (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Source
- **Confidence:** 75.0%

Package source references environment variables.

### 4. Low: Filesystem (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Source
- **Confidence:** 70.0%

Package source references filesystem APIs.

### 5. Low: High Entropy Strings (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Supply Chain
- **Confidence:** 55.0%

Package source contains high-entropy string patterns.

### 6. Low: Url Strings (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Supply Chain
- **Confidence:** 65.0%

Package source contains URL literals.

### 7. Medium: Ships Build Helper (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Artifact Inventory
- **Confidence:** 70.0%
- **Path:** python/tests/run\_tests.py
- **Public source:** [View source](<https://unpkg.com/dsh-labscript@0.2.2/python/tests/run_tests.py>)

Package ships non-JavaScript build or shell helper files.

Public source snippet (untrusted):

```python
path = python/tests/run_tests.py
kind = build_helper
sizeBytes = 14701
magicHex = [redacted]
```

### 8. High: Payload In Excluded Dir (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Artifact Inventory
- **Confidence:** 85.0%
- **Path:** python/tests/run\_tests.py
- **Public source:** [View source](<https://unpkg.com/dsh-labscript@0.2.2/python/tests/run_tests.py>)

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

Public source snippet (untrusted):

```python
path = python/tests/run_tests.py
kind = payload_in_excluded_dir
sizeBytes = 14701
magicHex = [redacted]
```

### 9. Medium: Structural Risk Force Deep Review (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Artifact Inventory
- **Confidence:** 100.0%

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

### 10. High: Previous Version Dangerous Delta (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Supply Chain
- **Confidence:** 93.0%
- **Path:** lib/tools.js
- **Public source:** [View source](<https://unpkg.com/dsh-labscript@0.2.2/lib/tools.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-labscript@0.2.1
matchedIdentity = npm:ZHNoLWxhYnNjcmlwdA:0.2.1
similarity = 0.875
summary = stored previous version shares package body but lacks this dangerous source file
```

### 11. Low: Suspicious Lifecycle Evidence (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Manifest
- **Confidence:** 91.0%
- **Path:** package.json
- **Public source:** [View source](<https://unpkg.com/dsh-labscript@0.2.2/package.json>)

The manifest declares test scripts and a yaml dependency; it has no install, preinstall, or postinstall script.

Public source snippet (untrusted):

```json
"scripts": {
    "test": "node --test test/bridge.test.mjs test/protocols.test.mjs test/tools.test.mjs test/runtime.test.mjs test/store.test.mjs test/client.test.mjs",
    "test:python": "python python/tests/run_tests.py"
  },
  "dependencies": {
```

### 12. Low: Ai Review Evidence (cleared)
- **Status:** Cleared by review: an automated scan signal, not a confirmed behavior
- **Category:** Ai Review
- **Confidence:** 91.0%
- **Path:** lib/index.js
- **Public source:** [View source](<https://unpkg.com/dsh-labscript@0.2.2/lib/index.js>)

The package entry point registers tools and routes when the host applies the plugin.

Public source snippet (untrusted):

```javascript
export function apply(ctx, config) {
  const runtime = createRuntime(ctx, config)
  registerTools(ctx, runtime)
  registerSkill(ctx)
  registerRoutes(ctx, runtime)
  const logger = ctx.logger
  if (logger && typeof logger.info === 'function') {
    const current = runti
```

## 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
- yaml ^2.5.0 (Dependency)

## Package metadata
- **Package:** dsh-labscript
- **Ecosystem:** npm
- **Version:** 0.2.2
- **License:** MIT
- **Version published:** 2026-11-12T14:13:10.705Z
- **Package first seen:** 2026-11-11T05:38:54.644Z
- **Package last seen:** 2026-11-24T11:29:30.003Z
- **Known versions:** 14
- **Latest version:** 0.3.8
- **Appeal under review:** No
- **Description:** Control labscript-suite experiments from DeepSeek Harness: runmanager globals and scans, submits and waits, YAML fixed-operation protocols with postprocess write-back, panel snapshots, a built-in mock backend and a read-only doctor.
- **Author:** ycAlphi
- **Maintainers:** ycalphi
- **Keywords:** dsh, dsh-plugin, deepseek-harness, labscript, runmanager, laboratory, automation
- **Runtime engines:** dsh: \>=0.2.0 \<0.3.0, node: ^22.19.0 || \>=24.0.0
- **Artifact files:** 19
- **Artifact unpacked size:** 161,081 bytes
- **Artifact signatures:** 2
- **Attestations:** Yes
- **Provenance:** https://slsa.dev/provenance/v1

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