dsh-pentest:DeepSeek Harness 的渗透测试模式插件

howmp/dsh-pentest

开发与运维已验证
收录时间 2026-08-20
页面最后更新 2026-08-20

DSH plugin 渗透测试模式:记录目标、探索链路、漏洞与资产,并在 Web 中可视化展示。

在 DeepSeek Harness 会话中系统化记录渗透测试过程,将目标、线索、验证结果与漏洞组织成可追溯的探索链路,并在 Web 界面可视化呈现。

install
dsh plugin --profile web add github:howmp/dsh-pentest
分类
开发与运维
平台
DSH-Plugin
作者
howmp
分发方式
插件

dsh-pentest 核心特性

记录目标与授权探索链路可视化漏洞与资产视图生成测试报告

dsh-pentest 仓库信息

howmp
发布者
howmp
仓库
howmp/dsh-pentest
120
Star
16
Fork
0
Watch
1
开放 Issue
语言JavaScript
许可证
官网
仓库最近更新2026-08-20 13:28:37
仓库创建时间2026-08-15 22:30:35
主题
deepseek-harnessdsh-plugindsh-pluginspentest
默认分支master

dsh-pentest 仓库简介

dsh-pentest 是 DeepSeek Harness(DSH)的渗透测试模式插件(DSH plugin),由 howmp 维护,面向授权范围内的安全测试场景。它解决的是在 DSH 会话中系统化记录渗透测试过程的问题:将目标、探索线索、验证结果、资产与漏洞组织成可追溯的探索链路,并在 Web 界面中以链路、漏洞、资产和报告视图直观呈现。核心能力包括:一套领域模型(六张表:goals、intents、facts、findings、assets、edges)、八个 pentest_* 工具、会话投影(从日志重放图)、以及一个带四个子标签的 Web 界面。插件采用自包含 bundle 包(@howmp/dsh-pentest)分发,零依赖,内置 sqlite 后端,最近更新于 2026-08。

dsh-pentest 这个 DSH plugin 支持哪些核心特性?

插件提供八个工具:pentest_submit(子 agent 直写父 intent)、pentest_add_goal(重置整图)、pentest_add_intent、pentest_add_fact、pentest_add_finding(必填可复现步骤,可关联影响资产)、pentest_add_asset(支持 parentId 表示资产层级)、pentest_state、pentest_graph、pentest_report。Web 界面包含四个子标签:探索链路(基于 @xyflow/react 的图,边带关系胶囊)、漏洞(严重度/描述/可复现步骤/影响资产)、资产(列表/图两种模式)、报告(Markdown 渲染,可复制保存)。系统提示词段 pentest:protocol(order 50)规定沿链路推进、子 agent 直写父 intent、资产先父后子、与用户交互一律中文。

dsh-pentest 怎么安装?

安装命令如下,从 Release URL 或本地文件安装均可:

bash
dsh plugin --profile web add github:howmp/dsh-pentest

或使用 Release 资产:

bash
dsh plugin --profile web add https://github.com/howmp/dsh-pentest/releases/latest/download/dsh-pentest.tar.gz

安装后重启 dsh,在新会话中选择自动注册的「渗透模式」即可使用。

dsh-pentest 的架构和存储是怎么设计的?

领域模型定义在 src/dsh-pentest/src/spec.ts,storage domain 为 pentest(version 2),包含六张表,边表示链路词汇:spawns(goal→intent)、yields(intent→fact)、derived_from(fact→intent)、proves(intent→finding),资产关系用 parent。节点和边的 id 为确定性格式 <kind>-<n>,按会话计数,goal 重置后归零,工具返回 id 供模型跨调用引用。会话投影从日志纯重放同一张图,折叠 pentest_* 调用为 { goal, nodes, assets, edges, counts },上限各 200。渗透记录写入 $DSH_HOME/storages/pentest-sessions.db(sqlite),宿主其它域的存储不受影响。

dsh-pentest 有哪些已知边界和注意事项?

插件只测试有授权的目标,pentest_add_goal 的 authorization 参数可填写授权说明并写入状态与最终报告留痕,但它只是审计事实而非门禁。记录按单会话作用域,无跨会话/项目续跑,重新开始一次 engagement 需新的 pentest_add_goal。图布局为静态分层,可平移缩放但节点不可拖拽。项目参考了 ARTEX 项目。

查看更多 DSH 插件,访问 dsh-plugin.org

DSH-Plugin 常见问题