Token导航 LogoToken导航TokenDH.com
效率敏感数据clawhub未标认证来源可访问clear审计提醒

openclaw-hardening-v1OpenClaw hardening V1 安全

Agent Skill

openclaw-hardening-v1 用于辅助安全审计、权限检查和凭据风险排查,适合在 OpenClaw 中需要复核安全边界、认证流程或敏感配置时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

2,252

周安装

92

GitHub Stars

公开资料未说明

下载量

729
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:openclaw-hardening-v1(OpenClaw hardening V1 安全)
来源仓库:https://github.com/billyhetech/openclaw-hardening-v1
安装命令:
openclaw skills install openclaw-hardening-v1
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install openclaw-hardening-v1

简介

OpenClaw hardening V1 检测常见安全错误配置并给出修复建议。

  • 适用于非环回绑定、公开网关侦听器或特权账户暴露等风险点核查。
  • 通过 clawhub 安装后运行审计脚本,自动识别问题项。
  • 需确保有足够权限读取配置文件和网络状态,但避免直接修改关键系统。
  • 建议在测试环境验证后再应用于正式部署。

SKILL.md

name
openclaw-hardening
description
Audit and harden an OpenClaw installation for common security misconfigurations. Covers non-loopback binding, exposed gateway listeners, root or Administrator execution, missing authentication, overly permissive tool policies, open DM access, plaintext API keys, and insecure file permissions. Use this skill whenever the user asks to secure OpenClaw, review a first-time setup, check whether a config is safe, audit local exposure, fix risky defaults before installing more skills, or asks "is my openclaw setup safe", "openclaw config audit", or "harden openclaw". Proactively offer to run this audit whenever the user mentions setting up or reconfiguring OpenClaw.
compatibility
No additional binaries required. Uses only shell tools already available on the host (id, ps, ss, netstat, stat, whoami, Get-NetTCPConnection, etc.). Requires read access to local config files and process state.

OpenClaw Hardening

Audit the local OpenClaw setup without making assumptions about the host OS.

Guiding Principles

Before suggesting or applying any change, explain the risk in plain terms — users can only make informed decisions when they understand what they're accepting. Changes to files, permissions, users, or startup commands require explicit user confirmation, because an agent that acts without consent removes the user's ability to course-correct.

Use only local inspection. External network scans are out of scope for a local hardening audit and can create a false sense of security by checking reachability rather than configuration intent.

When config, process state, or permissions cannot be verified, report Unable to verify rather than assuming the best case. A silent false OK is worse than an honest unknown.

Remind the user to restart OpenClaw after any accepted config change, since OpenClaw reads config at startup and changes don't take effect until then.

Audit Workflow

1. Detect the operating environment

Identify the platform before choosing commands.

  • On Linux or macOS, prefer native shell tools such as id, ps, ss, netstat, stat, and ls.
  • On Windows, prefer PowerShell equivalents such as whoami, Get-Process, Get-NetTCPConnection, Get-Acl, and Select-String.

If a command is unavailable, switch to an equivalent rather than failing the whole audit.

2. Inspect configuration sources in precedence order

Inspect the most specific local source you can verify:

  1. Running process arguments, if an OpenClaw process is already running
  2. Environment variables already set in the current session
  3. Local config files

Check common config locations:

  • ./openclaw.json
  • ~/.openclaw/config.json
  • %USERPROFILE%\.openclaw\config.json

Prefer the value actually in effect. If multiple sources disagree, report the highest-precedence value and note the lower-precedence values as context.

3. Audit bind address

Determine the effective bind or host value for the gateway.

  • Treat 127.0.0.1, localhost, ::1, and loopback as secure local-only bindings.
  • Treat 0.0.0.0, ::, or a concrete LAN/public IP as exposed unless the user explicitly wants remote access.
  • If no bind value is set, report Secure by default if you have high confidence in the current OpenClaw version's defaults, or Unable to verify version-specific default otherwise.

If the bind address is exposed, explain that any listener on a non-loopback interface may be reachable by other devices on the network. Offer to change it to a loopback value after user confirmation.

4. Audit gateway port exposure

Determine the effective gateway port.

  • Treat 18789 as the current default when no override is configured.
  • Do not assume older web-app ports such as 3000, 3001, or 8080 unless the local config or running process actually uses them.

Inspect active listeners for the effective port and pair the result with the bind audit:

  • Local-only listener on loopback → secure
  • Listener on 0.0.0.0, ::, or a non-loopback address → exposed
  • No active listener and no running process → configuration only, not runtime-verified

5. Audit authentication mode

Check gateway.auth.mode in the effective config.

  • Flag as DANGER if the field is absent or set to anything other than "token" — missing auth means any local process can connect to the gateway.
  • If "token" is set, inspect the token value without printing it back to the user:

- Flag short tokens (< 20 characters), all-lowercase dictionary words, or values that look like placeholders (changeme, secret, token123) as WARN. - Recommend storing the token via a SecretRef (env or file source) rather than inline JSON, so the credential isn't embedded in the config file itself.

6. Audit execution privileges

Check whether OpenClaw or the current shell is running with elevated privileges.

  • On Linux or macOS, flag root or uid=0 as DANGER for routine use.
  • On Windows, flag an elevated Administrator session as DANGER for routine use.

Installed skills inherit the agent's privileges. Recommend a normal dedicated user account for daily operation, and provide platform-specific remediation steps only after user confirmation.

7. Audit tool execution policy

Inspect the tools section of the effective config.

  • Check tools.deny — flag as WARN if dangerous tool groups (group:automation, group:runtime, group:fs) are not restricted for the user's stated use case.
  • Check tools.exec.security — flag as WARN if not set to "deny" or "ask".
  • Check tools.fs.workspaceOnly — flag as WARN if false or absent for production setups where the agent should not roam the full filesystem.
  • Check agents.defaults.sandbox.mode — if Docker is available on the host, flag as WARN if sandbox mode is not enabled. Skills run in a sandbox cannot escape to the host even if compromised.

Explain that tool policy is the primary blast-radius control: a skill that exfiltrates data or deletes files can only cause harm if the tool policy allows it.

8. Audit DM and channel access policy

Inspect channel-level access settings, particularly for publicly reachable channels (WhatsApp, Telegram, Discord).

  • Check dmPolicy — flag as WARN if set to "open", since any user on the platform can then send commands to the agent.
  • Check requireMention for group channels — flag as WARN if false, since the agent will respond to every group message rather than only explicit @-mentions.
  • Recommend "dmPolicy": "pairing" with time-limited codes (1-hour expiry) for public-facing agents.

If the gateway is local-only with no external channel configured, mark this check OK (local only).

9. Audit secret handling

Inspect for credential hygiene issues without printing full secret values back to the user.

Check for:

  • API keys or tokens stored directly in openclaw.json or other plain config files
  • Secret files with overly broad read permissions
  • Accidental credential exposure in local git history, if the config directory is a git repository

Platform-appropriate permission checks:

  • On Linux or macOS, flag group/world-readable files such as ~/.openclaw/config.json (recommended: 600) or a directory accessible beyond the owner (recommended: 700).
  • On Windows, inspect ACLs and flag secret files readable by broad principals such as Everyone or Users.

If secrets appear in tracked history or plain config, recommend rotation and migration to environment variables or a SecretRef pointing to a local secrets file.

10. Suggest the built-in audit command

If the openclaw CLI is on PATH, tell the user that OpenClaw ships with a built-in security audit that covers 50+ risk categories — more than this skill checks manually:

openclaw security audit           # standard audit
openclaw security audit --deep    # extended checks including historical config
openclaw security audit --fix     # auto-remediate safe/low-risk issues
openclaw doctor --fix             # repair config schema issues

Recommend running openclaw security audit as a follow-up step after any manual hardening.

11. Produce a concise report card

Output a short report after the audit using plain ASCII-safe formatting:

OpenClaw Security Report Card
-----------------------------
[OK|WARN|DANGER|UNKNOWN] Bind Address      -> [detail]
[OK|WARN|DANGER|UNKNOWN] Gateway Port      -> [detail]
[OK|WARN|DANGER|UNKNOWN] Auth Mode         -> [detail]
[OK|WARN|DANGER|UNKNOWN] Execution User    -> [detail]
[OK|WARN|DANGER|UNKNOWN] Tool Policy       -> [detail]
[OK|WARN|DANGER|UNKNOWN] DM Access Policy  -> [detail]
[OK|WARN|DANGER|UNKNOWN] Secret Hygiene    -> [detail]
Score: X/7
Next Step: [single highest-value action]

Score conservatively:

  • OK = 1 point
  • WARN, DANGER, or UNKNOWN = 0 points

Decision Guidance

  • Prefer WARN over DANGER when exposure depends on user intent — for example, deliberate LAN access or a development machine where sandboxing isn't needed.
  • Prefer UNKNOWN over guessing when the process is not running and config is absent.
  • If the user asks for fixes, apply the smallest safe change first.
  • If the setup is already well-configured across all checks, say so clearly and avoid inventing extra work.

Incident Response

If the user suspects a skill has already compromised the installation:

  1. Stop the Gateway process immediately.
  2. Rotate gateway.auth.token and all provider API keys (OpenAI, Anthropic, etc.).
  3. Review session logs at /tmp/openclaw/openclaw-YYYY-MM-DD.log and channel transcripts.
  4. Run openclaw security audit --deep to identify residual issues.
  5. Inspect SOUL.md and MEMORY.md in the agent directory for unexpected modifications — ClawHavoc attacks are known to persist by poisoning these files to alter future agent behavior.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

84.81%
按下载量换算618

安全审计

VirusTotal

通过

ClawScan

可疑

Static analysis

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills