dsh-route-fence-linter
审计 profile 内所有插件 HTTP 路由的浏览器信任围栏:插件路由在 Web 服务器的最长前缀匹配中优先,因此缺少围栏的路由会被静默暴露;逐条给出文件与行号级别的证据。
Audits every plugin HTTP route in a profile for a browser-trust fence: plugin routes win the web server's longest-prefix match ahead of the /api gateway, so they never see its trust check and must pin the Host to loopback themselves. Grades PASS/WARN/FAIL per route and fails a fence that compares Origin to Host without pinning it (bypassable by DNS rebinding). Ships as a CLI for CI and a route_fence_scan tool.
怎么安装
dsh plugin add github:Vladimir-Kryshchenko/dsh-route-fence-linter 简介
dsh-route-fence-linter Every plugin route registered on webServer is dispatched by **longest-prefix match**, ahead of the host's /api gateway — so it never passes the gateway's unified trust check. Each plugin author must ship their own browser-trust fence, and most do not. This linter finds the ones that did not. Usage sh dsh-route-fence scan # $DSH_HOME/profiles/web dsh-route-fence scan /path/to/profile Exit codes: 0 clean · 1 at least one FAIL · 2 usage/IO error. Verdicts | Verdict | Meaning | |---|---| | PASS | The handler gates on a fence that pins the Host before Origin handling. | | WAR…
推荐参考
信息
- 协议
- MIT
- 语言
- TypeScript
- GitHub 星标
- 0
- 月下载
- –
- 最近更新
- 2026-08-22
- 创建于
- 2026-08-21
基础安全检查
- 检查结果
- curated 收录但无 npm 包/安装命令
- 收录来源
- curated:awesome-dsh-plugin.com, curated:awesome-dsh-plugin/awesome-dsh-plugin
- 主题标签
- deepseek-harness, dsh-plugin, security
同类推荐
dsh-secure-audit
PensiveFei/dsh-secure-audit
DSH 只读安全合规插件:提示注入检测、中文 PII 脱敏、本机配置安全审计,输出脱敏且可复现的报告。
dsh-auto-approve
Jiao-XXX/dsh-auto-approve
在 workspace-write 与 danger-full-access 之间增加 `auto` 权限档:分类器一次性放行例行沙箱升级,危险或不确定的操作仍转人工审批。
dsh-plugin-vet
wulun811/dsh-plugin-vet
DSH 插件信任流水线:确定性静态扫描判定、可选运行时守卫与蜜罐诱饵、agent 审查协议技能与浏览器盾牌状态灯,只报警不执法。
dsh-agent-approval
MoonlitDropOfBlood/dsh-agent-approval
由独立审批子代理裁决每次沙箱提权,可配置审批模型并带审计记录。