dsh-plugin-guard
安全与治理 活跃维护

dsh-plugin-guard

taxueseek/dsh-plugin-guard

对插件安装前后的行为做静态审计,支持哈希锁定、同类型插件检索与机械去毒处理,全程不执行目标插件,从源头拦截恶意代码注入。

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
TypeScript
主要语言
MIT
开源协议
55 KB
仓库大小
29 天前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:taxueseek/dsh-plugin-guard
git clone https://github.com/taxueseek/dsh-plugin-guard.git
git clone git@github.com:taxueseek/dsh-plugin-guard.git
README.md main

dsh-plugin-guard

One plugin, two surfaces. Static analysis only — never executes the target plugin.

Surface Tool Job
Gate plugin_audit Static audit before install
Gate plugin_verify Hash + capability lock after install
Clinic plugin_peers Local fingerprint peers; query searches GitHub topic:dsh-plugin
Clinic plugin_detox Mechanical amputation, not an equivalent rewrite

plugin_peers: path stays local (profile bundles). query hits GitHub topic:dsh-plugin + the curated list; argo only if those are thin. Override with remote. Remote hits are verdict=unknown — audit before install.

Install

dsh plugin --profile web add github:taxueseek/dsh-plugin-guard
# restart dsh web

Scoring

Start at 100; P0 −40, P1 −12, P2 −3. Any P0 or score < 40 → block. Any P1 or score < 75 → warn.

P0 is only auto-run + dangerous combo (curl|bash, secrets leaving the machine, eval of network content, install-script poison). exec inside a tool the model must click is P1.

Not

  • Not output redaction
  • Not general SAST
  • Does not prove a plugin is safe
  • Detox does not keep the original behavior

License

MIT