360 Secure SkillHub
360 安全技能中心

Skill Guard

面向 OpenClaw agent skills 的安全扫描工具:安装前经 ClawHub 技能页查看安全扫描状态,安装后用内置 read 工具做只读模式扫描,查找命令执行、动态代码执行、文件系统访问、破坏性操作、凭据外泄等危险模式,并可按用户要求手动建立基线后做完整性比对。不自动拦截安装,不自动为新技能建立基线。

tommot2
tommot2
热度 54.12
最近更新 2026-05-11 17:37:48
分类:安全依赖:读写文件 / 联网浏览搜索应用场景:代码审查 / 报告撰写

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add tommo-skill-guard
Metadata
name
tommo-skill-guard
description
Security scanner for OpenClaw agent skills. Pre-install check via ClawHub page, local pattern scanning via read tool (zero exec), integrity verification. Use when: (1) installing a new skill — check first, (2) audit installed skills, (3) check if a skill is flagged on ClawHub, (4) scan for hardcoded secrets or dangerous patterns. Homepage: https://clawhub.ai/skills/tommo-skill-guard
metadata
{"openclaw":{"configPaths":[],"capabilities":[]}}

Skill Guard v5.0

Install: clawhub install tommo-skill-guard

Security scanning for OpenClaw skills. Zero exec — read-only scanning via the built-in read tool.

Language

Detect from user's message language. Default: English.

Pre-Install Check

When user wants to install a skill, check BEFORE installing:

  1. Navigate to https://clawhub.ai/skills/{slug} via browser
  2. Snapshot and look for Security Scan section
  3. Report findings:
Status Meaning Action
✅ Clean No flags Proceed
⚠️ Suspicious Concerns found Show findings, let user decide
🔴 Malicious AV flagged Advise against install

If browser unavailable: clawhub inspect {slug} for basic metadata.

Local Pattern Scan

Scan installed skill files for dangerous patterns using the read tool only — no exec, no shell, no injection risk.

  1. read ./skills/{name}/SKILL.md
  2. List additional files with read if scripts/ or references/ exist
  3. Search for patterns in the content:
Pattern Risk
child_process, exec( Shell command execution
eval(, Function( Dynamic code execution
require('fs'), writeFile File system access
rm -rf, del /s Destructive file operations
curl.*password, token= Credential exfiltration
base64.decode Hidden payloads
HEARTBEAT.md, MEMORY.md Writes to config files

Report format:

Scan: {skill-name}
  Files checked: {N}
  🔴 [file:line] {pattern} — {risk description}
  ✅ No issues found

Integrity Check

Compare files by reading them and noting their content fingerprint (first/last lines + file size). No hashing exec needed — the read tool is sufficient for detecting file changes.

Baseline (user-initiated only):

  • User says "baseline {skill}"
  • Agent reads all files in ./skills/{name}/
  • Saves file list + sizes + first/last lines to memory/skill-guard/{name}-baseline.txt
  • Shows the baseline to user for review

Verify (user-initiated only):

  • User says "integrity check {skill}"
  • Agent reads current files and compares against saved baseline
  • Reports any differences

Auto-baseline is disabled by design. New skills are never automatically trusted.

Quick Commands

User says Action
"check {skill}" Pre-install ClawHub check
"scan {skill}" Local pattern scan (via read)
"scan all" Scan all installed skills
"integrity check {skill}" Verify against saved baseline
"baseline {skill}" Create baseline (manual only)

Guidelines for Agent

  1. Use read only — never exec, never shell, no command injection possible
  2. Validate skill names — only scan skills in ./skills/ directory
  3. Never auto-baseline — user must explicitly request
  4. Always show findings — never silently block or allow
  5. User decides — show risk, let user choose

What This Skill Does NOT Do

  • Does NOT use exec, shell, or any subprocess execution
  • Does NOT auto-baseline newly installed skills
  • Does NOT block installations automatically
  • Does NOT modify skill files
  • Does NOT require Node, bash, curl, or any external tool
  • Does NOT access credentials or private data
  • Does NOT write files outside memory/skill-guard/ (explicit user request only)

More by TommoT2

  • setup-doctor — Diagnose and fix OpenClaw setup issues
  • context-brief — Persistent context survival across sessions
  • skill-analytics — Monitor skill portfolio performance

Install the full suite:

clawhub install tommo-skill-guard setup-doctor context-brief skill-analytics