本卡屬 FR-195(Agent 資安修正),第 1 批 F3。修 FR-186 掃描的 X2 F1、K2 F2(皆 3/3 票);C4 F2 同條,嚴重度:中。

這張卡做什麼(白話)

授權清冊是 Agent 的最後一道牆:只准連清冊上的主機。但清冊現在只比對「要掃的目標」,不比對「掃描工具本身在哪」(SonarQube、ZAP、OpenVAS 的伺服器位址)。有工具設定權限的人把工具位址填成內網任意一台,按「測試連線」,Agent 就替他連過去,還把對方的回應片段顯示回來——等於一個內網探測器。改成:工具伺服器位址也要在清冊內才連。

問題在哪(行號首腦 2026-11-11 對主線 b8b1158 重核過,仍然有效)

改哪些檔

guidant_agent/scan/app/tool_server_gate.py(新檔)
guidant_agent/scan/domain/tool_params.py
guidant_agent/scan/app/probe_runner.py
guidant_agent/scan/app/local_runs.py
guidant_agent/scan/app/task_executor.py
.claude/rules/security/external-calls-and-tools.md
test/test_local_runs.py
test/test_console_ops.py
test/test_console_scan_routes.py
test/test_console_view_audit.py
test/test_detection_probe_route.py
test/test_task_executor.py

怎麼做