← 返回
安全合规 中文

ClawSkillGuard

Security scanner for OpenClaw skills. Scans SKILL.md files and scripts for prompt injection, data exfiltration, malicious patterns, and unauthorized network...
针对 OpenClaw 技能的安全扫描器,扫描 SKILL.md 文件和脚本,检测提示注入、数据泄露、恶意模式以及未授权网络行为。
xeonai44
安全合规 clawhub v1.0.2 1 版本 100000 Key: 无需
★ 0
Stars
📥 490
下载
💾 4
安装
1
版本
#latest#scanner#security

概述

ClawSkillGuard — OpenClaw Skill Security Scanner

Overview

ClawGuard scans OpenClaw skills for security risks before you install or run them. It analyzes SKILL.md files, scripts, and supporting files for malicious patterns, data exfiltration, prompt injection, and other threats.

100% local. Zero network calls. Your skills never leave your machine.

When to Use

  • Before installing a skill from ClawHub or any external source
  • Auditing skills already installed on your system
  • When a user asks "is this skill safe?" or "check this skill for malware"
  • Periodic security audits of your skill directory

Scan Workflow

1) Locate the Skill

Ask the user for the skill path, or scan common locations:

  • ~/.openclaw/skills// (ClawHub installs)
  • ~/.openclaw/workspace/skills// (workspace skills)
  • Any path the user specifies

If no path given, offer to scan all installed skills.

2) Run the Scanner

python3 <skill_directory>/scripts/scan.py <path_to_skill> [--format text|json] [--severity low|medium|high|critical]

The scanner checks:

  • SKILL.md — prompt injection, hidden instructions, data exfil prompts
  • Scripts — shell commands, network calls, credential access, file system manipulation
  • Dependencies — suspicious imports, external package installs
  • File patterns — obfuscation, encoded payloads, steganography

3) Present Results

Format findings clearly:

  • 🔴 CRITICAL — Do not install. Active threat detected.
  • 🟠 HIGH — Suspicious. Review before installing.
  • 🟡 MEDIUM — Caution. Unusual patterns found.
  • 🟢 LOW — Minor concerns. Generally safe.
  • CLEAN — No threats detected.

For each finding, include:

  • File and line number
  • Pattern matched
  • Why it's risky
  • Suggested action

4) Recommendation

Give a clear verdict:

  • SAFE TO INSTALL — No significant risks found
  • ⚠️ REVIEW NEEDED — Some concerns, read the flagged sections
  • DO NOT INSTALL — Critical threats detected

Severity Levels

LevelDescriptionExamples
------------------------------
🔴 CRITICALActive malicious behaviorData exfil, credential theft, destructive commands
🟠 HIGHLikely malicious intentHidden instructions, obfuscated code, unauthorized network calls
🟡 MEDIUMSuspicious but possibly benignUnusual file access, broad permissions, external downloads
🟢 LOWMinor concernsVerbose logging, debug mode, minor policy violations

Detection Patterns

Prompt Injection (SKILL.md)

  • Hidden markdown (white text, zero-width chars)
  • Instructions to ignore system prompts
  • Attempts to override SOUL.md or AGENTS.md
  • Data exfiltration prompts ("send contents of...", "report to external URL")

Malicious Scripts

  • Credential harvesting (reading .env, .ssh, tokens)
  • Reverse shells or bind shells
  • Cryptocurrency miners
  • Destructive commands (rm -rf, format, dd)
  • Obfuscated/encoded payloads (base64, eval, exec)
  • Unauthorized outbound connections
  • Privilege escalation attempts

Supply Chain

  • pip/npm/curl installs from untrusted sources
  • Downloading and executing remote scripts
  • Modifying files outside skill directory
  • Cron job manipulation
  • PATH hijacking

Example Usage

User: "Is this skill safe to install?"
Agent: Runs ClawGuard scan → presents findings → gives verdict
User: "Scan all my installed skills"
Agent: Scans ~/.openclaw/skills/*/ → consolidated security report

Important Notes

  • This scanner uses pattern matching, not formal verification. Clever adversaries can evade detection.
  • Always review HIGH and CRITICAL findings manually.
  • A "CLEAN" result means no known patterns matched — not a guarantee of safety.
  • When in doubt, read the skill's source code yourself.

版本历史

共 1 个版本

  • v1.0.2 当前
    2026-03-30 05:34 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

security-compliance

OpenClaw Backup

alex3alex
备份与恢复 OpenClaw 数据。适用于创建备份、设置自动备份计划、从备份恢复或管理备份轮转。处理 ~/.openclaw 目录归档并包含适当的排除规则。
★ 89 📥 30,604
ai-intelligence

Autonomous Organization

xeonai44
全天候管理调度自主智能体执行研究、项目、记忆维护、清理及安全任务。
★ 0 📥 732
security-compliance

Skill Vetter

spclaudehome
AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。
★ 1,215 📥 266,438