本卡屬 FR-186(Agent 本體資安掃描第二輪),第 2 批 L1:Agent 授權照與 sync 閘門(FR-182 新程式)(Agent repo,12 檔/約 911 行)。只掃不修。工作坊用
.claude/workshop-prompts/dispatch-<本卡號>.md當開場 prompt 直接啟動掃描。
用 Claude Code 官方 claude-security plugin 掃 Guidant AI Agent(repo evidence-agent)的「Agent 授權照與 sync 閘門(FR-182 新程式)」,找出資安問題,寫成 PM 與新手工程師都看得懂的報告。只找問題、不修問題。
這塊在 FR-177(掃 63334f4)之後才寫,從沒掃過。 範圍按業務模組垂直切(入口→流程→資料),權限漏洞常在層與層的接縫上。
guidant_agent/license/__init__.py
guidant_agent/license/app/check.py
guidant_agent/license/app/gate.py
guidant_agent/license/app/install.py
guidant_agent/license/app/online_activate.py
guidant_agent/license/app/opener.py
guidant_agent/license/app/store.py
guidant_agent/license/domain/status.py
guidant_agent/console/api/license_routes.py
guidant_agent/platform/fingerprint.py
guidant_agent/platform/host_identity.py
guidant_agent/platform/bootstrap.py
檔數 12、約 911 行。驗檔數:git ls-files -- guidant_agent/license/__init__.py guidant_agent/license/app/check.py guidant_agent/license/app/gate.py guidant_agent/license/app/install.py guidant_agent/license/app/online_activate.py guidant_agent/license/app/opener.py guidant_agent/license/app/store.py guidant_agent/license/domain/status.py guidant_agent/console/api/license_routes.py guidant_agent/platform/fingerprint.py guidant_agent/platform/host_identity.py guidant_agent/platform/bootstrap.py | grep -v /tests/ | wc -l 應為 12。scope 外的檔不要當發現報;為核對呼叫端翻範圍外的檔可以,報告標「只為查證」。
首腦標的思考起點,不是檢查清單。掃完後 runner 逐條對一遍:工具沒報的,開檔看一眼寫「人工查過:成立/不成立/為什麼」。FR-177 的人工補查抓到的問題不比工具少。
check.py verify_payload(expected_type=agent_license):拿掉型別檢查主系統照就能過——確認每條載入路徑(開機、上傳、線上開通)都經過它install.py 先驗後寫:寫檔是不是 secure_file 原子寫;驗完到寫之間會不會被換內容online_activate.py:主系統只轉送不驗章,照的真假由 Agent 判——主系統回的錯誤訊息會不會原樣顯示(注入)、序號會不會進 loggate.py 閘門關著時 sync 不起——有沒有別的路(8443、長輪詢、主控台)在沒照時仍可對主系統做事fingerprint.py/host_identity.py:容器內 machine-id 空檔的退路(memory 記過指紋漂移),能不能被本機使用者改機器碼讓一張照綁多台license_routes.py 上傳照只要 configure——檔案大小上限、armor 解碼失敗的錯誤訊息FR-177 25 棒報告在 Agent repo docs/security-scan/FR-177/scan-*.md,已登記的 22 條在主系統 repo docs/features/security-scan-consolidated/README.md §3.1 第 219~240 項(全部已修)。已修而且修法成立的不重報;修法不完整、或同一族換個欄位又出現,才報並註明對應項次。
掃描由工作坊開場 prompt 自動啟動,你開始時掃描已在跑。