跳到正文
FunCoding

搜索

搜索文档、文章、Skill 和 MCP

安全审计检查

openclaw security audit 生成的 checkId 参考目录

openclaw security audit 会生成以 checkId 为键的结构化发现。本页是这些 ID 的参考目录。有关高级威胁模型和加固指南,请参阅安全。

部分检查仅在使用 openclaw security audit --deep 时运行:插件/技能代码扫描(plugins.code_safety*、skills.code_safety*)和实时 Gateway 网关探测检查(gateway.probe_*)。此表中的其他所有检查均可通过普通的 openclaw security audit 运行。

像 warn/critical 这样的严重性表示,根据配置(例如 Gateway 网关是否远程暴露),同一个 checkId 可能以任一严重性级别生成。在实际部署中最可能看到的高信号值如下(并非详尽列表):

checkId严重程度重要原因主要修复键/路径自动修复
fs.state_dir.perms_world_writable严重其他用户/进程可以修改完整的 OpenClaw 状态~/.openclaw 的文件系统权限是
fs.state_dir.perms_group_writable警告组用户可以修改完整的 OpenClaw 状态~/.openclaw 的文件系统权限是
fs.state_dir.perms_readable警告状态目录可被其他用户读取~/.openclaw 的文件系统权限是
fs.state_dir.symlink警告状态目录目标成为另一个信任边界状态目录文件系统布局否
fs.config.perms_writable严重其他用户可以更改身份验证/工具策略/配置~/.openclaw/openclaw.json 的文件系统权限是
fs.config.symlink警告符号链接配置文件不支持写入,并会增加另一个信任边界替换为常规配置文件,或将 OPENCLAW_CONFIG_PATH 指向实际文件否
fs.config.perms_group_readable警告组用户可以读取配置令牌/设置配置文件的文件系统权限是
fs.config.perms_world_readable严重配置可能暴露令牌/设置配置文件的文件系统权限是
fs.config_include.perms_writable严重配置包含文件可被其他用户修改openclaw.json 引用的包含文件权限是
fs.config_include.perms_group_readable警告组用户可以读取包含的机密/设置openclaw.json 引用的包含文件权限是
fs.config_include.perms_world_readable严重包含的机密/设置可被所有用户读取openclaw.json 引用的包含文件权限是
fs.auth_profiles.perms_writable严重其他用户可以注入或替换存储的模型凭据agents/<agentId>/agent/auth-profiles.json 权限是
fs.auth_profiles.perms_readable警告其他用户可以读取 API 密钥和 OAuth 令牌agents/<agentId>/agent/auth-profiles.json 权限是
fs.credentials_dir.perms_writable严重其他用户可以修改渠道配对/凭据状态~/.openclaw/credentials 的文件系统权限是
fs.credentials_dir.perms_readable警告其他用户可以读取渠道凭据状态~/.openclaw/credentials 的文件系统权限是
fs.sessions_store.perms_readable警告其他用户可以读取会话记录/元数据会话存储权限是
fs.log_file.perms_readable警告其他用户可以读取已脱敏但仍敏感的日志Gateway 网关日志文件权限是
fs.synced_dir警告iCloud/Dropbox/Drive 中的状态/配置扩大了令牌/会话记录的暴露范围将配置/状态移出同步文件夹否
gateway.bind_no_auth严重未使用共享机密进行远程绑定gateway.bind、gateway.auth.*否
gateway.loopback_no_auth严重通过反向代理的环回地址可能变为未经身份验证gateway.auth.*、代理设置否
gateway.trusted_proxies_missing警告存在反向代理标头,但未受信任gateway.trustedProxies否
gateway.http.no_auth警告/严重Gateway 网关 HTTP API 可通过 auth.mode="none" 访问gateway.auth.mode、gateway.http.endpoints.*、plugins.entries.admin-http-rpc否
gateway.http.session_key_override_enabled信息HTTP API 调用方可以覆盖 sessionKeygateway.http.allowSessionKeyOverride否
gateway.tools_invoke_http.dangerous_allow警告/严重为所有者/管理员调用方重新启用通过 HTTP API 使用的危险工具gateway.tools.allow否
gateway.nodes.allow_commands_dangerous警告/严重启用高影响节点命令(桌面输入/摄像头/屏幕/联系人/日历/SMS)gateway.nodes.commands.allow否
gateway.nodes.deny_commands_ineffective警告类似模式的拒绝条目无法匹配 shell 文本或组gateway.nodes.commands.deny否
gateway.tailscale_funnel严重暴露于公共互联网gateway.tailscale.mode否
gateway.tailscale_serve信息已通过 Serve 启用 tailnet 暴露gateway.tailscale.mode否
gateway.control_ui.allowed_origins_required严重非环回 Control UI 未配置明确的浏览器来源允许列表gateway.controlUi.allowedOrigins否
gateway.control_ui.allowed_origins_wildcard警告/严重allowedOrigins=["*"] 禁用浏览器来源允许列表gateway.controlUi.allowedOrigins否
gateway.control_ui.host_header_origin_fallback警告/严重启用 Host 标头来源回退(降低 DNS 重绑定防护强度)gateway.controlUi.dangerouslyAllowHostHeaderOriginFallback否
gateway.control_ui.insecure_auth警告已启用不安全身份验证兼容性开关gateway.controlUi.allowInsecureAuth否
gateway.control_ui.device_auth_disabled严重已弃用的设备身份验证绕过迁移仍允许修复访问完成 Secure this browser 配对(gateway.controlUi.deviceAuthMigration 状态)否
gateway.real_ip_fallback_enabled警告/严重信任 X-Real-IP 回退可能会因代理配置错误而允许源 IP 欺骗gateway.allowRealIpFallback、gateway.trustedProxies否
gateway.token_too_short警告较短的共享令牌更容易遭到暴力破解gateway.auth.token否
gateway.auth_no_rate_limit警告暴露的身份验证未设置速率限制,会增加暴力破解风险gateway.auth.rateLimit否
gateway.trusted_proxy_auth严重代理身份现在成为身份验证边界gateway.auth.mode="trusted-proxy"否
gateway.trusted_proxy_no_proxies严重未配置受信任代理 IP 的受信任代理身份验证不安全gateway.trustedProxies否
gateway.trusted_proxy_no_user_header严重受信任代理身份验证无法安全解析用户身份gateway.auth.trustedProxy.userHeader否
gateway.trusted_proxy_no_allowlist警告受信任代理身份验证接受任何已由上游完成身份验证的用户gateway.auth.trustedProxy.allowUsers否
gateway.trusted_proxy_allow_loopback警告受信任代理身份验证接受明确允许的环回代理来源gateway.auth.trustedProxy.allowLoopback否
gateway.probe_auth_secretref_unavailable警告深度探测无法在此命令路径中解析身份验证 SecretRef深度探测身份验证来源 / SecretRef 可用性否
gateway.probe_failed警告实时 Gateway 网关探测失败(仅 --deep)Gateway 网关可达性/身份验证否
discovery.mdns_full_mode警告/严重mDNS 完整模式在本地网络上广播 cliPath/sshPort 元数据discovery.mdns.mode, gateway.bind否
config.insecure_or_dangerous_flags警告已启用一个不安全/危险的调试标志发现详情中指定的键否
security.audit.suppressions.active信息审计输出配置了抑制项,可能已被过滤security.audit.suppressions否
config.secrets.gateway_password_in_config警告Gateway 网关密码直接存储在配置中gateway.auth.password否
config.secrets.hooks_token_in_config警告Hook bearer token 直接存储在配置中hooks.token否
hooks.token_reuse_gateway_token严重Hook 入口 token 也可解锁 Gateway 网关身份验证hooks.token, gateway.auth.token, gateway.auth.password否
hooks.token_too_short警告更容易对 Hook 入口进行暴力破解hooks.token否
hooks.default_session_key_unset警告Hook 智能体运行会扇出到生成的每请求会话中hooks.defaultSessionKey否
hooks.allowed_agent_ids_unrestricted警告/严重已通过身份验证的 Hook 调用方可路由到任何已配置的智能体hooks.allowedAgentIds否
hooks.request_session_key_enabled警告/严重外部调用方可选择 sessionKeyhooks.allowRequestSessionKey否
hooks.request_session_key_prefixes_missing警告/严重外部会话键的形式不受限制hooks.allowedSessionKeyPrefixes否
hooks.path_root严重Hook 路径为 /,使入口更容易发生冲突或错误路由hooks.path否
hooks.installs_unpinned_npm_specs警告Hook 安装记录未固定到不可变的 npm specHook 安装元数据否
hooks.installs_missing_integrity警告Hook 安装记录缺少完整性元数据Hook 安装元数据否
hooks.installs_version_drift警告Hook 安装记录与已安装的软件包不一致Hook 安装元数据否
logging.redact_off警告敏感值泄露到日志/状态中logging.redactSensitive是
browser.control_invalid_config警告浏览器控制配置在运行时启动前无效browser.*否
browser.control_no_auth严重浏览器控制在没有 token/密码身份验证的情况下暴露gateway.auth.*否
browser.remote_cdp_http警告通过明文 HTTP 使用远程 CDP,缺少传输加密浏览器配置文件 cdpUrl否
browser.remote_cdp_private_host警告远程 CDP 指向私有/内部主机浏览器配置文件 cdpUrl, browser.ssrfPolicy.*否
sandbox.docker_config_mode_off警告存在沙箱 Docker 配置,但未启用agents.*.sandbox.mode否
sandbox.bind_mount_non_absolute警告相对绑定挂载的解析结果可能不可预测agents.*.sandbox.docker.binds[]否
sandbox.dangerous_bind_mount严重沙箱绑定挂载指向被阻止的系统、凭据或 Docker 套接字路径agents.*.sandbox.docker.binds[]否
sandbox.dangerous_network_mode严重沙箱 Docker 网络使用 host 或 container:* 命名空间加入模式agents.*.sandbox.docker.network否
sandbox.dangerous_seccomp_profile严重沙箱 seccomp 配置文件削弱容器隔离agents.*.sandbox.docker.securityOpt否
sandbox.dangerous_apparmor_profile严重沙箱 AppArmor 配置文件削弱容器隔离agents.*.sandbox.docker.securityOpt否
sandbox.browser_cdp_bridge_unrestricted警告沙箱浏览器桥接在未限制来源范围的情况下暴露sandbox.browser.cdpSourceRange否
sandbox.browser_container.non_loopback_publish严重现有浏览器容器在非回环接口上发布 CDP浏览器沙箱容器发布配置否
sandbox.browser_container.hash_label_missing警告现有浏览器容器早于当前配置哈希标签openclaw sandbox recreate --browser --all否
sandbox.browser_container.hash_epoch_stale警告现有浏览器容器早于当前浏览器配置 epochopenclaw sandbox recreate --browser --all否
sandbox.browser_container.docker_probe_timeout警告浏览器容器的 Docker 标签探测超时Docker 守护进程可达性否
tools.exec.host_sandbox_no_sandbox_defaults警告沙箱关闭时,exec host=sandbox 会以关闭方式失败tools.exec.host, agents.defaults.sandbox.mode否
tools.exec.host_sandbox_no_sandbox_agents警告沙箱关闭时,每智能体 exec host=sandbox 会以关闭方式失败agents.entries.*.tools.exec.host, agents.entries.*.sandbox.mode否
tools.exec.security_full_configured警告/严重主机 Exec 正以 security="full" 运行tools.exec.security, agents.entries.*.tools.exec.security否
tools.exec.agent_skill_mcp_boundary_drift警告存在智能体 Skills 允许列表,同时主机 Exec 可访问 MCP 客户端/注册表agents.entries.*.tools.exec.*、沙箱/操作系统隔离、MCP 服务器凭据否
tools.exec.fs_tools_disabled_but_exec_enabled警告文件系统工具策略无法使 shell 执行变为只读tools.deny, agents.entries.*.tools.deny, agents.*.sandbox.workspaceAccess否
tools.exec.auto_allow_skills_enabled警告Exec 审批隐式信任 Skills 二进制文件主机审批文件否
tools.exec.allowlist_interpreter_without_strict_inline_eval警告解释器允许列表允许内联求值,无需强制重新审批tools.exec.strictInlineEval, agents.entries.*.tools.exec.strictInlineEval、Exec 审批允许列表否
tools.exec.safe_bins_interpreter_unprofiled警告safeBins 中缺少显式配置文件的解释器/运行时二进制文件扩大了 Exec 风险tools.exec.safeBins, tools.exec.safeBinProfiles, agents.entries.*.tools.exec.*否
tools.exec.safe_bins_broad_behavior警告safeBins 中行为范围广泛的工具削弱了低风险 stdin 过滤器信任模型tools.exec.safeBins, agents.entries.*.tools.exec.safeBins否
tools.exec.safe_bin_trusted_dirs_risky警告safeBinTrustedDirs 包含可变或高风险目录tools.exec.safeBinTrustedDirs, agents.entries.*.tools.exec.safeBinTrustedDirs否
tools.elevated.allowFrom.<provider>.wildcard严重tools.elevated.allowFrom.<provider> 包含 "*",从而批准每个发送者tools.elevated.allowFrom.<provider>否
tools.elevated.allowFrom.<provider>.large警告<provider> 的提升权限允许列表包含超过 25 个条目tools.elevated.allowFrom.<provider>否
skills.workspace.symlink_escape警告工作区 skills/**/SKILL.md 解析到工作区根目录之外(符号链接链漂移)工作区 skills/** 的文件系统状态否
skills.workspace.scan_truncated警告工作区 Skills 扫描在完成前已达到目录访问上限扁平化/简化工作区 skills/ 目录树否
plugins.extensions_no_allowlist警告安装插件时未配置显式的插件允许列表plugins.allowlist否
plugins.allow_phantom_entries警告plugins.allow 列出了一个没有匹配已安装插件的 IDplugins.allow否
plugins.installs_unpinned_npm_specs警告插件索引记录未固定到不可变的 npm 规范插件安装元数据否
plugins.installs_missing_integrity警告插件索引记录缺少完整性元数据插件安装元数据否
plugins.installs_version_drift警告插件索引记录与已安装的软件包不一致插件安装元数据否
plugins.code_safety警告/严重插件代码扫描发现可疑或危险模式(仅 --deep)插件代码/安装来源否
plugins.code_safety.entry_path警告插件入口路径指向隐藏位置或 node_modules 位置插件清单 entry否
plugins.code_safety.entry_escape严重插件入口逃逸出插件目录插件清单 entry否
plugins.code_safety.manifest_parse_error警告在代码安全扫描期间无法解析插件清单插件清单文件否
plugins.code_safety.scan_failed警告插件代码扫描无法完成(仅 --deep)插件路径/扫描环境否
plugins.<pluginId>.security_audit_failed警告插件自有的安全审计收集器抛出错误该插件的安全审计收集器否
skills.code_safety警告/严重Skills 安装程序的元数据/代码包含可疑或危险模式(仅 --deep)Skills 安装来源否
skills.code_safety.scan_failed警告Skills 代码扫描无法完成(仅 --deep)Skills 扫描环境否
channels.discord.allowlisted_groups.broad_members警告允许列表中的 Discord 服务器/频道目标没有成员或角色限制channels.discord.guilds.*.users/roles、每频道的 users/roles否
security.exposure.open_channels_with_exec警告/严重共享/公开房间可以访问启用了 Exec 的智能体channels.*.dmPolicy、channels.*.groupPolicy、tools.exec.*、agents.entries.*.tools.exec.*否
security.exposure.open_groups_with_elevated严重开放的私信/群组与提升权限工具会产生高影响的提示词注入路径顶层或嵌套的私信策略路径、账户覆盖项、channels.*.groupPolicy否
security.exposure.open_groups_with_runtime_or_fs严重/警告开放的私信/群组可以在没有沙箱/工作区防护的情况下访问命令/文件工具私信/群组策略路径、tools.profile/deny、tools.fs.workspaceOnly、agents.*.sandbox.mode否
security.exposure.open_groups_with_control_plane_tools严重开放的私信/群组可以访问 Gateway 网关/定时任务控制平面工具私信/群组策略路径、tools.allow、tools.alsoAllow、tools.profile、gateway、cron否
security.trust_model.multi_user_heuristic警告配置看起来是多用户配置,而 Gateway 网关信任模型是个人助理模型拆分信任边界,或进行共享用户加固(sandbox.mode、工具拒绝/工作区范围限定)否
tools.profile_minimal_overridden警告智能体覆盖项绕过了全局最小配置文件agents.entries.*.tools.profile否
plugins.tools_reachable_permissive_policy警告在宽松上下文中可以访问扩展工具tools.profile + 工具允许/拒绝否
models.legacy警告仍配置了旧版模型系列模型选择否
models.weak_tier警告配置的模型低于当前建议等级模型选择否
models.small_params严重/信息小型模型与不安全的工具接口会增加注入风险模型选择 + 沙箱/工具策略否
channels.<provider>.dm.open严重<provider> 私信策略为 "open";任何人都可以向机器人发送私信channels.<provider>.dmPolicy、.allowFrom否
channels.<provider>.dm.open_invalid警告allowFrom 中的 dmPolicy="open" 缺少 "*",配置不一致channels.<provider>.allowFrom否
channels.<provider>.dm.scope_main_multiuser警告多个私信发送者当前共享主会话session.dmScope否
channels.<provider>.allowFrom.dangerous_name_matching_enabled信息dangerouslyAllowNameMatching 重新启用了可变的姓名/电子邮件/标签发送者匹配禁用 dangerouslyAllowNameMatching,使用稳定的发送者 ID否
channels.<provider>.account.read_only_resolution警告无法为审计完整解析某个渠道账户(缺少密钥/Gateway 网关)确保引用的密钥可解析,或针对实时 Gateway 网关快照运行否
channels.<provider>.warning.<n>信息/警告/严重特定提供商的安全警告,根据插件的自由格式文本进行分类查看发现详情否
summary.attack_surface信息身份验证、渠道、工具和暴露状态的汇总摘要多个键名(请参阅发现详情)否

channels.<provider>.* 和 tools.elevated.allowFrom.<provider>.* checkId 会按已配置的渠道/提供商生成,因此在实际输出中,<provider> 是真实的渠道 ID(例如 telegram、discord),而不是字面字符串。

相关内容