🗑️ The original repository has been deleted or made private. This page is an archival snapshot from indexing time; the install command may no longer work.
Install verification: Ecosystem app: not installed via dsh plugin add, so the L1-L5 plugin install-verification ladder does not apply; the security scan still runs.Install verification details →
What it doesAI
Dangerous command guard for DSH that blocks high-risk bash/pwsh commands before execution via configurable policies.
- Pre-execution gate intercepting dangerous bash/pwsh commands
- Critical-level commands always blocked; medium follows global action
- Web settings page for rules, whitelist, and hot-reload configs
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
Ecosystem apps are not installable via dsh plugin add: desktop / web shells install or deploy through their own release channel (GitHub Releases or the project site).
The level reads L5 · Ecosystem plugin / L5 · Ecosystem app per the three-way classification (the L1-L5 ladder does not rate them); the security scan still runs.
Verification & Compatibility◼ Ecosystem app
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
| plugin \ dsh | dsh 0.2.0-rc.1 | dsh 0.1.7-rc.2 | dsh 0.1.7-rc.1 | dsh 0.1.7-alpha.2 | dsh 0.1.6-alpha.2 |
|---|---|---|---|---|---|
| c77f60 | ◼ | ◼ | ◼ | ◼ | ◼ |
c77f60github◼ 7 ecosystem app5 failed2026-10-05
https://github.com/czhzz/dsh-danger-guard
◼dsh 0.2.0-rc.12026-09-29Ecosystem app
- • Node.js: v24.14.0
- • DSH: 0.2.0-rc.1
- • Plugin artifact: github · https://github.com/czhzz/dsh-danger-guard (version unstated)
ID: dsh-danger-guard@c77f60@dsh0.2.0-rc.1 · profile: l4-sandbox
Issued: 2026-09-29 · expires: 2026-10-06
View checks & evidence
This level was not executed in this scan.
L1–L3 are plugin-level static conclusions (baseline, identical across dsh versions): evidence is stored once per plugin.
◼dsh 0.1.7-rc.22026-09-28Ecosystem app
- • Node.js: v24.14.0
- • DSH: 0.1.7-rc.2
- • Plugin artifact: github · https://github.com/czhzz/dsh-danger-guard (version unstated)
ID: dsh-danger-guard@c77f60@dsh0.1.7-rc.2 · profile: l4-sandbox
Issued: 2026-09-28 · expires: 2026-10-05
View checks & evidence
This level was not executed in this scan.
L1–L3 are plugin-level static conclusions (baseline, identical across dsh versions): evidence is stored once per plugin.
◼dsh 0.1.7-rc.12026-09-23Ecosystem app
- • Node.js: v24.14.0
- • DSH: 0.1.7-rc.1
- • Plugin artifact: github · https://github.com/czhzz/dsh-danger-guard (version unstated)
ID: dsh-danger-guard@c77f60@dsh0.1.7-rc.1 · profile: l4-sandbox
Issued: 2026-09-23 · expires: 2026-09-30
View checks & evidence
This level was not executed in this scan.
L1–L3 are plugin-level static conclusions (baseline, identical across dsh versions): evidence is stored once per plugin.
◼dsh 0.1.7-alpha.22026-09-23Ecosystem app
- • Node.js: v24.14.0
- • DSH: 0.1.7-alpha.2
- • Plugin artifact: github · https://github.com/czhzz/dsh-danger-guard (version unstated)
ID: dsh-danger-guard@c77f60@dsh0.1.7-alpha.2 · profile: l4-sandbox
Issued: 2026-09-23 · expires: 2026-09-30
View checks & evidence
This level was not executed in this scan.
L1–L3 are plugin-level static conclusions (baseline, identical across dsh versions): evidence is stored once per plugin.
◼dsh 0.1.6-alpha.22026-09-22Ecosystem app
- • Node.js: v24.14.0
- • DSH: 0.1.6-alpha.2
- • Plugin artifact: github · https://github.com/czhzz/dsh-danger-guard (version unstated)
ID: dsh-danger-guard@c77f60@dsh0.1.6-alpha.2 · profile: l4-sandbox
Issued: 2026-09-22 · expires: 2026-09-29
View checks & evidence
This level was not executed in this scan.
L1–L3 are plugin-level static conclusions (baseline, identical across dsh versions): evidence is stored once per plugin.
◼dsh 0.1.6-alpha.12026-09-17Ecosystem app
- • Node.js: v24.14.0
- • DSH: 0.1.6-alpha.1
- • Plugin artifact: github · https://github.com/czhzz/dsh-danger-guard (version unstated)
ID: dsh-danger-guard@c77f60@dsh0.1.6-alpha.1 · profile: l4-sandbox
Issued: 2026-09-17 · expires: 2026-09-24
View checks & evidence
This level was not executed in this scan.
L1–L3 are plugin-level static conclusions (baseline, identical across dsh versions): evidence is stored once per plugin.
✗dsh 0.1.5-rc.22026-09-13Ecosystem app · L5 · failed
- • Node.js: v24.14.0
- • DSH: 0.1.5-rc.2
- • Plugin artifact: github · https://github.com/czhzz/dsh-danger-guard (version unstated)
ID: dsh-danger-guard@c77f60@dsh0.1.5-rc.2 · profile: l4-sandbox
Issued: 2026-09-13 · expires: 2026-09-20
View checks & evidence
L1–L3 are plugin-level static conclusions (baseline, identical across dsh versions): evidence is stored once per plugin.
✗dsh 0.1.3-alpha.22026-09-09Ecosystem app · L5 · failed
- • Node.js: v24.14.0
- • DSH: 0.1.3-alpha.2
- • Plugin artifact: github · https://github.com/czhzz/dsh-danger-guard (version unstated)
ID: dsh-danger-guard@c77f60@dsh0.1.3-alpha.2 · profile: l4-sandbox
Issued: 2026-09-09 · expires: 2026-09-16
View checks & evidence
L1–L3 are plugin-level static conclusions (baseline, identical across dsh versions): evidence is stored once per plugin.
✗dsh 0.1.3-alpha.12026-09-07Ecosystem app · L5 · failed
- • Node.js: v24.14.0
- • DSH: 0.1.3-alpha.1
- • Plugin artifact: github · https://github.com/czhzz/dsh-danger-guard (version unstated)
ID: dsh-danger-guard@c77f60@dsh0.1.3-alpha.1 · profile: l3-fullscan
Issued: 2026-09-07 · expires: 2026-09-14
View checks & evidence
L1–L3 are plugin-level static conclusions (baseline, identical across dsh versions): evidence is stored once per plugin.
✗dsh 0.1.2-rc.12026-09-05Ecosystem app · L5 · failed
- • Node.js: v24.14.0
- • DSH: 0.1.2-rc.1
- • Plugin artifact: github · https://github.com/czhzz/dsh-danger-guard#c77f60
ID: dsh-danger-guard@c77f60@dsh0.1.2-rc.1 · profile: l3-fullscan
Issued: 2026-09-05 · expires: 2026-09-12
View checks & evidence
L1–L3 are plugin-level static conclusions (baseline, identical across dsh versions): evidence is stored once per plugin.
✗dsh 0.1.2-alpha.12026-09-06Ecosystem app · L5 · failed
- • Node.js: v24.14.0
- • DSH: 0.1.2-alpha.1
- • Plugin artifact: github · https://github.com/czhzz/dsh-danger-guard (version unstated)
ID: dsh-danger-guard@c77f60@dsh0.1.2-alpha.1 · profile: l3-fullscan
Issued: 2026-09-06 · expires: 2026-09-13
View checks & evidence
L1–L3 are plugin-level static conclusions (baseline, identical across dsh versions): evidence is stored once per plugin.
◼prehistory2026-10-05Ecosystem app
- • Node.js: v24.14.0
- • DSH: unknown
- • Plugin artifact: github · https://github.com/czhzz/dsh-danger-guard (version unstated)
ID: dsh-danger-guard@c77f60@dshunknown · profile: l4-sandbox
Issued: 2026-10-05 · expires: 2026-10-12
View checks & evidence
This level was not executed in this scan.
L1–L3 are plugin-level static conclusions (baseline, identical across dsh versions): evidence is stored once per plugin.
Author badges
Embed the official badges in your README to showcase security & install-test status:
`[](https://www.dsh.so/artifact/dsh-danger-guard/)`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 medium — stricter wins → overall medium.
v0.1.0dsh manifest0.1.0git2026-10-070.1.0same versionclean · gitVet is an AST static scan (npm artifact or git source).
show static findings (5)
- criticalpipeShell · shell
src/client/index.tsx:341disableBuiltin: '关闭内置规则集(rm -rf /、mkfs、curl|sh 等),只保留自定义规则。', - criticaldestructiveRm · destructive
src/client/index.tsx:341disableBuiltin: '关闭内置规则集(rm -rf /、mkfs、curl|sh 等),只保留自定义规则。', - criticalpipeShell · shell
src/index.ts:133reason: '从网络拉取脚本并管道执行(curl|sh)存在供应链风险,请先检查脚本内容。', - criticaldestructiveRm · destructive
src/index.ts:90reason: '删除根目录(rm -rf /)会摧毁整个文件系统,已拦截。', - warningeval · code-exec
scripts/verify-client-activation.mjs:38eval(bundle)
show 4 audit findings
- mediumUnauthenticated exemption API can persist allow-patterns that bypass even critical rules
src/index.ts:439The route family performs no authentication or origin check of its own and accepts any string in ruleId, persisting it into the security-relevant alwaysAllow setting. A single POST {"ruleId":".*","always":true} makes every subsequent command pass the gate, including critical rules such as rm -rf / (the alwaysAllow check runs before decideGuard and returns next()). Because the guarded agent can itself run curl against the local host web server, this is a self-bypass path for the exact threat the plugin exists to stop. The same route family also returns the last 20 intercepted command strings vi
- lowalwaysAllow is documented as rule IDs but compiled as RegExp tested against the whole command line
src/index.ts:370A value the user believes to be a rule id is instead a regex over the raw command text. Narrow-looking values therefore either do nothing (id never appears in a command) or over-allow: a broad pattern disables the gate for arbitrary commands, including critical rules, without the user meaning to create a whitelist.
- lowRequest body read without size limit in exemption API
src/index.ts:496The host HTTP handler buffers an entire request body in memory with no cap; a large POST to /dsh-danger-guard/api/exempt can exhaust memory of the host process. Low severity because it needs network/loopback access to the host web server.
- loweval() of the built client bundle in a developer verification script
scripts/verify-client-activation.mjs:38The script executes lib/client.js as code via eval. It is developer tooling invoked manually via node (not referenced by the plugin's dsh entry, main/exports or cordis.patch.yml), so it is not reachable at runtime; the residual risk is that anyone able to write lib/client.js before the script is run gets code execution in the developer's shell.
Defensive command-guard plugin; the heuristic 'fail' is caused by its own blocklist regexes. Real issue: the exemption HTTP API can persist allow-patterns that bypass even critical rules.
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-09-01 · activity: Stable
• Repo created: 2026-09-01
• Stars: ★ 0 · Forks: 0
• Health: Stable — committed within 90 days
Source
Author README
View on GitHub ↗The author's original README from the repository — fetched live, unedited (the English page loads the default README).
