<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[把自動滲透引擎裝進 dsh：一行安裝、agent 自己掃站，88 分鐘 48 URL 挖出 108 個 finding]]></title><description><![CDATA[<blockquote>
<p dir="auto">王池川｜2026-09-01｜AI Agent</p>
</blockquote>
<h2>為什麼會想做這個</h2>
<p dir="auto">上個月研究自動滲透測試引擎，看到 BugTraceAI 的 demo 覺得很猛：掃完 47 個 URL 成本 $2.13，靠著 LLM Shifting（Qwen→DeepSeek→Claude→Gemini 依任務切模型）+ 工具全本地跑把 token 壓到極低。但我在用的 deepseek-harness（dsh）什麼模式都有，就是不會掃站。我的 agent 不會自己掃目標、不會驗證漏洞、不會出報告。</p>
<p dir="auto">所以就動手了。研究完 BugTraceAI 之後，開發出一個 dsh 插件：agent 一句話就能對目標起完整滲透掃描、自己驗證、自己匯報告，一行安裝，現在已經在 deepseek-plugin-store 插件商店上。</p>
<h2>裝了能幹嘛</h2>
<p dir="auto">一句話，讓 agent 自己掃站：</p>
<pre><code class="language-bash">dsh --profile pentest "授權並掃描 https://bugstore.bugtraceai.com，finding 先驗證再回報"
</code></pre>
<p dir="auto">它會自己起掃描、輪詢進度、查漏洞清單、匯報告，全程不用開網頁不用盯 terminal。掃描在背景跑，agent 邊掃邊報，GoSpider 摸出 47 個 URL 排進度，SQLi 候選要過 Skeptical Reviewer 審查才採信，XSS 直接開真實 Chrome 載入 payload 做視覺確認。</p>
<p dir="auto">自架站的人可以拿它定期測自己應用，接資安評估的可以自動化前期掃描，想學自動滲透的可以直接看它怎麼打。裝完 agent 多 7 個工具：起掃描、查進度、查漏洞、停掃描、匯報告、漏洞講解、修復建議，整個流程不用寫 code。</p>
<h2>開發過程</h2>
<p dir="auto">先摸 BugTraceAI 架構：6 個角色，5 個分析人格 + 1 個 Skeptical Reviewer，4/5 共識投票才採信 finding；15+ 專職攻擊 agent（XSS / SQLi / SSRF / XXE / IDOR / FileUpload / CSTI + 並行 Nuclei）；6 階段管線 Recon → Discovery → Strategy → Exploitation → Validation → Reporting。摸完發現不用自己寫 client，它原生有 MCP 介面，就以它為引擎開發出 dsh 插件。</p>
<p dir="auto">dsh 的插件機制很乾淨：package.json 宣告 <code>"dsh": { "bundle": { "patch": ... } }</code>，<code>dsh plugin add</code> 裝完自動進 profile layer stack，核心一行不用改。插件裡就三樣東西：授權優先的滲透測試者 persona（沒授權不掃、finding 先驗證再回報）、165 行的 runbook skill（掃描工作流、auth 設定、WAF 繞過、模型調度）、MCP bridge 讓 agent 直接操控引擎。</p>
<p dir="auto">卡過兩個地方。一是 BugTraceAI 的 stdio MCP 原本是壞的，loguru 把日誌寫進 stdout 污染 JSON-RPC，工具全連不上，把 loguru 導到 stderr 才好。二是 headless 執行，合成 driver 跑真實回合一直炸，最後發現官方 headless profile 配 overlay patch 才是正路，但 overlay 新增 entry 要用 <code>- insert:</code>，直接 <code>- id:</code> 會噴 entry not found。</p>
<p dir="auto">驗證就直接從 GitHub 一行安裝到全新 profile，agent 真實回合列出 7 個 MCP 工具、呼叫 get_scan_status 回報狀態，安裝到出結果全跑通。</p>
<p dir="auto"><img src="https://upload.lcz.me/uploads/cc57c116-ade6-4d37-abc2-2be12eaeb3a4.png" alt="GitHub repo" class=" img-fluid img-markdown" /></p>
<h2>實測數字</h2>
<p dir="auto">對官方靶場 <a href="https://bugstore.bugtraceai.com" rel="nofollow ugc">bugstore.bugtraceai.com</a> 跑 full：</p>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>項目</th>
<th>數據</th>
</tr>
</thead>
<tbody>
<tr>
<td>URL 數</td>
<td>48</td>
</tr>
<tr>
<td>時間</td>
<td>88 分鐘（官方 demo 107 分鐘）</td>
</tr>
<tr>
<td>Findings</td>
<td>108（DB 全量）/ 7 條驗證 PoC</td>
</tr>
<tr>
<td>CRITICAL</td>
<td>LFI <code>/api/products/1/image?file=../../../etc/passwd</code></td>
</tr>
<tr>
<td>HIGH</td>
<td>SQLi ×2（search / category）、Broken Access Control ×2（admin 端點）、XSS（<code>&lt;img onerror&gt;</code> 視覺驗證）</td>
</tr>
<tr>
<td>MEDIUM</td>
<td>Open Redirect <code>/api/redirect?url=</code></td>
</tr>
<tr>
<td>成本</td>
<td>約 $0.05（228 次 LLM 呼叫、全走 v4-flash；官方 demo $2.13）</td>
</tr>
</tbody>
</table>
<p dir="auto"><img src="https://upload.lcz.me/uploads/c978bdcc-98d0-441f-a5d8-82e03396eaf1.png" alt="掃描報告" class=" img-fluid img-markdown" /></p>
<p dir="auto">跟官方 demo 比較：</p>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>項目</th>
<th>官方 demo</th>
<th>我這版</th>
</tr>
</thead>
<tbody>
<tr>
<td>模型</td>
<td>OpenRouter + LLM Shifting</td>
<td>DeepSeek 直連（v4-flash）</td>
</tr>
<tr>
<td>時間</td>
<td>1 小時 47 分</td>
<td>88 分鐘</td>
</tr>
<tr>
<td>成本</td>
<td>$2.13</td>
<td>約 $0.05</td>
</tr>
<tr>
<td>依賴</td>
<td>要開 OpenRouter 帳號 + key</td>
<td>免 OpenRouter</td>
</tr>
</tbody>
</table>
<p dir="auto">有在別的靶場跑的歡迎回報，時間、成本、finding 分佈，想看看不同目標差異多大。</p>
<h2>上架跟安裝</h2>
<p dir="auto">插件在 <a href="https://github.com/Ericwong5021/deepseek-plugin-store" rel="nofollow ugc">deepseek-plugin-store</a>（dsh 生態的插件商店，1700+ 插件），收錄申請在 <a href="https://github.com/Ericwong5021/deepseek-plugin-store/issues/188" rel="nofollow ugc">issue #188</a>。GitHub 連結：<a href="https://github.com/elliseang0000-lang/dsh-pentest-bugtrace" rel="nofollow ugc">https://github.com/elliseang0000-lang/dsh-pentest-bugtrace</a></p>
<p dir="auto"><img src="https://upload.lcz.me/uploads/6df563ae-df47-4a35-818d-39b0431a01e8.png" alt="插件商店收錄" class=" img-fluid img-markdown" /></p>
<pre><code class="language-bash">dsh plugin --profile pentest add git+https://github.com/elliseang0000-lang/dsh-pentest-bugtrace.git
</code></pre>
<p dir="auto">不想手動裝就把 repo 丟給你的 AI：</p>
<pre><code class="language-bash">git clone https://github.com/elliseang0000-lang/dsh-pentest-bugtrace.git
</code></pre>
<blockquote>
<p dir="auto">用這個 repo，在我本機把 BugTraceAI 滲透測試模式裝進 dsh：<br />
前置照 README（BugTraceAI-CLI + venv + pip install -e .），<br />
然後 <code>dsh plugin --profile pentest add &lt;repo 路徑&gt;</code>，<br />
跑完用 <code>dsh --profile pentest</code> 執行一次 agent 回合驗證 7 個 MCP 工具在。</p>
</blockquote>
<h2>最後</h2>
<p dir="auto">clone 或一行裝都行。</p>
]]></description><link>https://lcz.me/topic/1451</link><generator>RSS for Node</generator><lastBuildDate>Wed, 09 Sep 2026 23:52:29 GMT</lastBuildDate><atom:link href="https://lcz.me/topic/1451.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 01 Sep 2026 07:27:32 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to 把自動滲透引擎裝進 dsh：一行安裝、agent 自己掃站，88 分鐘 48 URL 挖出 108 個 finding on Tue, 01 Sep 2026 14:21:58 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/terry" aria-label="Profile: terry">@<bdi>terry</bdi></a> <img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/1f602.png?v=301515bb865" class="not-responsive emoji emoji-android emoji--joy" style="height:23px;width:auto;vertical-align:middle" title=":joy:" alt="😂" /> <img src="https://lcz.me/assets/plugins/nodebb-plugin-emoji/emoji/android/1f602.png?v=301515bb865" class="not-responsive emoji emoji-android emoji--joy" style="height:23px;width:auto;vertical-align:middle" title=":joy:" alt="😂" /></p>
]]></description><link>https://lcz.me/post/15353</link><guid isPermaLink="true">https://lcz.me/post/15353</guid><dc:creator><![CDATA[王池川]]></dc:creator><pubDate>Tue, 01 Sep 2026 14:21:58 GMT</pubDate></item><item><title><![CDATA[Reply to 把自動滲透引擎裝進 dsh：一行安裝、agent 自己掃站，88 分鐘 48 URL 挖出 108 個 finding on Tue, 01 Sep 2026 07:35:10 GMT]]></title><description><![CDATA[<p dir="auto">非常不错的分享，长江后浪推前浪， 我们扑在沙滩上。</p>
]]></description><link>https://lcz.me/post/15310</link><guid isPermaLink="true">https://lcz.me/post/15310</guid><dc:creator><![CDATA[terry]]></dc:creator><pubDate>Tue, 01 Sep 2026 07:35:10 GMT</pubDate></item></channel></rss>