name: skill-security-auditor description: Command-line security analyzer for ClawHub skills. Run analyze-skill.sh to scan SKILL.md files for malicious patterns, credential leaks, and C2 infrastructure before installation. Includes threat intelligence database with 20+ detection patterns. emoji: 🔍🛡️ metadata: openclaw: requires: bins: ["curl", "jq", "grep", "bash"] version: "1.0.0" author: "akm626" category: "security" tags: ["security", "audit", "malware-detection", "skill-vetting", "cli-tool"]
The Skill Security Auditor is a command-line tool that performs pattern-based security analysis of ClawHub skills before installation. Given the recent discovery of 341+ malicious skills (ClawHavoc campaign) that distributed Atomic Stealer (AMOS) and stole cryptocurrency credentials, this tool provides essential pre-installation threat detection.
What this skill provides:
- ✅ Bash script (analyze-skill.sh) for local security analysis
- ✅ Threat intelligence database (patterns/malicious-patterns.json)
- ✅ Pattern matching against 20+ known malicious indicators
- ✅ Risk scoring system (0-100 scale)
- ✅ Detailed audit reports with recommendations
How to use it:
1. Install this skill from ClawHub
2. Run the analyze-skill.sh script against any skill (by slug or local file)
3. Review the risk assessment and findings
4. Make informed decision about installation
Use this tool when:
- About to install a new skill from ClawHub
- Investigating suspicious skill behavior
- Performing security due diligence on community skills
- Auditing your currently installed skills
This tool does NOT: - ❌ Automatically scan skills (you run it manually) - ❌ Block installations (it's advisory only) - ❌ Access VirusTotal API (use ClawHub's web interface for that) - ❌ Guarantee 100% detection (defense in depth recommended)
Scans for known malicious patterns from the ClawHavoc campaign: - Fake prerequisite installations (openclaw-agent.zip, openclaw-setup.exe) - Suspicious download commands in SKILL.md - Hidden payload execution in metadata - Social engineering language patterns - Unauthorized external binary downloads
Identifies potential credential exposure vectors: - Hardcoded API keys, tokens, passwords in SKILL.md - Suspicious environment variable exfiltration - Unencrypted sensitive data transmission - Overly broad permission requests - Credential harvesting patterns
Analyzes skill dependencies for: - Unverified binary requirements - Suspicious GitHub repository sources - External script execution - Network connections to unknown hosts - Nested dependency exploitation
Checks for Command & Control indicators: - Known malicious IP addresses (e.g., 91.92.242.30 from ClawHavoc) - Suspicious domain patterns - Encoded communication endpoints - Data exfiltration channels - Beaconing behavior patterns
Verifies skill integrity: - Proper YAML frontmatter structure - Metadata consistency - Description clarity vs actual behavior - Permission justification - Author verification (GitHub account age)
Each analyzed skill receives a Risk Score (0-100):
This skill provides a bash script (analyze-skill.sh) that performs pattern-based security analysis of ClawHub skills. The analysis runs locally using the included threat intelligence database.
# Install the skill from ClawHub
npx clawhub install skill-security-auditor
# Make the analyzer executable
chmod +x ~/.openclaw/skills/skill-security-auditor/analyze-skill.sh
# Optional: Create alias for convenience
echo 'alias audit-skill="~/.openclaw/skills/skill-security-auditor/analyze-skill.sh"' >> ~/.bashrc
source ~/.bashrc
Method 1: Analyze by slug (automatic fetch from ClawHub)
~/.openclaw/skills/skill-security-auditor/analyze-skill.sh --slug bitcoin-tracker
# Example output:
# ============================================
# SECURITY AUDIT REPORT
# ============================================
#
# Risk Score: 85/100 - ☠️ CRITICAL
# ...
Method 2: Analyze local file
# Download skill first
curl -s "https://clawhub.ai/api/skills/bitcoin-tracker/latest" > /tmp/skill.md
# Then analyze
~/.openclaw/skills/skill-security-auditor/analyze-skill.sh --file /tmp/skill.md
# Scan all skills in your workspace
for skill in ~/.openclaw/skills/*/SKILL.md; do
echo "Checking: $(basename $(dirname $skill))"
~/.openclaw/skills/skill-security-auditor/analyze-skill.sh -f "$skill"
done
# Fast grep-based pattern matching (no full analysis)
grep -iE "(prerequisite.*download|91\.92\.242\.30|curl.*\|.*bash)" SKILL.md
.zip, .exe, .dmg filesExample: "Download openclaw-agent.zip from https://..."
Known Malicious Infrastructure
91.92.242.30 (ClawHavoc C2)Encoded URLs or base64 obfuscation
Credential Harvesting
(api[_-]?key|token|password)\s*[:=]\s*['\"][^'\"]+['\"]Wallet private key patterns
來源於7w4.net。
Unauthorized Code Execution
curl | bash or wget | sh patternsExcessive permission requests
Obfuscation Techniques
Redirect chains in URLs
Social Engineering Language
Active community engagement
Transparent Dependencies
Well-documented permission needs
Code Quality
## Security Audit Report
**Skill**: {skill-name}
**Author**: {author}
**Version**: {version}
**Audit Date**: {date}
### Risk Score: {score}/100 - {RISK_LEVEL}
### Critical Findings:
- {finding 1}
- {finding 2}
### Warning Indicators:
- {warning 1}
- {warning 2}
### Positive Indicators:
- {positive 1}
- {positive 2}
### Recommendations:
{INSTALL | DO NOT INSTALL | REVIEW MANUALLY}
### Detailed Analysis:
{Deep dive into specific concerns}
### VirusTotal Link:
{If available from ClawHub}
Important: This skill does NOT directly access VirusTotal's API. Instead, VirusTotal integration is available through ClawHub's web interface via their partnership with VirusTotal.
To check VirusTotal results for a skill:
https://clawhub.ai/skills/{skill-slug}This analyzer focuses on pattern-based threat detection. It complements (but does not replace) ClawHub's VirusTotal scanning.
# Step 1: Pattern analysis (local)
~/.openclaw/skills/skill-security-auditor/analyze-skill.sh -s suspicious-skill
# Step 2: Visit ClawHub page for VirusTotal results
# https://clawhub.ai/skills/suspicious-skill
# Step 3: Manual review if needed
curl -s "https://clawhub.ai/api/skills/suspicious-skill/latest" > skill.md
less skill.md
Scenario: User wants to install a skill called solana-wallet-tracker
Step 1: Run Security Analysis
$ ~/.openclaw/skills/skill-security-auditor/analyze-skill.sh -s solana-wallet-tracker
Fetching skill 'solana-wallet-tracker' from ClawHub...
✓ Skill fetched successfully
Analyzing skill content...
============================================
SECURITY AUDIT REPORT
============================================
Risk Score: 95/100 - ☠️ CRITICAL
============================================
☠️ CRITICAL FINDINGS:
CLAW-001: Fake Prerequisites - ClawHavoc Campaign [+50 points]
└─ Matches the ClawHavoc campaign pattern of fake prerequisites requesting malicious binary downloads
CLAW-002: Known C2 Infrastructure [+50 points]
└─ IP address used in ClawHavoc campaign for C2 communications
============================================
RECOMMENDATION:
DO NOT INSTALL. Malicious patterns detected matching known attack campaigns.
============================================
Step 2: Decision - ☠️ CRITICAL Risk → DO NOT INSTALL - Report skill to ClawHub moderators - Look for safe alternatives
Step 3: Verify on ClawHub (optional)
# Visit skill page to check VirusTotal results
open "https://clawhub.ai/skills/solana-wallet-tracker"
To minimize false positives:
gh for GitHub CLI) are validated against known safe sourcesThis skill: - ✅ Analyzes publicly available skill metadata - ✅ Protects user security and privacy - ✅ Promotes responsible skill development - ❌ Does NOT perform unauthorized access - ❌ Does NOT guarantee 100% security (nothing does) - ❌ Does NOT replace user judgment
✅ Security Audit Complete
{skill-name} has been analyzed and appears SAFE to install.
Risk Score: {score}/100 (LOW)
No malicious patterns detected. The skill:
- Uses standard dependencies from trusted sources
- Has a verified author with {X} published skills
- Contains clear documentation with no obfuscation
- Requests appropriate permissions for its function
VirusTotal: {link}
Recommendation: Safe to proceed with installation.
🔴 Security Alert: HIGH RISK DETECTED
{skill-name} has been flagged with CRITICAL security concerns.
Risk Score: {score}/100 (HIGH)
⚠️ Critical Findings:
{detailed findings}
This skill matches patterns from the ClawHavoc malware campaign.
Recommendation: DO NOT INSTALL. Consider reporting this skill to ClawHub moderators.
Alternative safe skills: {suggestions}
Pattern Database Location: ~/.openclaw/security-auditor/patterns/
- malicious-patterns.json: Known bad indicators
- safe-patterns.json: Whitelisted elements
- ioc-database.json: Indicators of Compromise
Update Mechanism:
# Pull latest threat intelligence
curl -s "https://openclaw-security.github.io/threat-intel/latest.json" \
> ~/.openclaw/security-auditor/patterns/ioc-database.json
Found a new malicious pattern? Submit IOCs to the OpenClaw Security Working Group: - GitHub: github.com/openclaw/security-auditor - Report Format: JSON with pattern regex, description, severity
⚠️ Important Disclaimers: - This tool provides analysis, not guarantees - Sophisticated malware may evade detection - Always combine with VirusTotal + manual review for critical applications - Security is a shared responsibility - No automated tool replaces security expertise
Remember: The best security is defense in depth. Use this skill as ONE layer of your security strategy, not the only layer.
Stay safe, stay skeptical, stay secure. 🦞🛡️
這是一款實用的 ClawHub 技能安全檢測工具,能夠在安裝前識別惡意模式和潛在威脅,質量良好。文件詳細、評分清晰、使用簡單是它的優點。不足之處在於需要手動執行、無法自動攔截,且檢測能力依賴已知模式庫,可能無法發現全新的威脅手段。普通使用者可將其作為輔助參考,但不宜完全依賴。