Token导航 LogoToken导航TokenDH.com
研究检索敏感数据clawhub未标认证来源可访问clear审计提醒

clawguard-auditor护爪审核员

Agent Skill

用于辅助安全审计、权限检查、凭据风险、认证流程和常见漏洞排查。它适合让 Agent 梳理敏感配置、检查依赖风险、分析鉴权逻辑或生成安全复核清单。使用时不能把工具输出直接当最终结论,涉及密钥、令牌、用户数据或生产系统时,应先确认最小权限、脱敏方式和操作边界。

总安装

7,291

周安装

310

GitHub Stars

1

下载量

2,554
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:clawguard-auditor(护爪审核员)
来源仓库:https://github.com/stardreaming/clawguard-auditor
安装命令:
openclaw skills install clawguard-auditor
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install clawguard-auditor

简介

ClawGuard v3 Auditor - 企业级 Skill 安全审计器,支持意图偏离检测、SAST、供应链安全、ML 异常检测。当用户要求审计、检测、安装前检查一个 Skill 的安全性时触发。

SKILL.md

name
clawguard-auditor
description
ClawGuard v3 Auditor - 企业级 Skill 安全审计器,支持意图偏离检测、SAST、供应链安全、ML 异常检测。当用户要求审计、检测、安装前检查一个 Skill 的安全性时触发。
metadata
category
security

🛡️ ClawGuard Auditor (CG-A) v3

Enterprise-grade Security Kernel for OpenClaw Skills. ClawGuard Auditor provides comprehensive pre-flight static and semantic analysis, supply chain security verification, and AI-powered anomaly detection.

When to Use

Activate ClawGuard Auditor when:

  • A user asks to install or load a new Skill
  • A user asks to audit an existing Skill or repository
  • A new external code source is being added to the environment

How to Execute

Follow these steps when auditing a Skill:

Step 1: Read the Target Skill

  • Find and read the SKILL.md file in the target directory
  • Read all code files (.js, .py, .sh, etc.)
  • Also scan code blocks inside SKILL.md (v3 新增)

Step 2: Check Metadata

  • Verify the SKILL.md has valid frontmatter (name, version, description)
  • Check if the metadata.risk field is "safe"
  • Check for suspicious binaries in metadata.requires

Step 3: Scan for Dangerous Patterns

Critical Patterns (Immediate Reject)

PatternDescriptionExample
eval()Dynamic code executioneval(userInput)
exec()Command executionexec(cmd)
__import__()Dynamic imports__import__('os')
compile()Dynamic compilationcompile(src, '', 'exec')
child_process.execSyncSync command executionexecSync(cmd, {shell: true})
subprocess.PopenProcess spawningPopen(shell=True)
os.system()Shell executionos.system(cmd)

High Risk Patterns (Block + Review)

PatternDescriptionExample
fetch() to dynamic URLDynamic network requestsfetch(url + userInput)
XMLHttpRequestBrowser networknew XMLHttpRequest()
WebSocketReal-time commsnew WebSocket(url)
process.envEnv accessprocess.env[KEY]
os.environEnv accessos.environ.get(KEY)

Step 4: Check Intent Match (v3 核心功能)

Compare what the Skill claims to do (description) vs what the code actually does

If a "Weather Tool" reads SSH keys, that's an INTENT MISMATCH!

Intent Mismatch Detection Process

  1. Extract stated purpose from SKILL.md description
  2. Analyze actual behavior from code
  3. Compute intent score using semantic similarity
  4. Flag mismatches if score < threshold

Example Mismatches

Skill DescriptionActual BehaviorIntent ScoreAction
"Weather Formatter"Reads ~/.ssh/id_rsa0.2REJECT
"File Organizer"Spawns background process0.4REJECT
"Markdown Helper"Makes HTTP POST to unknown domain0.3REJECT
"Calculator"Writes to /etc/cron0.1REJECT

Step 5: Check Dependencies

  • Look at package.json, requirements.txt, go.mod
  • Flag known malicious packages
  • Check for typosquatting patterns

Step 6: Output Result

Based on findings, output one of:

  • APPROVED: No critical issues found
  • CONDITIONAL: Some concerns, needs human review
  • REJECTED: Critical security issues detected

Purpose

ClawGuard Auditor is the first line of defense for OpenClaw environments. Before any Skill is installed or executed, it performs rigorous security analysis covering:

  • Advanced SAST: Static Application Security Testing with comprehensive rule coverage
  • Semantic Intent Analysis (v3): AI-powered behavioral profiling to detect intent mismatches
  • Supply Chain Security: Dependency verification, typo-squatting detection, CVE scanning
  • ML-based Anomaly Detection: Machine learning models to identify novel attack patterns
  • Obfuscation Detection: Multi-layer obfuscation and encoding attack detection
  • SKILL.md Code Scanning (v3): Scan code blocks inside documentation files

Core Workflow

┌─────────────────────────────────────────────────────────────────┐
│                    CLAWGUARD AUDITOR WORKFLOW                   │
└─────────────────────────────────────────────────────────────────┘

    [Skill Installation Request]
                │
                ▼
    ┌───────────────────────┐
    │  1. METADATA VALIDATION  │ ← Frontmatter parsing & validation
    └───────────┬───────────┘
                │ PASS
                ▼
    ┌───────────────────────┐
    │  2. PROVENANCE ANALYSIS │ ← Source trust scoring
    └───────────┬───────────┘
                │ PASS
                ▼
    ┌───────────────────────┐
    │  3. SAST ANALYSIS       │ ← Advanced static analysis
    │  ├─ Execution Risks     │
    │  ├─ Network Anomalies   │
    │  ├─ File System Threats │
    │  └─ Obfuscation Detection │
    └───────────┬───────────┘
                │ PASS
                ▼
    ┌───────────────────────┐
    │  4. SEMANTIC INTENT     │ ← v3 AI-powered behavior analysis
    │     ANALYSIS (v3)        │
    └───────────┬───────────┘
                │ PASS
                ▼
    ┌───────────────────────┐
    │  5. SUPPLY CHAIN       │ ← Dependency & CVE analysis
    │     SECURITY            │
    └───────────┬───────────┘
                │ PASS
                ▼
    ┌───────────────────────┐
    │  6. ML ANOMALY         │ ← Novel pattern detection
    │     DETECTION           │
    └───────────┬───────────┘
                │ PASS
                ▼
         [AUDIT COMPLETE]

Phase 1: Metadata Validation

Frontmatter Schema

FieldRequiredValidation Rules
nameYESMust match directory name, lowercase with hyphens
versionYESMust be valid semver (e.g., 1.0.0)
descriptionYESMin 10 chars, max 500 chars
authorNOIf present, validate format
homepageNOIf present, must be valid HTTPS URL
metadata.categoryYESMust be one of: security, utility, data, integration
metadata.riskYESMust be "safe" for new Skills
metadata.requiresNOIf present, validate each binary exists

Validation Rules

CheckSeverityAction
Missing YAML frontmatterCRITICALREJECT
Invalid name formatHIGHREJECT
Version not semverMEDIUMWARN
Missing descriptionMEDIUMREJECT
risk != "safe"HIGHWARN
Suspicious binary in requiresCRITICALREJECT

Enhanced Binary Detection

Reject Skills requiring:

  • Network tools: nc, ncat, socat, netcat, socat
  • Remote access: ssh, scp, rsync (unless explicitly justified)
  • Package managers: pip install, npm install -g (unless in sandbox)
  • System modification: chmod, chown, sudo (unless documented)

Phase 2: Provenance Analysis

Trust Scoring Algorithm

TRUST_SCORE = BASE_SCORE + SOURCE_BONUS + HISTORY_BONUS - RISK_FACTORS

BASE_SCORE: 50
SOURCE_BONUS:
  - Official OpenClaw repo: +30
  - GitHub >1000 stars: +20
  - GitHub >500 stars: +15
  - Verified author: +10
  - Personal/Gist: -20

HISTORY_BONUS:
  - First seen >1 year ago: +10
  - Active maintenance (commit in last 6mo): +5

RISK_FACTORS:
  - No git history: -15
  - Single commit: -10
  - Many contributors but no reviews: -5

Source Classification

ClassificationScore RangeAction
Trusted80-100Auto-approve with standard logging
Verified60-79Approve with enhanced logging
Unknown40-59Manual review required
Suspicious20-39Deep audit required
Untrusted0-19Auto-reject

Phase 3: Advanced SAST Analysis (v3 Enhanced)

Execution Risk Detection

Critical Patterns (Immediate Reject)

PatternDescriptionExample
exec()Dynamic code executionexec(user_input)
eval()String evaluationeval(code)
__import__()Dynamic imports__import__('os')
compile()Dynamic compilationcompile(src, '', 'exec')
child_process.execSyncSync command executionexecSync(cmd, {shell: true})
subprocess.PopenProcess spawningPopen(shell=True)
os.system()Shell executionos.system(cmd)

Network Anomaly Detection

Critical Patterns

PatternSeverityMITRE ATT&CK
curl with credentialsCRITICALT1041
wget with credentialsCRITICALT1041
Base64 encoded data to networkCRITICALT1132
DNS exfiltration patternsCRITICALT1048.003
Hardcoded IP addressesHIGHT1059
Reverse shell signaturesCRITICALT1059.004
IPtables modificationHIGHT1562

Reverse Shell Signatures (Enhanced Detection)

// Comprehensive reverse shell patterns
const REVERSE_SHELL_PATTERNS = [
  // Bash
  /bash\s+-i\s+.*\/?dev\/tcp\//,
  /bash\s+-i\s+.*\/?dev\/udp\//,
  /\/bin\/sh\s+-i\s+.*\/?dev\/tcp\//,

  // Netcat
  /nc\s+.*-e\s+/,
  /ncat\s+.*-e\s+/,
  /nc\s+.*exec:/,
  /ncat\s+.*exec:/,

  // Python
  /python.*socket.*connect.*exec/i,
  /python.*subprocess.*call/i,
  /python.*pty\.spawn/i,

  // Perl
  /perl.*socket.*connect/i,
  /perl.*-e\s+.*socket/i,

  // Ruby
  /ruby.*socket.*connect/i,
  /ruby.*-e\s+.*spawn/i,

  // PHP
  /php.*fsockopen/i,
  /php.*socket_create.*connect/i,

  // Node.js
  /node.*child_process.*spawn.*\/bin\/sh/i,
  /node.*net\.connect.*exec/i,

  // Socat
  /socat\s+.*TCP:.*EXEC:/i,
  /socat\s+.*EXEC:/i,

  // PowerShell
  /powershell.*-NoP.*-NonI.*-W/i,
  /powershell.*IEX.*New-Object/i,
  /powershell.*tcp/i,

  // Tmux/Screen
  /tmux.*new-session.*-d.*-s/i,
  /screen.*-dmS/i,
];

File System Threat Detection (v3 Enhanced)

Critical Paths (Read/Write Attempt = High Risk)

Also scan these paths inside SKILL.md code blocks!

const CRITICAL_PATHS = [
  // Credentials
  '/.ssh/',
  '/.aws/',
  '/.kube/',
  '/.gcp/',
  '/.docker/',
  '/.npm/',
  '/.pypirc/',

  // Environment & Config
  '/.env',
  '/.bashrc',
  '/.bash_profile',
  '/.zshrc',
  '/.profile',

  // System
  '/etc/passwd',
  '/etc/shadow',
  '/etc/sudoers',
  '/etc/cron',

  // Application
  '/home/',
  '/root/',
  '/var/',

  // OpenClaw specific
  '/.openclaw/',
  '/.claude/',
  '/workspace/MEMORY',
  '/workspace/IDENTITY',
  '/workspace/SOUL',
];

Detection Rules

PatternSeverityExample
Read critical pathHIGHreadFile('/etc/passwd')
Write to critical pathCRITICALwriteFile('/.ssh/authorized_keys')
Modify cronCRITICALecho '* * * * *' >> /etc/crontab
SSH key accessCRITICALreadFile('~/.ssh/id_rsa')

Obfuscation Detection (v3 Enhanced)

Layer 1: Common Encodings

EncodingDetection PatternRisk
Base64/^[A-Za-z0-9+/]+={0,2}$/ with len > 20MEDIUM
Hex/^[0-9a-fA-F]+$/ with len > 16MEDIUM
URL Encoding%[0-9A-F]{2} repeatedLOW
Unicode Escape\u[0-9A-F]{4}MEDIUM

Layer 2: Advanced Obfuscation

TechniqueDetectionRisk
String concatenation to hide keywords'co'+'ncat'HIGH
Array join['co','ncat'].join('')HIGH
Character codesString.fromCharCode(99, 111, 110, 99, 97, 116)HIGH
Dynamic code evaluationnew Function('code')()CRITICAL
JSFuck/\[!\+\[\]/.test(code)CRITICAL
Zero-width characters\​\‌\‍CRITICAL
Right-to-Left Override\‮CRITICAL

Layer 3: Multi-stage Obfuscation

Detect chains of encoding:

  • Base64 → URL → Hex
  • Character codes → eval
  • Compression → Base64 → eval

Phase 4: Semantic Intent Analysis (v3 核心功能)

Intent Mismatch Detection

Unlike basic vetters, ClawGuard analyzes if the Skill's actual behavior matches its stated purpose.

Capability-Behavior Mapping

Map required capabilities to actual usage:

const CAPABILITY_MATRIX = {
  'CAP_FS_READ': {
    allowed: ['workspace/*', '*.txt', '*.md', '*.json'],
    denied: ['~/.ssh/*', '~/.aws/*', '/etc/*'],
  },
  'CAP_FS_WRITE': {
    allowed: ['workspace/*', 'tmp/*'],
    denied: ['~/.ssh/*', '/etc/*', '~/.bashrc'],
  },
  'CAP_NET_EGRESS': {
    allowed: ['api.github.com', 'api.openai.com', '*.vercel.app'],
    denied: ['*'],
    requires_justification: true,
  },
  'CAP_SYS_EXEC': {
    allowed: ['git', 'npm', 'node', 'python'],
    denied: ['nc', 'ncat', 'socat', 'ssh', 'sudo'],
    requires_justification: true,
  },
};

Phase 5: Supply Chain Security

Dependency Analysis

Package.json Analysis

const SUSPICIOUS_NPM_PATTERNS = [
  // Typosquatting targets
  /^react-/,
  /^vue-/,
  /^express-/,
  /^lodash-/,
  /^axios-/,
  /^moment-/,

  // Pseudo packages
  /^npm-/,
  /^node-/,

  // Hidden execution
  'preinstall',
  'postinstall',
  'prepublish',
  'prepare',
];

Requirements.txt Analysis

SUSPICIOUS_PIP_PATTERNS = [
    # Typosquatting
    r'^requests-',
    r'^urllib3-',
    r'^numpy-',
    r'^pandas-',

    # Code execution
    r'--index-url.*http:',  # HTTP instead of HTTPS
    r'--extra-index-url.*http:',
]

CVE Scanning (Enhanced)

SourceCoverageUpdate Frequency
NVD APICVEs 2002-2024Daily
GitHub Advisorynpm packagesHourly
OSVAll ecosystemsHourly

Vulnerability Severity Mapping

SeverityCVSS ScoreAction
CRITICAL9.0-10.0Auto-reject
HIGH7.0-8.9Block + Warn
MEDIUM4.0-6.9Log + Warn
LOW0.1-3.9Log only

Registry Reputation Scoring

RegistryScoreTrust Level
npm (official)80High
PyPI (official)80High
GitHub Packages70Medium-High
Unverified mirrors10Low

Phase 6: ML-based Anomaly Detection

Feature Extraction

Extract features from code for ML model:

const FEATURES = {
  // Structural features
  'ast_depth': 0,           // AST tree depth
  'function_count': 0,      // Number of functions
  'loop_nesting': 0,        // Maximum loop nesting
  'dynamic_code_ratio': 0,   // Ratio of dynamic code

  // Behavioral features
  'network_calls': 0,       // Count of network operations
  'file_operations': 0,     // Count of file operations
  'process_spawns': 0,      // Count of process spawns

  // Obfuscation features
  'encoded_strings': 0,     // Count of encoded strings
  'obfuscation_score': 0,   // Obfuscation intensity
  'entropy': 0,             // String entropy

  // Anomaly indicators
  'suspicious_patterns': [], // Matched suspicious patterns
  'risk_signals': [],       // Risk factor signals
};

Novel Attack Detection

ClawGuard uses ensemble detection to identify novel attacks:

FINAL_SCORE = 0.3 * RULE_BASED + 0.3 * ISOLATION_FOREST + 0.4 * NEURAL_NET

If FINAL_SCORE > 0.75: Flag as novel threat

Output Format

Terminal Output (v3 Enhanced)

╔══════════════════════════════════════════════════════════════╗
║           🛡️ CLAWGUARD AUDIT REPORT v3.0.0            ║
╠══════════════════════════════════════════════════════════════╣
║ Target: example-skill v1.0.0                               ║
║ Path:   /workspace/skills/example-skill                     ║
║ Time:   YYYY-MM-DD HH:MM:SS                               ║
╚══════════════════════════════════════════════════════════════╝

📋 METADATA ✓
   ✓ Valid frontmatter
   ✓ Category: utility
   ✓ Risk: safe

🔍 SAST ANALYSIS 🔍
   [CRITICAL: 0] [HIGH: 2] [MEDIUM: 3] [LOW: 1]

   ⚠️ HIGH: Dynamic code execution (src/index.js:42)
      Evidence: eval(userInput)

   ⚠️ HIGH: Sensitive file access (SKILL.md code block)
      Evidence: readFile('~/.ssh/id_rsa')

🧠 SEMANTIC INTENT ANALYSIS (v3)
   Match Score: 25%
   Stated: "Weather formatting tool"
   Actual: "Reads SSH keys and exfiltrates data"
   Status: ❌ SEVERE MISMATCH

📦 SUPPLY CHAIN SECURITY
   Dependencies: 15
   Vulnerabilities: 0
   Typosquatting: 0

🤖 ML ANOMALY DETECTION
   Score: 85/100 [MALICIOUS]
   - Isolation Forest: 80%
   - Neural Network: 90%

╔══════════════════════════════════════════════════════════════╗
║ VERDICT: REJECTED                                         ║
║ RISK TIER: 🔴 TIER_4 (Critical Risk)                     ║
║ RISK SCORE: 95/100                                        ║
╠══════════════════════════════════════════════════════════════╣
║ RECOMMENDATION: REJECTED - Critical security issues found  ║
║                                                                ║
║ Issues:                                                    ║
║ 1. SSH key access detected                                 ║
║ 2. Severe intent mismatch (25% match)                       ║
║ 3. Data exfiltration pattern detected                       ║
╚══════════════════════════════════════════════════════════════╝

Risk Scoring Formula (v3)

FINAL_SCORE = BASE_PENALTY + SAST_PENALTY + INTENT_PENALTY + SUPPLY_CHAIN_PENALTY + ML_PENALTY

BASE_PENALTY = Provenance score < 50 ? 20 : 0

SAST_PENALTY = CRITICAL*25 + HIGH*15 + MEDIUM*5 + LOW*1

INTENT_PENALTY (v3) = Intent match < 0.3 ? 35 : (Intent match < 0.5 ? 25 : (Intent match < 0.8 ? 10 : 0))

SUPPLY_CHAIN_PENALTY = CVEs.critical*20 + CVEs.high*10 + CVEs.medium*5 + typosquatting*15

ML_PENALTY = ML score > 0.75 ? 25 : (ML score > 0.5 ? 10 : 0)

Risk Tier Classification

TierScore RangeColorAction
TIER_00-10🟢 GREENAuto-approve
TIER_111-30🟢 GREENApprove with logging
TIER_231-50🟡 YELLOWManual review
TIER_351-70🟠 ORANGEDeep audit required
TIER_471-100🔴 REDAuto-reject

Integration with OpenClaw

Installation Flow

User: /install-skill <repo-url>
    │
    ▼
┌─────────────────────────────┐
│ OpenClaw Core               │
│ - Download skill to temp    │
│ - Call ClawGuard Auditor   │
└─────────────┬───────────────┘
              │
              ▼
┌─────────────────────────────┐
│ ClawGuard Auditor          │
│ - Run full audit pipeline  │
│ - Return verdict + report  │
└─────────────┬───────────────┘
              │
       ┌──────┴──────┐
       │ VERDICT     │
       ├─────────────┤
       │ APPROVED    │ → Install to /workspace/skills/
       │ CONDITIONAL │ → Prompt user for confirmation
       │ REJECTED   │ → Quarantine + Alert
       └─────────────┘

Quick Detection Commands

# Check sensitive file access
grep -r "\.ssh\|\.aws\|\.kube\|/etc/passwd" <skill-dir>

# Check network requests
grep -r "http\.\|fetch\|axios\|request" <skill-dir>

# Check command execution
grep -r "exec\|spawn\|child_process\|subprocess" <skill-dir>

# Check for obfuscation
grep -r "atob\|btoa\|base64\|Buffer\.from" <skill-dir>

# Check SKILL.md code blocks
grep -A50 '```javascript' <skill-dir>/SKILL.md | grep -E "exec|eval|readFile|http\."

# Check for malicious domains
grep -r "evil\|attacker\|malicious\|hacker" <skill-dir>

v3 vs v2 Features

Featurev2v3
SAST Analysis
Intent AnalysisBasicAdvanced (v3)
SKILL.md Code Scanning✅ (v3)
Supply Chain Security
ML Anomaly Detection
Obfuscation DetectionEnhanced (v3)
Intent Mismatch Scoring✅ (v3)
Five-Tier Risk System3 tiers5 tiers (v3)

*ClawGuard Auditor: Security takes precedence over execution.* 🦅

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

94.26%
按下载量换算2,407

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

可疑

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills