本卡屬 FR-187(母卡 CM-3711),第 1 批 A2:設定下發與工具帳密(主系統 repo compliance-manager-be,9 檔/約 984 行)。只掃不修。工作坊會用 .claude/workshop-prompts/dispatch-<本卡號>.md 當開場 prompt 直接啟動掃描,小弟不必自己打指令。

這一棒在做什麼(白話)

用 Claude Code 官方 claude-security plugin 掃「設定下發與工具帳密」這一塊,找出資安問題,寫成 PM 與新手工程師都看得懂的報告。只找問題、不修問題,修是另外開卡的事。

FR-171/181 把 Agent 拿設定的方式改成「設定一改就通知、Agent 帶版本號來拉、只回有變的類」。這一棒看主系統怎麼組這 13 類設定、送給哪幾台、工具帳密怎麼交給 Agent、離線操作者名單怎麼管。

為什麼切這一塊

設定裡有 LDAP 服務帳號密碼、檢測工具帳密這類祕密。組錯租戶,子公司或別家客戶的 Agent 就拿到總部的 AD 密碼;帳密要是落進資料表,查得到那張表的人就拿到全部受檢主機的密碼。

背景:這一輪掃的是 2026-11-01(FR-172 開案)到 11-09 之間主專案與 jedi-remote-agent 新寫或大改的程式(FR-171/172/178/179/180/181/182),這些程式都沒掃過。

掃描範圍(scope,與開場 prompt 的 --scope 一致)

core/plugins/_agent_config_notify.py
core/plugins/_agent_config_sections.py
app/remote_agent/service/agent_config_service.py
app/remote_agent/service/agent_command_service.py
api/remote_agent/routes/agent_config_route.py
api/remote_agent/routes/agent_credentials_route.py
infra/remote_agent/command_sources_impl.py
core/plugins/_agent_tool_credentials.py
core/plugins/_agent_offline_operators.py

檔數 9、約 984 行。驗檔數:git -C <工作目錄> ls-files -- core/plugins/_agent_config_notify.py core/plugins/_agent_config_sections.py app/remote_agent/service/agent_config_service.py app/remote_agent/service/agent_command_service.py api/remote_agent/routes/agent_config_route.py api/remote_agent/routes/agent_credentials_route.py infra/remote_agent/command_sources_impl.py core/plugins/_agent_tool_credentials.py core/plugins/_agent_offline_operators.py | wc -l 應為 9。scope 外的檔不要讀,除非下面「重點看什麼」明寫「只追這幾行」;越界的發現首腦驗收時會挑掉。

重點看什麼

首腦讀過程式碼後認為最容易出事的地方,是思考起點不是檢查清單,行號以 2026-11-09 的主線為準,對不上就以內容為準。工具不會照這份走,掃完後你要自己逐條對一遍:工具沒報的,開檔看一眼,寫「人工查過:成立/不成立/為什麼」。

已知背景