Skill Security Auditor
Description
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
- Run the
analyze-skill.sh script against any skill (by slug or local file) - Review the risk assessment and findings
- 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)
Core Capabilities
1. Malicious Pattern Detection
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
2. Credential Leak Analysis
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
3. Dependency Chain Validation
Analyzes skill dependencies for:
- - Unverified binary requirements
- Suspicious GitHub repository sources
- External script execution
- Network connections to unknown hosts
- Nested dependency exploitation
4. C2 Infrastructure Detection
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
5. SKILL.md Structure Validation
Verifies skill integrity:
- - Proper YAML frontmatter structure
- Metadata consistency
- Description clarity vs actual behavior
- Permission justification
- Author verification (GitHub account age)
Security Scoring System
Each analyzed skill receives a Risk Score (0-100):
- - 0-20: ✅ SAFE - No significant security concerns
- 21-40: ⚠️ LOW RISK - Minor concerns, proceed with caution
- 41-60: 🟡 MEDIUM RISK - Multiple red flags, manual review recommended
- 61-80: 🔴 HIGH RISK - Serious concerns, do NOT install without expert review
- 81-100: ☠️ CRITICAL - Malicious indicators detected, AVOID installation
Usage Instructions
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.
Installation & Setup
CODEBLOCK0
Audit a Skill Before Installing
Method 1: Analyze by slug (automatic fetch from ClawHub)
CODEBLOCK1
Method 2: Analyze local file
CODEBLOCK2
Audit All Installed Skills
CODEBLOCK3
Quick Manual Security Check
CODEBLOCK4
Detection Heuristics
🚨 CRITICAL Red Flags (Auto-fail)
- 1. Fake Prerequisites Section
- Matches: "Prerequisites", "Setup Required", "Installation Steps"
- Contains: Download links to
.zip,
.exe,
.dmg files
- Example: "Download openclaw-agent.zip from https://..."
- 2. Known Malicious Infrastructure
- IP:
91.92.242.30 (ClawHavoc C2)
- Domains: Newly registered or suspicious TLDs
- Encoded URLs or base64 obfuscation
- 3. Credential Harvesting
- Regex patterns for API keys:
(api[_-]?key|token|password)\s*[:=]\s*['\"][^'\"]+['\"]
- SSH key access requests
- Wallet private key patterns
- 4. Unauthorized Code Execution
-
curl | bash or
wget | sh patterns
- Hidden base64 encoded commands
- Dynamic eval() or exec() on external input
⚠️ Warning Indicators (Score increase)
- 1. Suspicious Dependencies
- Binary requirements without clear justification
- Dependencies from unverified sources
- Excessive permission requests
- 2. Obfuscation Techniques
- Heavily encoded strings in metadata
- Minified or obfuscated JavaScript/Python
- Redirect chains in URLs
- 3. Social Engineering Language
- Urgency phrases: "Install immediately", "Limited time"
- Authority claims: "Official OpenClaw", "Verified by Anthropic"
- Fear tactics: "Your system is at risk without this"
✅ Positive Security Indicators
- 1. Verified Author
- GitHub account > 1 year old
- Multiple well-rated skills
- Active community engagement
- 2. Transparent Dependencies
- Clear binary requirements with official sources
- Open-source tool dependencies
- Well-documented permission needs
- 3. Code Quality
- Clean, readable SKILL.md
- Proper error handling
- No unnecessary network calls
Audit Report Format
CODEBLOCK5
Integration with VirusTotal
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:
- 1. Visit the skill's ClawHub page: INLINECODE11
- Look for the VirusTotal scan results on the skill's page
- ClawHub automatically scans published skills via their VirusTotal partnership
This analyzer focuses on pattern-based threat detection. It complements (but does not replace) ClawHub's VirusTotal scanning.
Recommended Security Workflow
- 1. Run this analyzer first - Pattern-based detection (local, instant)
- Check ClawHub's VirusTotal results - Binary/file reputation (if available)
- Manual code review - Final verification for critical use cases
CODEBLOCK6
Example Workflow
Scenario: User wants to install a skill called INLINECODE12
Step 1: Run Security Analysis
CODEBLOCK7
Step 2: Decision
- - ☠️ CRITICAL Risk → DO NOT INSTALL
- Report skill to ClawHub moderators
- Look for safe alternatives
Step 3: Verify on ClawHub (optional)
CODEBLOCK8
Advanced Features
1. Behavioral Analysis (Future Enhancement)
- - Sandbox execution monitoring
- Network traffic analysis
- File system access patterns
2. Community Threat Intelligence
- - Share malicious skill signatures
- Collaborative IOC database
- Reputation scoring system
3. Continuous Monitoring
- - Auto-audit skills on updates
- Alert on new security advisories
- Periodic re-scanning of installed skills
False Positive Mitigation
To minimize false positives:
- 1. Contextual Analysis: Binary requirements for legitimate tools (e.g.,
gh for GitHub CLI) are validated against known safe sources - Whitelisting: Verified authors and established skills get trust bonuses
- Human Review Option: Always provide detailed reasoning for security decisions
- Appeal Process: Users can report false positives for skill reputation adjustment
Compliance & Ethics
This 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
Response Templates
Safe Skill
CODEBLOCK9
Suspicious Skill
CODEBLOCK10
Technical Implementation Notes
Pattern Database Location: ~/.openclaw/security-auditor/patterns/
- -
malicious-patterns.json: Known bad indicators - INLINECODE16 : Whitelisted elements
- INLINECODE17 : Indicators of Compromise
Update Mechanism:
CODEBLOCK11
Contributing
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
Limitations
⚠️ 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
References
- - ClawHavoc Campaign Analysis: [The Hacker News, Feb 2026]
- OpenClaw Security Partnership: VirusTotal Integration
- Malicious Skill Database: OpenSourceMalware Research
- ClawHub Moderation Guide: docs.openclaw.ai/security
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技能前执行基于模式的安全分析。鉴于近期发现341+个恶意技能(ClawHavoc行动)分发Atomic Stealer(AMOS)并窃取加密货币凭证,该工具提供了必要的安装前威胁检测。
本技能提供:
- - ✅ Bash脚本(analyze-skill.sh)用于本地安全分析
- ✅ 威胁情报数据库(patterns/malicious-patterns.json)
- ✅ 针对20+已知恶意指标的模式匹配
- ✅ 风险评分系统(0-100分制)
- ✅ 带有建议的详细审计报告
使用方法:
- 1. 从ClawHub安装此技能
- 对任意技能运行analyze-skill.sh脚本(通过slug或本地文件)
- 查看风险评估和发现结果
- 做出明智的安装决策
适用场景:
- - 即将从ClawHub安装新技能时
- 调查可疑技能行为时
- 对社区技能进行安全尽职调查时
- 审计当前已安装的技能时
本工具不执行以下操作:
- - ❌ 自动扫描技能(需手动运行)
- ❌ 阻止安装(仅提供建议)
- ❌ 访问VirusTotal API(请使用ClawHub网页界面)
- ❌ 保证100%检测率(建议采用纵深防御)
核心能力
1. 恶意模式检测
扫描ClawHavoc行动中的已知恶意模式:
- - 虚假前置条件安装(openclaw-agent.zip, openclaw-setup.exe)
- SKILL.md中的可疑下载命令
- 元数据中的隐藏载荷执行
- 社会工程语言模式
- 未授权的外部二进制文件下载
2. 凭证泄露分析
识别潜在的凭证暴露向量:
- - SKILL.md中的硬编码API密钥、令牌、密码
- 可疑的环境变量外泄
- 未加密的敏感数据传输
- 过度宽泛的权限请求
- 凭证收集模式
3. 依赖链验证
分析技能依赖项:
- - 未经验证的二进制文件需求
- 可疑的GitHub仓库来源
- 外部脚本执行
- 与未知主机的网络连接
- 嵌套依赖利用
4. C2基础设施检测
检查命令与控制指标:
- - 已知恶意IP地址(例如ClawHavoc的91.92.242.30)
- 可疑域名模式
- 编码通信端点
- 数据外泄通道
- 信标行为模式
5. SKILL.md结构验证
验证技能完整性:
- - 正确的YAML前置元数据结构
- 元数据一致性
- 描述清晰度与实际行为对比
- 权限合理性
- 作者验证(GitHub账号年龄)
安全评分系统
每个被分析的技能获得一个风险评分(0-100):
- - 0-20:✅ 安全 - 无重大安全问题
- 21-40:⚠️ 低风险 - 轻微问题,谨慎操作
- 41-60:🟡 中风险 - 多个危险信号,建议人工审查
- 61-80:🔴 高风险 - 严重问题,未经专家审查请勿安装
- 81-100:☠️ 严重 - 检测到恶意指标,避免安装
使用说明
本技能提供一个bash脚本(analyze-skill.sh),对ClawHub技能执行基于模式的安全分析。分析使用附带的威胁情报数据库在本地运行。
安装与设置
bash
从ClawHub安装技能
npx clawhub install skill-security-auditor
使分析器可执行
chmod +x ~/.openclaw/skills/skill-security-auditor/analyze-skill.sh
可选:创建别名以便使用
echo alias audit-skill=~/.openclaw/skills/skill-security-auditor/analyze-skill.sh >> ~/.bashrc
source ~/.bashrc
在安装前审计技能
方法1:通过slug分析(自动从ClawHub获取)
bash
~/.openclaw/skills/skill-security-auditor/analyze-skill.sh --slug bitcoin-tracker
输出示例:
============================================
安全审计报告
============================================
# 风险评分:85/100 - ☠️ 严重
...
方法2:分析本地文件
bash
先下载技能
curl -s https://clawhub.ai/api/skills/bitcoin-tracker/latest > /tmp/skill.md
然后分析
~/.openclaw/skills/skill-security-auditor/analyze-skill.sh --file /tmp/skill.md
审计所有已安装技能
bash
扫描工作区中的所有技能
for skill in ~/.openclaw/skills/*/SKILL.md; do
echo 检查中:$(basename $(dirname $skill))
~/.openclaw/skills/skill-security-auditor/analyze-skill.sh -f $skill
done
快速手动安全检查
bash
基于grep的快速模式匹配(非完整分析)
grep -iE (prerequisite.
download|91\.92\.242\.30|curl.\|.*bash) SKILL.md
检测启发式规则
🚨 严重危险信号(自动失败)
- 1. 虚假前置条件部分
- 匹配:Prerequisites、Setup Required、Installation Steps
- 包含:指向.zip、.exe、.dmg文件的下载链接
- 示例:从https://...下载openclaw-agent.zip
- 2. 已知恶意基础设施
- IP:91.92.242.30(ClawHavoc C2)
- 域名:新注册或可疑TLD
- 编码URL或base64混淆
- 3. 凭证收集
- API密钥的正则模式:(api[_-]?key|token|password)\s
[:=]\s[\][^\]+[\]
- SSH密钥访问请求
- 钱包私钥模式
- 4. 未授权代码执行
- curl | bash或wget | sh模式
- 隐藏的base64编码命令
- 对外部输入动态执行eval()或exec()
⚠️ 警告指标(增加分数)
- 1. 可疑依赖项
- 无明确理由的二进制文件需求
- 来自未经验证来源的依赖项
- 过度的权限请求
- 2. 混淆技术
- 元数据中高度编码的字符串
- 压缩或混淆的JavaScript/Python
- URL中的重定向链
- 3. 社会工程语言
- 紧急用语:立即安装、限时
- 权威声明:官方OpenClaw、Anthropic验证
- 恐惧策略:没有这个,您的系统面临风险
✅ 积极安全指标
- 1. 已验证作者
- GitHub账号超过1年
- 多个评分良好的技能
- 活跃的社区参与
- 2. 透明依赖项
- 清晰的二进制文件需求及官方来源
- 开源工具依赖项
- 文档完善的权限需求
- 3. 代码质量
- 清晰、可读的SKILL.md
- 适当的错误处理
- 无不必要的网络调用
审计报告格式
markdown
安全审计报告
技能:{技能名称}
作者:{作者}
版本:{版本}
审计日期:{日期}
风险评分:{分数}/100 - {风险等级}
严重发现:
警告指标:
积极指标:
建议:
{安装 | 不安装 | 手动审查}
详细分析:
{深入探讨具体问题}
VirusTotal链接:
{如果可从ClawHub获取}
与VirusTotal集成
重要提示:本技能不直接访问VirusTotal的API。相反,VirusTotal集成可通过ClawHub的网页界面实现,该界面通过其与VirusTotal的合作关系提供。
要查看技能的VirusTotal结果:
- 1. 访问技能的ClawHub页面:https://clawhub.ai/skills/{技能slug}
- 在技能页面上查找VirusTotal扫描结果
- ClawHub通过其与VirusTotal的合作关系自动扫描已发布的技能
此分析器专注于基于模式的威胁检测。 它补充(但不替代)ClawHub的VirusTotal扫描。
推荐的安全工作流程