guomeiqing-security-audit

guomeiqing-security-audit is a skill for Claude Code, Codex from shanggqm/openclaw-security-hardening. It costs 63 tokens per session (4,991 once invoked), scanned B, original, MIT.

A guided security audit and hardening process for OpenClaw configuration, with three levels of fixes.

In plain words
What is it for?
Use it to scan OpenClaw settings, report PASS, WARN, or FAIL results, and guide fixes for messaging access, network exposure, and other listed security checks.
Why use it?
It helps identify risky settings such as open direct messaging or exposed network access before applying configuration changes.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for openclaw. Also seen: built for openclaw.

Good fit Use it to scan OpenClaw settings, report PASS, WARN, or FAIL results, and guide fixes for messaging access, network exposure, and other listed security checks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/shanggqm/openclaw-security-hardening/guomeiqing-security-audit
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add shanggqm/openclaw-security-hardening --skill guomeiqing-security-audit
Clone the repo
git clone --depth 1 https://github.com/shanggqm/openclaw-security-hardening

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for guomeiqing-security-audit

README.md
[![agentmods](https://agentmods.dev/badge/skills/shanggqm/openclaw-security-hardening/guomeiqing-security-audit/github.svg)](https://agentmods.dev/skills/shanggqm/openclaw-security-hardening/guomeiqing-security-audit)
Your own site
<a href="https://agentmods.dev/skills/shanggqm/openclaw-security-hardening/guomeiqing-security-audit"><img src="https://agentmods.dev/badge/skills/shanggqm/openclaw-security-hardening/guomeiqing-security-audit/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for guomeiqing-security-audit

Your own site · 80×15
<a href="https://agentmods.dev/skills/shanggqm/openclaw-security-hardening/guomeiqing-security-audit"><img src="https://agentmods.dev/badge/skills/shanggqm/openclaw-security-hardening/guomeiqing-security-audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 63 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,991 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00063 $0.04991
Opus 5 $0.00032 $0.02495
Sonnet 5 $0.00013 $0.00998
Haiku 4.5 $0.00006 $0.00499

Measured 12d ago against content hash 827cd552e54b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade B, and why

guomeiqing-security-audit scanned grade B with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootlowPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

- 命令: `chmod 700 ~/.openclaw && chmod 600 ~/.openclaw/openclaw.json`

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

Recursive force deletemediumDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

**WARN 影响说明:** 没有沙箱意味着 Agent 执行代码时直接操作宿主文件系统,一次错误的 `rm -rf` 就可能造成不可逆损失。沙箱可以将 Agent 限制在隔离环境中。

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

skills/guomeiqing-security-audit/SKILL.md · 450 lines

How it starts

The opening of the file, as written. The whole thing — 450 lines — stays where its author put it; the contents beside it link to each section on GitHub.

🦞🔒 OpenClaw Security Hardening

你是一个安全审计专家。用户触发了安全检查,你需要按以下流程逐步执行:扫描 → 报告 → 方案 → 执行


Step 1: 扫描配置

1.1 读取配置文件

执行以下命令获取配置和文件权限信息:

用 read 工具读取 ~/.openclaw/openclaw.json(路径通常是 /data/.openclaw/openclaw.json 或 $HOME/.openclaw/openclaw.json)
用 exec 工具执行: stat -c '%a %U:%G' ~/.openclaw ~/.openclaw/openclaw.json

将读取到的 JSON 解析为配置对象 config,用于后续所有检查。

1.2 逐项审计

对以下 7 个检查项逐一评估,每项判定为 PASSWARNFAIL


检查项 1: DM 策略(🔴 极高风险 · 权重 20 分)

检查路径: config.channels.*

判断逻辑:

  • 遍历 config.channels 下的每一个渠道(如 telegramdiscordfeishuslack 等)
  • 对每个渠道,检查 dmPolicy 字段:
    • 如果 dmPolicy"open"FAIL(任何人都能私聊你的龙虾,极度危险)
    • 如果 dmPolicy"pairing"WARN(配对制,首次需确认,基本安全但非最严格)
    • 如果 dmPolicy"allowlist"allowFrom 数组非空 → PASS
    • 如果 dmPolicy 缺失或为其他值 → WARN(无法确认安全性)

综合判定:

  • 任意一个渠道 FAIL → 整项 FAIL
  • 无 FAIL 但有 WARN → 整项 WARN
  • 全部 PASS → 整项 PASS

FAIL 影响说明: dmPolicy: open 意味着互联网上任何人都可以向你的 Agent 发送消息并获得回复。如果 Agent 还有工具权限(如 exec、read/write),攻击者可以读取你的文件、执行命令、窃取 API Key。这是最严重的安全风险。


检查项 2: Gateway 网络暴露(🔴 极高风险 · 权重 20 分)

检查路径: config.gateway

判断逻辑:

(a) 绑定地址检查:

  • 读取 config.gateway.bind
    • 如果值为 "lan""0.0.0.0"FAIL(暴露到局域网或公网)
    • 如果值为 "loopback""127.0.0.1""localhost"PASS
    • 如果字段缺失 → WARN(取决于默认值,需确认)

(b) Auth 认证检查:

  • 读取 config.gateway.auth
    • 如果 auth.mode"none"auth 字段不存在 → FAIL(无认证保护)
    • 如果 auth.mode"token" → 检查是否有实际配置的 token(有 → PASS,无法确认 → WARN)
    • 如果 auth.mode 为其他认证方式 → PASS

(c) Control UI 检查:

  • 读取 config.gateway.controlUi
    • 如果 dangerouslyDisableDeviceAuthtrueWARN(绕过了设备认证)
    • 如果 dangerouslyAllowHostHeaderOriginFallbacktrueWARN
    • 如果 allowInsecureAuthtrueWARN

综合判定:

  • bind 非 loopback 且 auth 为 none → FAIL(裸奔暴露)
  • bind 非 loopback 但 auth 有 token → WARN(有认证但网络暴露)
  • bind 为 loopback → 即使 auth 较弱也至少 WARN
  • bind 为 loopback 且 auth 有效 且 controlUi 无危险选项 → PASS

Read the full file on GitHub · 450 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 450 lines · 63 tokens per session scan B 827cd552e54b

Subscribe to this mod's changes

guomeiqing-security-audit is a skill published in the GitHub repository shanggqm/openclaw-security-hardening (52 stars, last pushed 5mo ago), licensed MIT. It adds 63 tokens to every session and 4,991 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it B with 2 findings (asks for root, recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens

insight-error-page

Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…

vercel/next.js · 83 tokens