Token导航 LogoToken导航

Agent Skill · 效率

openclaw-hardening-v1(OpenClaw hardening V1 安全)

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

openclaw-hardening-v1 是效率类 Agent Skill,可用宿主为 OpenClaw,通过ClawHub获取,权限为接触敏感数据;许可证为 MIT-0,第三方扫描有提醒项,按安装量在效率类的 21,003 个 Skill 里排第 18,764。

总安装 2,252周安装 92GitHub Stars 公开资料未说明下载 729核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT-0
版本
1.0.0

安装方式

通过对话安装

复制提示词发给支持本地命令或 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

这个 Skill 是做什么的

效率类 Skill 把重复的整理、汇总、转换工作交给助手完成,减少手工复制粘贴。

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

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 OpenClaw;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 openclaw skills install openclaw-hardening-v1;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

openclaw-hardening-v1 怎么安装?

在终端执行 openclaw skills install openclaw-hardening-v1。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

openclaw-hardening-v1 支持哪些 AI 工具?

公开资料标注支持 OpenClaw。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

openclaw-hardening-v1 需要什么权限?

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

openclaw-hardening-v1 是免费的吗?

来源标注的许可证是 MIT-0。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

openclaw-hardening-v1 用的人多吗?

公开数据是累计安装 2,252 次,近一周安装 92 次,下载 729 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

openclaw-hardening-v1 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 专注 OpenClaw 一种宿主,触发方式和使用习惯不用来回切换。
  • 许可证明确为 MIT-0,商用和分发边界好判断。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 OpenClaw,想直接扩展它能力的人。
  • 需要处理效率类任务、又不想每次都手写提示词的人。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要厂商级技术支持和 SLA 的生产系统。

效率类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
github

GitHub 代码协作 · OpenClaw

7,632,918545需要联网MIT-0通过
nano-pdf

Nano PDF 文档 · OpenClaw

4,249,476231需要联网MIT-0通过
auto-updater

自动更新程序 · OpenClaw

2,964,063386操作浏览器MIT-0通过
video-frames

视频帧 · OpenClaw

2,621,304112需要联网MIT-0通过
gemini

Gemini 助手 · OpenClaw

2,547,39648需要联网MIT-0有提醒
openclaw-hardening-v1

OpenClaw hardening V1 安全 · 本页

2,252—接触敏感数据MIT-0有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

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.

平台分布

OpenClaw

84.81%
按下载量换算618

安全审计

VirusTotal

通过

ClawScan

可疑

Static analysis

通过

权限和风险

接触敏感数据

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

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills