omdsh-dev/dsh-security-audit
DSH 本机安全审计插件 —— 防御性、只读的安全审计:配置、凭据存储元数据、已安装插件来源、关键路径权限、会话文件结构与网络暴露面。输出脱敏、可复现、可定位的风险报告。
catalog descriptioncatalog 简介 / catalog description:DSH 本机安全审计插件:配置/插件来源/会话/网络暴露面,只读脱敏风险报告
Project Overview项目介绍
This is a native security auditing plugin built exclusively for DeepSeek Harness (DSH). It performs read-only defensive security checks on a local DSH environment, covering multiple areas including configuration settings, credential metadata, installed plugin sources, critical path permissions, session file structures, and network exposure. It outputs a structured, desensitized, reproducible security report that pinpoints exact risk locations, addressing the gap where existing DSH tools only check structure compliance without evaluating actual security risks. To install it on a supported DSH version, you can run the dsh plugin add command pointing to this GitHub repository or a local packed tarball, then verify the installation with a config dump command.
The plugin exposes six core actions: scan_config, scan_plugins, scan_sessions, scan_network, report, and rules. Users can run individual scan actions for targeted checks, or execute the report action to get a full aggregated security assessment of the entire local DSH environment. It is designed for all developers who store credentials and run plugins in a local DSH environment, helping them quickly catch misconfigurations and potential hazards that could lead to credential leaks or unauthorized access. After installation, you can run a full security audit directly via a DSH run command that invokes the report action to get your first full environment assessment.
This plugin is released under the open source MIT license, and it enforces clear budget limits for all scanning operations to avoid overloading your local system. It caps the maximum number of scanned files at 200, plugins at 200, sessions at 1000, and findings at 1000, with a 1 MiB limit for individual source files and 64 MiB total scan size. It requires DSH version 0.1.5-rc.1 or newer to work properly, and all required peer dependencies are automatically handled by the DSH profile during installation. Before running your first scan, you should always verify the plugin is loaded correctly by dumping the active profile configuration.
这是一款专为 DeepSeek Harness (DSH) 开发的原生安全审计插件,用于对本地 DSH 环境进行防御性只读安全检查,覆盖配置、凭据存储元数据、已安装插件来源、关键路径权限、会话文件结构与网络暴露面多个维度,最终输出经过脱敏处理、可复现、可定位风险点的结构化安全报告,填补了现有 DSH 工具仅做结构检查不做安全风险评估的空白。
插件支持扫描配置、扫描插件、扫描会话、扫描网络、汇总报告、查询规则六种操作,用户可根据需求选择指定扫描动作,也可以直接运行汇总报告获取全维度安全评估。它面向所有使用 DSH 本地环境存储凭据、运行插件的开发者,帮助用户快速发现配置错误和潜在安全风险,避免凭据泄露、未授权访问等问题。
本插件采用 MIT 许可开源,对扫描范围做了明确限制:最多扫描 200 个文件、200 个插件、1000 个会话、1000 个风险点,单文件大小不超过 1 MiB,累计不超过 64 MiB。安装需在 DSH 0.1.5-rc.1 及以上版本,可通过 GitHub 仓库或本地压缩包安装,安装后需验证配置加载成功才可首次运行。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-security-audit(omdsh-dev/dsh-security-audit)
仓库:https://github.com/omdsh-dev/dsh-security-audit
本站详情页:https://www.yhbd.top/plugins/omdsh-dev-dsh-security-audit/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证 MIT · ⭐ 14 · 最近提交 2026-09-10 · 主语言 TypeScript
按下面顺序执行,每步先把结论告诉我,再进入下一步:
【1 兼容性检查】
① 我这边:DSH 版本、Node 版本、操作系统、当前 profile(web / desktop)。
② 读它的 README、package.json、插件 manifest,列出它要求的 DSH 版本 / Node 版本 / 操作系统 / 外部依赖 / 需要另外先装的运行时。
③ 逐条比对,结论只写「满足 / 不满足 / 未知」三种;不满足的给出可行替代方案。
④ 检查是否和我已装的插件冲突:命令名重复、skill / tool 重名、端口占用、重复注册的 MCP server。
【2 安全性检查】
① 仓库可信度:和上面「本站登记」是否一致;star / fork 数、创建时间、最近提交,是否归档或长期停更。
② 安装脚本:逐行看 package.json 的 preinstall / install / postinstall,以及 install.sh、setup.ps1 之类脚本。出现 curl|bash、下载后直接执行、混淆代码、访问与插件功能无关的域名,立刻停下来告诉我,不要继续装。
③ 依赖:列出新增依赖,标出无人维护、或与知名包拼写近似的可疑包(typosquatting)。
④ 权限与副作用:它会读写哪些目录、访问哪些域名、需要哪些 DSH 权限(filesystem / network / shell / clipboard 等),以及怎么卸载和回滚。
⑤ 如果它要求 sudo / 管理员权限,或权限明显超出功能所需,先停下来问我。
【3 安装】
上面两步没有「不满足」和「高危项」时才执行;用官方推荐方式安装,不要自行提权。
【4 汇报】
用表格输出:检查项 / 结论 / 依据 / 是否需要我决策。拿不准的一律写「未知」并说明要我怎么确认——不要猜,也不要替我决定。
Send this message to DSH in your current session: it verifies compatibility and security first (answering met / not met / unknown item by item) and only installs once everything checks out — it will stop and ask you if it finds a high-risk item. The box scrolls; the copy is the full prompt. CLI install commands may not be accurate across systems, so DSH is the safer route.把上面这条消息直接发给当前会话里的 DSH:它会先核对兼容性与安全性(逐条给「满足 / 不满足 / 未知」),确认没问题再安装,有高危项会停下来问你。框内可滚动,复制到的是完整提示词;安装命令不一定准确,发给 DSH 更稳。
- 14 stars - an early-stage project星标 14,属于早期项目
DSH walks through these 9 checksDSH 会逐条核对这 9 项
Compatibility兼容性
- DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
- External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
- Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册
Security安全性
- Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
- Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
- curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
- Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
- Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
- Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式
Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。
Or use CLI install (for developers)或使用命令行安装(适合开发者)
CLI Install命令行安装
dsh plugin --profile web add github:omdsh-dev/dsh-security-audit
把 omdsh-dev/dsh-security-audit 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
dsh-security-audit
DSH 本机安全审计插件 —— 防御性、只读的安全审计:配置、凭据存储元数据、已安装插件来源、关键路径权限、会话文件结构与网络暴露面。输出脱敏、可复现、可定位的风险报告。
仓库:https://github.com/omdsh-dev/dsh-security-audit(public)
动机
DSH 本地环境承载 API Key、token、会话内容和插件加载边界,误配置(服务监听公网、凭据文件权限过宽、插件来源不可信、会话文件结构异常)会造成真实风险。现有工具没有这个视角:
plugin-check只做结构/合规检查——不评估凭据暴露面、危险能力和路径逃逸session-health只做健康诊断——不涉及来源可信度与安全风险裁定- 手工排查不可复现——凭据位置、权限、监听端口、插件来源分散在多处,逐项人工检查极易遗漏且无法留档
本插件以只读方式审计本机 DSH 环境并输出风险报告:不自动修复、不连接远程、不执行被审计插件、不把"没读到"当作"安全"。
安全模型(审计器自身的边界)
- 只读:绝不修改/删除任何文件,绝不执行被审计插件的代码,绝不主动连接远程目标
- 秘密脱敏:疑似秘密只返回类型 / 长度 / 进程内随机 HMAC fingerprint / 路径 / 行号,完整值永不出现在 canonical 输出(设计级保证,非截断)
- 路径围栏:所有路径经 lstat → realpath → containment 检查;
root固定为进程启动时解析的$DSH_HOME(或管理员声明的 allowedRoot),模型参数不能扩大读取范围 - 诚实判定:finding / pass /
skipped/error四态;skipped与error不计为 pass(coverage 降为incomplete);capability finding只提示人工确认、不裁定恶意 - 预算:
- 文件 ≤ 200、插件 ≤ 200、会话 ≤ 1,000、findings ≤ 1,000
- 源码单文件 ≤ 1 MiB(累计 ≤ 64 MiB);canonical 输出 ≤ 2 MiB
- 单 action 10s / report 30s(deadline + AbortSignal 全程检查)
- 工具参数会记入会话日志,不要传入敏感数据
工具声明
注册 security_audit 工具(@deepseek-ai/dsh-security-audit,row id security-audit),统一输出 JSON 文本字符串:所有 action 输出 { tool, version, root, platform, ... } 信封,扫描类 action 带 verdict/riskVerdict/coverageVerdict 与 summary。
| action | 作用 | 输出 |
|---|---|---|
scan_config |
DSH 配置、profile、env/credentials 元数据(秘密存在性、权限、外部端点) | findings 含 secretKind/secretLength/fingerprint,无明文 |
scan_plugins |
已安装插件来源、路径、patch、危险静态能力、install script、秘密文件 | capability finding 标注人工确认 |
scan_sessions |
会话目录权限、symlink 逃逸、zstd 帧结构(解压炸弹预算内) | 帧级问题定位到文件 |
scan_network |
监听配置、URL 分类、明文 HTTP、代理路由(不主动联网) | 状态为配置级推断(unknown-listener-state 明确标注) |
report |
汇总四类扫描 | riskVerdict + coverageVerdict 双维度 + findings 汇总 |
rules |
规则目录与适用平台 | 规则 code / severity / critical / platforms |
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
action |
string | ✅ | scan_config / scan_plugins / scan_sessions / scan_network / report / rules |
root |
string | root 覆盖;必须等于 $DSH_HOME 或管理员声明的 allowedRoot |
|
profile |
string | 限定单个 profile(^[A-Za-z0-9._-]{1,64}$,不接受路径) |
|
strict |
boolean | strict 模式:medium finding 也判 fail。默认 false |
|
detail |
boolean | 详细输出。默认 true;敏感证据始终脱敏 |
|
includeSourceScan |
boolean | 启用插件静态源码能力扫描(更慢、更多误报)。默认 false |
Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →
huangziyuan-general/dsh-novel-forge
huanghai-lab/dsh-custom-instructions
QIN-SMART/dsh-session-md
toby-bridges/api-relay-audit
wenbin-wb/dsh-bridge
PerryLink/dsh-permission-rules
MichengAI/dsh-archive-manager