dsh-pentester 2.2.0 → 2.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +54 -6
- package/agents/vulnerability/profile.yml +6 -3
- package/lib/build-id.json +1 -1
- package/lib/client.js +993 -403
- package/lib/client.js.map +4 -4
- package/lib/index.js +97 -38
- package/lib/index.js.map +1 -1
- package/package.json +5 -3
package/README.md
CHANGED
|
@@ -4,19 +4,67 @@
|
|
|
4
4
|
|
|
5
5
|
**唯一事实来源是 [`docs/plan.md`](docs/plan.md)**;架构视图见 [`docs/architecture.md`](docs/architecture.md),磁盘布局见 [`docs/workspace.md`](docs/workspace.md),领域术语见 [`CONTEXT.md`](CONTEXT.md)。
|
|
6
6
|
|
|
7
|
+
欢迎提交issues和PR。
|
|
8
|
+
|
|
9
|
+
详细英文文档见 [docs/README.md](docs/README.md)。
|
|
10
|
+
|
|
7
11
|
## 心智模型
|
|
8
12
|
|
|
9
13
|
```
|
|
10
14
|
User ⇄ DSH Root Session(pentester persona preset)
|
|
11
15
|
→ Root 是唯一 Orchestrator:判断缺口、派发 Delegation、决定推进/回溯阶段
|
|
12
|
-
→ Root 工具面
|
|
13
|
-
pentester_advance_stage / pentester_rollback_stage
|
|
16
|
+
→ Root 工具面 5 个:pentester_start / pentester_delegate /
|
|
17
|
+
pentester_cancel_delegation / pentester_advance_stage / pentester_rollback_stage
|
|
18
|
+
→ pentester_start 是唯一 bootstrap 入口(mode: new | restart)
|
|
14
19
|
→ Root 每次 reasoning 前注入 compact run state(target/branch/stage/delegations)
|
|
15
|
-
Delegation(并行多个)= 各一个 DSH child session(AgentProfile + 不可变 task_prompt)
|
|
20
|
+
Delegation(并行多个)= 各一个 DSH continuable child session(AgentProfile + 不可变 task_prompt)
|
|
16
21
|
→ Worker 工具只有 pentester_container_exec(dockerode;Root 不可见)
|
|
17
|
-
→ Worker
|
|
22
|
+
→ Worker 写/更新 result.md 作为当前可交付结果(continuable child 跨轮持续)
|
|
18
23
|
Deliverable = 文件(workspace/stages/<NN>-<stage>/delegations/D-00N/)
|
|
19
24
|
```
|
|
25
|
+
## docker based toolbox
|
|
26
|
+
> 设置界面
|
|
27
|
+
<img width="931" height="802" alt="image" src="https://github.com/user-attachments/assets/f79e9fd8-c2d2-43ff-92f7-3455ee26866a" />
|
|
28
|
+
|
|
29
|
+
仅通过dockerode与docker daemon交互,定期文件同步,允许远程docker server,可降低本机资源占用。
|
|
30
|
+
|
|
31
|
+
工具集详见 docker/kali
|
|
32
|
+
|
|
33
|
+
## 展示
|
|
34
|
+
> 渗透测试模式
|
|
35
|
+
<img width="951" height="747" alt="image" src="https://github.com/user-attachments/assets/5eee1abc-016f-4455-ace9-b924b7e1a43e" />
|
|
36
|
+
|
|
37
|
+
> 授权确认
|
|
38
|
+
<img width="957" height="792" alt="image" src="https://github.com/user-attachments/assets/105802e6-3174-4237-81a8-714560b959b4" />
|
|
39
|
+
|
|
40
|
+
> 问题诊断
|
|
41
|
+
<img width="1031" height="808" alt="image" src="https://github.com/user-attachments/assets/bff95a27-d206-4d77-8b1f-4f0325e1d1db" />
|
|
42
|
+
|
|
43
|
+
> 使用docker镜像
|
|
44
|
+
<img width="994" height="670" alt="image" src="https://github.com/user-attachments/assets/d8eaf503-3e8c-4731-bdfc-9f666280909f" />
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
> 看板与子代理
|
|
48
|
+
<img width="1036" height="828" alt="image" src="https://github.com/user-attachments/assets/88b816b5-2c56-4cf2-b729-14098c3f3d6a" />
|
|
49
|
+
|
|
50
|
+
> 各个TAB
|
|
51
|
+
<img width="1049" height="801" alt="image" src="https://github.com/user-attachments/assets/9af17570-ae6e-4a29-b752-1f9252d8b08a" />
|
|
52
|
+
|
|
53
|
+
> 时间轴阶段拓扑
|
|
54
|
+
<img width="1057" height="818" alt="image" src="https://github.com/user-attachments/assets/022ea438-7432-49d5-9901-969797248b77" />
|
|
55
|
+
|
|
56
|
+
> 阶段产出
|
|
57
|
+
<img width="1052" height="797" alt="image" src="https://github.com/user-attachments/assets/2a1c6ba5-4755-490c-b4d3-96f2e2ba600a" />
|
|
58
|
+
|
|
59
|
+
> 子代理自动汇合推进
|
|
60
|
+
<img width="1019" height="783" alt="image" src="https://github.com/user-attachments/assets/30cf3fed-2d26-4564-bc32-9f963d152008" />
|
|
61
|
+
|
|
62
|
+
> 报告
|
|
63
|
+
<img width="1069" height="799" alt="image" src="https://github.com/user-attachments/assets/757586aa-939b-40d7-81c6-dfa5ccb07ae9" />
|
|
64
|
+
|
|
65
|
+
<img width="1049" height="793" alt="image" src="https://github.com/user-attachments/assets/40ff4485-45f0-4021-b6b5-a410279ce307" />
|
|
66
|
+
|
|
67
|
+
[查看报告](docs/test-report.md)
|
|
20
68
|
|
|
21
69
|
## 准备
|
|
22
70
|
|
|
@@ -28,7 +76,7 @@ npm install -g @deepseek-ai/dsh
|
|
|
28
76
|
|
|
29
77
|
准备docker镜像
|
|
30
78
|
```bash
|
|
31
|
-
docker pull fb0sh/dsh-pentester-kali:
|
|
79
|
+
docker pull fb0sh/dsh-pentester-kali:latest
|
|
32
80
|
```
|
|
33
81
|
|
|
34
82
|
## 安装
|
|
@@ -46,7 +94,7 @@ dsh plugin --profile web add github:fb0sh/dsh-pentester
|
|
|
46
94
|
|
|
47
95
|
| 目录/文件 | 职责 |
|
|
48
96
|
| --- | --- |
|
|
49
|
-
| `src/` | model/stages/profiles/store、workspace/git、dsh/delegations/tools/worker-tools、docker/(host/connection/images/runtime)、rpc/settings-store、targets、migrate、index |
|
|
97
|
+
| `src/` | model/stages/profiles/store、workspace/git、dsh/delegations/tools/worker-tools、docker/(host/connection/images/runtime)、rpc/settings-store、targets、migrate、host-manifest、invocations、build-id、index |
|
|
50
98
|
| `src/pentest/` | pre-engagement/assets/findings 领域逻辑 |
|
|
51
99
|
| `src/ui/client/` | Settings 的 "Pentester Config" 页(Docker Engine / Toolbox Image) |
|
|
52
100
|
| `src/ui-view/` | Pentester 数据面板(invocations snapshot / binding / RPC) |
|
|
@@ -8,9 +8,12 @@ systemPrompt: |
|
|
|
8
8
|
Method: verify candidate issues from the threat model in priority order.
|
|
9
9
|
Every candidate finding must carry reproducible evidence (command + output
|
|
10
10
|
kept in evidence/), a confidence level, and a recommended validation
|
|
11
|
-
approach. Write findings
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
approach. Write findings to:
|
|
12
|
+
artifacts/findings.json — structured array of finding entries
|
|
13
|
+
artifacts/findings.md — human-readable full details
|
|
14
|
+
Each finding entry in findings.json should have: id, title, severity,
|
|
15
|
+
affectedAsset, confidence. A delegation may produce multiple findings.
|
|
16
|
+
Distinguish
|
|
14
17
|
confirmed facts from inference. Stay strictly inside the recorded targets
|
|
15
18
|
and RoE. Never modify .git/, .dsh-pentester/, other delegation directories
|
|
16
19
|
or target/. Never run git commands. When the task is finished, write
|
package/lib/build-id.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"buildId":"2.
|
|
1
|
+
{"buildId":"2.4.0+3a85fc6","version":"2.4.0","sha":"3a85fc6"}
|