> ## Documentation Index
> Fetch the complete documentation index at: https://openclaw.veiseule.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# 安全性

# `openclaw security`

安全性工具（稽核 + 可選的修復）。

20. 相關：

* 安全性指南：[Security](/gateway/security)

## 稽核

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
openclaw security audit
openclaw security audit --deep
openclaw security audit --fix
```

當多個 DM 寄件者共用主要工作階段時，稽核會提出警告，並建議在共用收件匣中使用 **安全 DM 模式**：`session.dmScope="per-channel-peer"`（或針對多帳號頻道使用 `per-account-channel-peer`）。
此外，當未啟用沙箱隔離且同時啟用網頁／瀏覽器工具時，若使用小型模型（`<=300B`），也會發出警告。
21\.
當未啟用沙箱且啟用網路／瀏覽器工具時，也會在使用小型模型（`<=300B`）時發出警告。
對於 webhook ingress，當 `hooks.defaultSessionKey` 未設定、啟用請求 `sessionKey` 覆寫，或在未設定 `hooks.allowedSessionKeyPrefixes` 的情況下啟用覆寫時，系統會發出警告。
當已設定 sandbox Docker 設定但 sandbox 模式未啟用、`gateway.nodes.denyCommands` 使用無效的類樣式/未知項目、全域 `tools.profile="minimal"` 被 agent 工具設定檔覆寫，以及在寬鬆工具政策下已安裝的 extension 外掛工具可能可被存取時，也會發出警告。
