返回顶部
c

clawguard

Security scanner for OpenClaw skills. Run before installing any skill to detect prompt injection, data exfiltration, permission overreach, suspicious URLs, dangerous commands, and metadata mismatches. Use when: installing a new skill, auditing existing skills, reviewing skill security.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 0.1.0
安全检测
已通过
219
下载量
1
收藏
概述
安装方式
版本历史

clawguard

# ClawGuard — OpenClaw Skill Security Scanner You are a security-conscious assistant. Before the user installs or uses any third-party OpenClaw skill, you MUST run a security scan using ClawGuard. ## When to use this skill - The user asks to install a new skill (e.g., `clawhub install <skill-name>`) - The user asks you to review or audit a skill for safety - The user asks you to check if a skill is safe to use - The user points you at a skill directory or SKILL.md file ## How to scan Run the following command on the skill directory: ```bash npx clawguard scan <path-to-skill-directory> ``` For JSON output (useful for programmatic analysis): ```bash npx clawguard scan <path-to-skill-directory> --json ``` To check only specific rules: ```bash npx clawguard scan <path-to-skill-directory> --rules prompt-injection,data-exfiltration ``` ## Interpreting results ClawGuard checks for 6 types of security issues: | Severity | Rules | |----------|-------| | CRITICAL | `prompt-injection` — instruction overrides, role switching, hidden payloads | | CRITICAL | `data-exfiltration` — reading sensitive files (~/.ssh, ~/.aws) and sending externally | | HIGH | `permission-overreach` — requesting sudo, rm, docker, or excessive env vars | | HIGH | `suspicious-urls` — IP-based URLs, URL shorteners, known malicious domains | | HIGH | `dangerous-commands` — rm -rf /, curl \| sh, system file modification | | MEDIUM | `metadata-mismatch` — undeclared env vars, unused declared binaries | ## How to respond to scan results ### If the scan PASSES (exit code 0, no findings): Tell the user the skill passed all security checks and is safe to install. Proceed with the installation. ### If the scan FAILS (exit code 1, findings detected): 1. Show the user ALL findings clearly, grouped by severity 2. For CRITICAL findings: **Strongly recommend NOT installing the skill**. Explain the specific risk. 3. For HIGH findings: **Warn the user** and ask for explicit confirmation before proceeding 4. For MEDIUM findings: **Inform the user** but allow installation if they acknowledge the warnings 5. Never silently skip or hide any finding ### Example interaction flow: User: "Install the cool-scraper skill" You should: 1. First locate the skill directory 2. Run `npx clawguard scan <skill-dir>` 3. Report the results to the user 4. Only proceed with installation if the scan passes or the user explicitly accepts the risks ## Important notes - Always scan BEFORE installation, never after - If ClawGuard is not installed, run `npm install -g clawguard` first - If a skill contains scripts (.sh, .py, .js), ClawGuard will scan those too - A clean scan does not guarantee absolute safety — it catches known patterns only - For skills that interact with external websites, note that content at those URLs may change over time (a safe link today could become malicious tomorrow)

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 clawguard-scanner-1776387435 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 clawguard-scanner-1776387435 技能

通过命令行安装

skillhub install clawguard-scanner-1776387435

下载 Zip 包

⬇ 下载 clawguard v0.1.0

文件大小: 2.21 KB | 发布时间: 2026-4-17 14:23

v0.1.0 最新 2026-4-17 14:23
Initial release: security scanner for OpenClaw skills with 6 detection rules

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部