跳过主要内容
T

dsh-plugin-guard

taxueseek/dsh-plugin-guard

DSH 插件的静态安全闸门与诊所:安装前静态审计、安装后哈希与能力锁定、本机指纹库与 GitHub dsh-plugin 主题的同类搜索、机械式剥离清理;永不执行目标插件。

安装

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

README

dsh-plugin-guard

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

SurfaceToolJob
Gateplugin_auditStatic audit before install
Gateplugin_verifyHash + capability lock after install
Clinicplugin_peersLocal fingerprint peers; query searches GitHub topic:dsh-plugin
Clinicplugin_detoxMechanical 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

相关插件