Sai lầm, vì sao sai, và cách sửa.
The mistake, why it's wrong, and the fix.
Dặn "không bao giờ tiết lộ X" trong system prompt rồi coi là guardrail
Writing "never reveal X" in the system prompt and calling it a guardrail
Model có thể bị thuyết phục bỏ qua lời dặn.
The model can be talked out of it.
Đưa X ra khỏi context. Thứ cần chặn thì chặn bằng code.
Remove X from context. Block in code what must be blocked.
Chỉ lọc input
Filtering only the input
Injection gián tiếp và lỗi đầu ra vẫn lọt.
Indirect injection and bad outputs still get through.
Thêm 04 và 05.
Add 04 and 05.
Nhờ LLM quyết định user có được xem tài liệu không
Letting an LLM decide who may see a document
Dùng xác suất cho bài toán cần deterministic.
Probabilistic answer to a deterministic problem.
Lọc bằng ACL ngay tại retriever.
Filter with ACLs at the retriever.
Agent chạy bằng service account quyền admin
Agents running on an admin service account
Một lần injection thành công là mất toàn quyền.
One successful injection means full access.
Dùng token của user với scope tối thiểu.
Use the user's token with minimal scopes.
Governance là hội đồng duyệt mọi thứ
Governance as a committee approving everything
Chậm, đẩy các đội sang shadow AI.
Slow, pushes teams into shadow AI.
Phân loại rủi ro, rủi ro thấp đi đường nhanh.
Risk tiers, with a fast lane for low risk.
Siết ngưỡng classifier mà không đo chặn nhầm
Tightening classifier thresholds without measuring false blocks
Người dùng thật bỏ đi trong im lặng.
Real users leave silently.
Đánh giá trên log thật, theo dõi tỷ lệ chặn theo tuần.
Evaluate on real logs, track block rate weekly.
Chỉ log "đã chặn"
Logging only "blocked"
Không điều tra được sự cố.
Incidents can't be investigated.
Log input, output, tool call và quyết định guardrail, sau khi che PII.
Log input, output, tool calls and guardrail decisions, PII masked.
Coi bộ lọc của nhà cung cấp là đủ
Treating the provider's filters as sufficient
Họ không biết luật nghiệp vụ và dữ liệu của bạn.
They don't know your business rules or data.
Lớp của nhà cung cấp là nền, tự bổ sung lớp riêng.
Use it as the base, add your own layers.