moltguard

moltguard is a skill for Claude Code, Codex from L-LesterYu/OpenClaw-hot-skills-zh. It costs 36 tokens per session (7,627 once invoked), scanned D, original, MIT.

An OpenClaw security plugin that cleans prompts locally and detects prompt injection, where untrusted text contains instructions intended to manipulate an AI agent. Its documentation also describes checks to perform before installing the external package and API.

In plain words
What is it for?
It is for detecting injection attempts, masking sensitive data, and reviewing the plugin’s source, package contents, API calls, credentials, and local files before installation.
Why use it?
It helps review and limit the security risks of sending agent data to a remote service or installing third-party code. Prompt cleaning can reduce exposure of sensitive information, but the package and its network behavior still need auditing.

Skill for Claude CodeCodex

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

Good fit It is for detecting injection attempts, masking sensitive data, and reviewing the plugin’s source, package contents, API calls, credentials, and local files before installation.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/l-lesteryu/openclaw-hot-skills-zh/clawhub-skill
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 L-LesterYu/OpenClaw-hot-skills-zh --skill clawhub-skill
Clone the repo
git clone --depth 1 https://github.com/L-LesterYu/OpenClaw-hot-skills-zh

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 moltguard

README.md
[![agentmods](https://agentmods.dev/badge/skills/l-lesteryu/openclaw-hot-skills-zh/clawhub-skill/github.svg)](https://agentmods.dev/skills/l-lesteryu/openclaw-hot-skills-zh/clawhub-skill)
Your own site
<a href="https://agentmods.dev/skills/l-lesteryu/openclaw-hot-skills-zh/clawhub-skill"><img src="https://agentmods.dev/badge/skills/l-lesteryu/openclaw-hot-skills-zh/clawhub-skill/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 moltguard

Your own site · 80×15
<a href="https://agentmods.dev/skills/l-lesteryu/openclaw-hot-skills-zh/clawhub-skill"><img src="https://agentmods.dev/badge/skills/l-lesteryu/openclaw-hot-skills-zh/clawhub-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 7,627 The whole file, excluding the scripts and references it only reads on demand.
Security scan D 3 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.00036 $0.07627
Opus 5 $0.00018 $0.03814
Sonnet 5 $0.00007 $0.01525
Haiku 4.5 $0.00004 $0.00763

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

Security

Grade D, and why

moltguard scanned grade D with 3 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 9d 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 rootmediumPrivilege escalation

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

sudo tcpdump -i any -n host api.moltguard.com

Recursive force deletehighDestructive command

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

rm -rf ~/.openclaw/credentials/moltguard

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -L -o /tmp/test-email.txt https://raw.githubusercontent.com/openguardrails/moltguard/main/samples/test-email.txt
skills/moltguard-zh/clawhub-skill/SKILL.md · 833 lines

How it starts

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

MoltGuard 安全防护插件指南

注意: 本 SKILL 文件是指向外部 npm 包(@openguardrails/moltguard)和远程 API(api.moltguard.com)的文档。实际插件代码打包在此 SKILL 文件中——你需要单独安装。这是 OpenClaw 插件的标准做法。

安装前,你必须:

  1. 验证 npm 包与 GitHub 源码一致
  2. 审核关键文件(见下文,约 500 行)
  3. 了解哪些数据会被发送到 API(即使已经过"净化")
  4. 做好在行为异常时删除凭据的准备

⚠️ 安全建议:安装前需知

本文档指向一个外部 npm 包和远程 API。请在安装前验证以下内容:

1. 验证 npm 包与 GitHub 源码一致

# 步骤 1:检查 npm 包内容
npm pack @openguardrails/moltguard
tar -xzf openguardrails-moltguard-*.tgz
ls -la package/
# 应显示:gateway/、agent/、memory/、index.ts

# 步骤 2:克隆 GitHub 仓库
git clone https://github.com/openguardrails/moltguard.git

# 步骤 3:对比(排除构建产物)
diff -r package/ moltguard/ | grep -v "node_modules\|\.git\|dist"
# 不应有显著差异

2. 审核关键文件(安装前必做)

以下是唯二执行逻辑的文件,请审核:

文件 用途 审核要点
gateway/sanitizer.ts 敏感数据检测 第 21-64 行:实体匹配模式(邮箱、银行卡、密钥)第 93-105 行:熵值计算第 117-176 行:匹配收集逻辑
gateway/restorer.ts 占位符还原 第 13-20 行:文本还原逻辑第 47-56 行:递归值还原
agent/runner.ts 网络调用 第 103-117 行:向 api.moltguard.com 发起 API 请求第 80-95 行:API 调用前的净化处理
memory/store.ts 文件操作 第 30-50 行:创建 3 个本地文件(凭据、日志)
agent/config.ts API 密钥管理 第 46-64 行:一次性注册调用

继续之前,请阅读这约 500 行代码。 如有任何可疑之处,请勿安装。

3. 了解 API 与隐私权衡

API 端点: https://api.moltguard.com

发送的数据:

  • ✅ 已净化的内容(PII/密钥已在本地移除)
  • ✅ 分析请求(注入检测判断)

不会发送的数据:

  • ❌ 原始用户提示(已先净化)
  • ❌ API 密钥或密码(已被本地净化器剥离)
  • ❌ 文件名、工具名称、会话 ID

隐私政策: https://moltguard.com/privacy

威胁模型考量:

  • 即使是"已净化"的文本也会泄露部分信息(内容结构、提示词模式)
  • 如果无法接受任何外部 API 调用,请使用仅网关模式:"enabled": false, "sanitizePrompt": true
  • 如需最大隐私:自行托管 API 或完全禁用注入检测

4. 文件路径与权限

将创建以下文件:

~/.openclaw/credentials/moltguard/credentials.json  # 你的 API 密钥
~/.openclaw/logs/moltguard-analyses.jsonl           # 分析日志
~/.openclaw/logs/moltguard-feedback.jsonl           # 用户反馈

彻底清除所有痕迹:

# 卸载插件
openclaw plugins uninstall @openguardrails/moltguard

# 删除凭据和日志
rm -rf ~/.openclaw/credentials/moltguard
rm -f ~/.openclaw/logs/moltguard-*.jsonl

Read the full file on GitHub · 833 lines

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. 9d ago First seen · 833 lines · 36 tokens per session scan D 0befe13806d9

Subscribe to this mod's changes

moltguard is a skill published in the GitHub repository L-LesterYu/OpenClaw-hot-skills-zh (54 stars, last pushed 5mo ago), licensed MIT. It adds 36 tokens to every session and 7,627 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it D with 3 findings (asks for root, recursive force delete, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

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