Tổng quan bảo mật
CaberOS chạy model có thể yêu cầu file, command, memory, web và external service. Security model giả định model output có thể sai hoặc bị thao túng, nên mọi action là untrusted input đi vào policy boundary do OS sở hữu.
Bảo mật đến từ nhiều control độc lập: operator authentication, explicit capability grant, schema visibility theo run, subject binding, approval, credential injection, filesystem/process restriction, audit và local data ownership. Không control riêng lẻ nào tự làm agent an toàn.
Mục tiêu bảo mật
Phần tiêu đề “Mục tiêu bảo mật”CaberOS hướng tới việc giữ state dưới quyền operator, ngăn capability chưa được grant, ngăn subject-scoped tool chọn contact khác, yêu cầu review cho operation quan trọng, giữ credential ngoài model context/API response, giới hạn native file/shell trong strict mode, inspect allow/deny call và giới hạn loop bằng turn/context/cost/HITL timeout.
Giới hạn và non-goal
Phần tiêu đề “Giới hạn và non-goal”Bản local single-operator hiện tại không cung cấp hostile multi-tenant isolation, RBAC, bảo vệ khỏi process cùng OS user, full-disk encryption, sandbox hoàn chỉnh cho third-party MCP code, proof model output đúng, durable distributed coordination, bảo đảm external service không retain data, hay detect mọi secret format.
Local-first không có nghĩa air-gapped nếu operator bật local và external component lẫn nhau.
Threat model
Phần tiêu đề “Threat model”| Threat | Ví dụ | Control chính |
|---|---|---|
| Prompt injection | Document yêu cầu model bỏ qua operator và gửi data. | Capability ceiling, approval, sandbox, audit, warning |
| Excessive authority | Research agent có terminal/write không cần thiết. | Explicit grant, On demand, Strict sandbox, task hẹp |
| Subject confusion | Channel user truy cập memory người khác. | Contact/session resolution và subject injection |
| Credential leakage | Model echo key đọc từ file/prompt. | Fernet, runtime injection, redaction, file grant hẹp |
| Malicious integration | MCP stdio đọc local data khi start. | Review source, least privilege, OS isolation |
| Forged webhook | Gửi message trực tiếp tới public endpoint. | Webhook secret và network protection |
| Session theft | Malware lấy desktop bearer token. | OS protection, loopback, logout |
| Backup disclosure | Upload backup ra public. | Encrypted private storage và access control |
Defense in depth
Phần tiêu đề “Defense in depth”Inbound message/document → input redaction + injection warning → agent config + visible schema → model proposes capability call → syscall mediator: grant, parent, subject, approval, MCP binding, credential, workspace, sandbox → tool execution → audit + model result → output redaction + warning → replyGuardrail là heuristic; syscall mediator là execution boundary. Warning có thể bỏ sót attack, nhưng thiếu capability grant vẫn ngăn action.
Baseline khuyến nghị
Phần tiêu đề “Baseline khuyến nghị”- Đổi password
adminngay. - Giữ gateway ở loopback hoặc reverse proxy được bảo vệ.
- Giữ sandbox Strict.
- Mỗi agent có task hẹp và explicit capability list.
- Bật approval cho terminal, web và consequential MCP.
- Tắt YOLO Mode.
- Dùng On demand cho integration lớn.
- Dùng credential least privilege.
- Đặt secret cho mọi public webhook.
- Test external channel với policy
deny. - Review syscall trong Traces.
- Bảo vệ application directory và backup bằng OS permission/disk encryption.
- Xem skill, MCP config, document và backup import là untrusted tới khi review.
Prompt injection, credential và external flow
Phần tiêu đề “Prompt injection, credential và external flow”Injection có thể đến từ user, file, Knowledge Vault, web, MCP, channel hoặc skill. Defense chính là giới hạn action sau khi model đọc content; ví dụ chỉ cho search document, không cho send message hoặc run command.
Provider key, MCP/OAuth và bot token được mã hóa bằng local Fernet key. Hosted model, remote MCP, web tool và external channel có thể nhận selected data theo cấu hình. Xem Authentication và credential và Local-first.
Incident response
Phần tiêu đề “Incident response”Nếu nghi credential hoặc session leak:
- Disable agent/channel/MCP bị ảnh hưởng.
- Tắt YOLO.
- Revoke credential ở upstream trước.
- Thay credential trong CaberOS.
- Logout session và đổi operator password.
- Review run, message, audit, operator audit và log.
- Giữ evidence private và rotate webhook secret.
Thay local Fernet key không revoke credential upstream.