/install clawlite-openclaw-security-guard
OpenClaw Security Guard
Use this skill to run fast local security checks before trusting or publishing automation.
What this skill is for
Run this skill when you need to:
- scan suspicious text for prompt injection / secret leakage patterns
- validate shell commands before automation or publishing
- validate URLs for SSRF / localhost / metadata access risks
- validate file paths for traversal / sensitive file access
- audit a skill folder for dangerous scripts, hardcoded secrets, exfiltration patterns, or unsafe install/publish flows
- add a lightweight self-defense layer before using external skills
Workflow
- Choose the narrowest check needed.
- Run one of the bundled scripts.
- Treat
BLOCKas stop-work until reviewed. - Treat
WARNas requiring human review or a narrower sandbox. - For skill audits, review the flagged file lines before install/publish.
Bundled scripts
1) Quick text / command / URL / path checks
node {baseDir}/scripts/security-check.mjs text "\x3Ccontent>"
node {baseDir}/scripts/security-check.mjs command "\x3Cshell command>"
node {baseDir}/scripts/security-check.mjs url "\x3Curl>"
node {baseDir}/scripts/security-check.mjs path "\x3Cpath>"
2) Skill / folder audit
node {baseDir}/scripts/audit-skill-dir.mjs /absolute/or/relative/path/to/skill
3) Write audit into Obsidian vault
node {baseDir}/scripts/write-obsidian-audit.mjs /tmp/audit.json "Skill Audit - my-skill"
This writes a markdown audit note into the ClawLite Obsidian vault under Security Audits/.
4) Install lightweight local hook wrapper
bash {baseDir}/scripts/install-hooks.sh
This installs a reusable workspace script for prepublish checks.
This audits for:
- hardcoded secrets / tokens
- curl|bash / wget|sh installers
- destructive shell patterns
- risky exfiltration / webhook / netcat usage
- suspicious file targets like
~/.ssh,/etc/passwd,.env,id_rsa
Verdicts
ALLOW— no high-risk pattern found in this lightweight passWARN— review manually before proceedingBLOCK— do not trust / run / publish until reviewed
Important limits
- This is a lightweight guard, not a full sandbox.
- Regex-based detection catches common dangerous patterns, not all attacks.
- A clean result does not prove safety.
- For high-risk code, still prefer human review and runtime isolation.
Publishing / install guard
Before publishing or installing a skill from GitHub / ClawHub:
- run
audit-skill-dir.mjs - inspect every
WARN/BLOCK - only proceed when the remaining risk is understood
References
If you need the audit categories / philosophy, read:
{baseDir}/references/checklist.md
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install clawlite-openclaw-security-guard - 安装完成后,直接呼叫该 Skill 的名称或使用
/clawlite-openclaw-security-guard触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
OpenClaw Security Guard 是什么?
This skill should be used when the user asks to harden agent workflows, audit prompts/commands/URLs/paths, scan a third-party skill before install or publish... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 274 次。
如何安装 OpenClaw Security Guard?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install clawlite-openclaw-security-guard」即可一键安装,无需额外配置。
OpenClaw Security Guard 是免费的吗?
是的,OpenClaw Security Guard 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
OpenClaw Security Guard 支持哪些平台?
OpenClaw Security Guard 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 OpenClaw Security Guard?
由 X-RayLuan(@x-rayluan)开发并维护,当前版本 v0.2.1。