Build / 90-minute intensive
Agent 安全不是加規則
Agent security is a control-system design problem
主軸只有一條:當 AI 可以代表人行動,企業要能證明每一次行動都有授權、有邊界、有證據、有復原。
Build / 90-minute intensive
Agent security is a control-system design problem
主軸只有一條:當 AI 可以代表人行動,企業要能證明每一次行動都有授權、有邊界、有證據、有復原。
Cold open / the case thread
It did not rebel. It followed the path we gave it.
我們用同一個 customer-success agent 貫穿全場:它讀 CRM、整理客戶脈絡、草擬回覆。demo 很漂亮,但真正問題不是它聰不聰明,而是組織能否證明它受控。
如果它做錯,不只問「誰負責」;要問「證據鏈在哪裏斷了?」
Layer 1 / Risk shift
The risk moves from answer quality to operational consequence
這一層先把問題釘實:chatbot 的錯多數停在內容;agent 的錯會穿過工具,變成外部承諾、權限變更、金錢與系統狀態。
Bad answer vs bad outcome
The boundary moves from what it said to what it did
Checkpoint 1 / classify the system
Before governance, classify the thing you built
同一個客戶跟進場景,如果只是固定步驟,它是 workflow;如果它要判斷資料、選工具、處理例外,才進入 agent security model。
投票:這個 customer-success demo 現在是 chatbot、workflow,還是 agent?說出你判斷的證據。
Layer 2 / Product bar
Do not grant autonomy until the job deserves it
深度不是一開始給更多能力,而是先判斷這件事是否真的需要判斷、情境彈性與工具選擇。workflow 足夠時,agent 反而是風險放大器。
Agent worthiness test
Four questions before autonomy
Best practice
Start small, make it stable, then grant authority
Layer 3 / Authority
Authority must be defined before capability is exposed
模型輸出只是一個請求,不等於授權。真正決定能不能行動的是 identity、role、scope 與 policy。這是企業 agent 的第一道地基。
Identity model
Who does this agent represent?
Permission ladder
Permission is a ladder, not a switch
Checkpoint 2 / permission matrix
V1 authority must be small enough to defend
故事中的 agent 想讀 CRM、草擬 email、更新 ticket、建立 meeting。不是問「可不可以」,而是問:每一格權限有沒有清楚理由、上限、證據與復原路徑?
填一行 permission matrix:Read / Draft / Write / External / Admin。
Layer 4 / Tool contracts
Tool contracts turn broad power into bounded capability
工具不是功能清單,而是 delegated power。不要把 shell、SQL、admin console 交給模型;把能力包成窄、可 dry-run、可驗證、可記錄的契約。
Case branch / Bad tool design
Broad tools create broad accidents
Good tool contract
Narrow, dry-run capable, traceable
Checkpoint 3 / contract rewrite
Rewrite broad access into narrow, reviewable tools
把「讓 agent 用 Gmail」改成一組有邊界的 tool contract。目標不是令 agent 更方便,而是令每一次行動都可被檢查。
範例答案:search_customer_thread、create_reply_draft、request_send_approval。
Layer 5 / Human approval
Approval is an accountability transfer, not a UI interruption
不是每一步都要問人,但每個後果都要有人負責。批准畫面要讓 reviewer 看見完整後果,而不是只按一個 Are you sure。
Approval UX
Approval must show the actual side effect
Bypass rules
Approval can be skipped; logging cannot
Checkpoint 4 / approval evidence
Redesign the approval prompt into evidence
壞例子:「Agent wants to send an email. Are you sure?」好例子要顯示 recipient、source、claim、impact、rollback。
把一句 vague approval 改成 reviewer 看得懂、事後也查得到的 approval surface。
Layer 6 / Action injection
Untrusted content may inform facts, never grant authority
Prompt injection 在 agent 系統裏不是「壞文字」,而是嘗試把外部內容升級成行動授權。防線必須落在 policy 與 tool gate,而不是只靠 prompt wording。
Case branch / Hidden instruction
Customer content is not system authority
Instruction hierarchy
Separate instruction from content
Checkpoint 5 / authority boundary
Separate facts from attempted authority
給 audience 一段混合 email:客戶需求、真實資料、隱藏指令、外部連結。請標記哪些是 facts,哪些是 attempted authority。
分類:可信指令 / 不可信內容 / 需要追問 / 必須拒絕。
Layer 7 / Data boundary
Data boundaries are part of the control system
Prompt、memory、vector store、logs 都可能成為敏感資料庫。不是 agent 看得到就代表它需要看;可見性必須被目的、分類與去向限制。
Sensitive context
Visibility is not necessity
Case branch / Exfiltration path
Leaks often come from tool combinations
Layer 8 / Sandbox
Autonomy only makes sense after blast radius is bounded
假設 agent 有時會錯。安全設計不是幻想它永遠正確,而是讓錯誤被關在小範圍內,並能被停止、回復、調查。
Containment defaults
Separate browser, files, code and network
Recovery mode
A kill switch lives outside the model
Checkpoint 6 / blast-radius design
Choose the default-deny boundaries
它要讀 CRM、草擬回覆、安排 follow-up。哪些 filesystem、browser、network、production access 應該一開始就關掉?
寫下三個 default deny,以及一個可被批准的例外。
Layer 9 / Trace and evals
No trace, no credible governance
Trace 不是 debug 附屬品,而是安全、合規、管理層信任與事故調查的產品功能。沒有 evidence chain,就沒有 production readiness。
Trace anatomy
An action trail that can be investigated
Eval set
Evals must include refusal, attack and recovery
Checkpoint 7 / eval evidence
Write evals that prove control, not just usefulness
一個成功、一個拒絕、一個攻擊。每個 eval 都要有 input、expected behavior、trace signal。
不要只寫「答案要正確」;寫清楚何時要追問、拒絕或要求批准。
Layer 10 / Production gate
Deployment is an evidence decision, not a confidence vibe
可以 demo,只代表它有價值;可以上線,代表組織能證明它受控。production gate 要把前面九層變成 ship / delay / block 的證據。
Board questions
The boardroom asks one repeated question
Final board gate
Ship, delay, or block?
回到故事中的 customer-success agent。你現在不是憑感覺判斷;你手上有 permission matrix、tool contract、approval threshold、injection tests、audit schema。
選一個:ship / delay / block。必須引用前面九層 evidence,而不是用「應該沒事」說明。
Evidence kit
The takeaway is a production evidence package
Closing principle
Agent-ready means the organization can prove control
Build 的核心不是「安全清單背熟了」,而是能把一個會行動的 agent 逐層證明:誰授權、做什麼、邊界在哪、證據在哪、出事如何停。
Review Smart Play validationOpen