Skip to content

Releases: ShanHaiFish/dsh-plugin-security-review

v1.5.0 — DSH 插件安装安全审查守卫 (静态 bundle)

Choose a tag to compare

@ShanHaiFish ShanHaiFish released this 15 Aug 16:01

首个正式发布 (v1.5.0)

DSH 插件安装安全审查守卫:对 cordis_define / cordis_run 安装或运行的动态插件源码做静态安全审查,按安全优先策略拦截,并提供 plugin_security_review / plugin_security_audit 两个审查工具。

核心能力

  • 静态 bundle 形态(推荐)dsh plugin add 安装后随 profile 层栈自动加载、开机自启动,无需每次重启重新 define/run
  • 安全优先判定策略:BLOCK(critical>0 / high≥2 / 总分≥100)→ ASK(high≥1 / 总分≥40)→ WARN(总分≥10)→ ALLOW,源码不可检索时 fail-closed
  • 15 项服务能力面检测 + Host/Client 双端规则 + 组合规则(凭据+网络、Cookie+网络等收敛判定)
  • 能力声明purposeCAPABILITIES: 声明项计分减半
  • 跨会话批准持久化:代码指纹(sha256)写入 <DSH_HOME>/storages/plugin-security-gate/state.json
  • profile bundle 库存审计plugin_security_audit includeBundles=true 扫描已安装 bundle 插件

v1.5.0 变更(相对 v1.4.0 动态形态)

  • 静态 bundle 化:命名导出 name/inject/apply,经 ctx.tools.register 注册工具、ctx.on('tools/pre-execute') 拦截
  • 移除动态自升级豁免:所有动态插件一律审查,无前缀/谱系令牌绕过
  • 审查引擎、评分模型、能力声明、批准持久化、库存审计保持一致

安装

dsh plugin --profile web add dsh-plugin-security-review

动态回退形态(v1.4.0)仍保留于 manifest.json + package-source.js,供无 bundle 能力的 profile 使用。

已知限制

  • 组合判定为静态 presence 判定,可能误报/漏报
  • 深度混淆存在盲区;进程内拦截不是对抗恶意 actor 的安全边界