flaw0
БесплатноБез исполняемых скриптовНе проверенSecurity and vulnerability scanner for OpenClaw code, plugins, skills, and Node.js dependencies. Powered by OpenClaw AI models.
от bighardperson★ 71 звезда на GitHubОб этом скилле
flaw0 - Zero Flaws Security Scanner
Security and vulnerability scanner for OpenClaw ecosystems. Analyzes source code, plugins, skills, and Node.js dependencies to detect potential security flaws.
Goal: Achieve flaw 0 (zero flaws detected) 🎯
Installation
Install this skill via ClawHub:
npx clawhub@latest install flaw0
Or install globally via npm:
npm install -g flaw0
When to Use This Skill
Use flaw0 to ensure your OpenClaw code and dependencies are secure:
Before Installing Skills
# Check a skill before installing
flaw0 scan ~/.openclaw/skills/new-skill
During Development
# Scan your code as you develop
flaw0 scan src/
# Check dependencies
flaw0 deps
Before Committing
# Full security audit
flaw0 audit
Auditing OpenClaw Installation
# Scan all OpenClaw components
flaw0 scan --target all
# Check specific components
flaw0 scan --target skills
flaw0 scan --target plugins
flaw0 scan --target core
Usage
Basic Commands
Scan Code
# Scan current directory
flaw0 scan
# Scan specific directory
flaw0 scan /path/to/code
# Use specific AI model
flaw0 scan --model claude-opus-4-6
Check Dependencies
# Quick dependency scan
flaw0 deps
# Deep scan (entire dependency tree)
flaw0 deps --deep
Full Security Audit
# Comprehensive scan (code + dependencies)
flaw0 audit
# Save report to file
flaw0 audit --output report.json
# JSON output for CI/CD
flaw0 audit --json
Scan OpenClaw Components
# Scan OpenClaw core
flaw0 scan --target core
# Scan all plugins
flaw0 scan --target plugins
# Scan all skills
flaw0 scan --target skills
# Scan everything
flaw0 scan --target all
What flaw0 Detects
Code Vulnerabilities (12+ Types)
Command Injection
exec()with unsanitized input- Shell command construction with user input
Code Injection
eval()usageFunction()constructor with strings
SQL Injection
- String concatenation in SQL queries
- Unparameterized queries
Cross-Site Scripting (XSS)
innerHTMLassignmentsdangerouslySetInnerHTMLusage
Path Traversal
- Unvalidated file path operations
readFile()with user input
Hardcoded Secrets
- API keys in source code
- Passwords and tokens
- AWS credentials
Weak Cryptography
- MD5 and SHA1 usage
- Weak hashing algorithms
Insecure Randomness
Math.random()for security operations- Predictable token generation
Unsafe Deserialization
JSON.parse()without validation- Unvalidated input parsing
Missing Authentication
- API endpoints without auth middleware
- Unprotected routes
Dependency Issues
- Known CVEs - Vulnerabilities from CVE database
- Outdated Packages - Packages with security updates available
- Malicious Packages - Known malware or suspicious packages
- Duplicate Dependencies - Bloated dependency trees
Understanding Results
Flaw Score
Results are reported with a flaw score - lower is better:
- flaw 0 🎯 - Perfect! No issues detected
- flaw 1-3 🟡 - Minor issues
- flaw 4-10 🟠 - Needs attention
- flaw 10+ 🔴 - Critical issues
Score Calculation
Each issue is weighted by severity:
- Critical: 3 points
- High: 2 points
- Medium: 1 point
- Low: 0.5 points
Total flaw score = sum of all weighted issues (rounded)
Example Output
Clean Code (flaw 0)
🔍 flaw0 Security Scan Results
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 Result: flaw 0
✅ Status: SECURE
✓ No security issues detected!
✓ All checks passed
Great job! 🎉
Issues Found (flaw 12)
🔍 flaw0 Security Scan Results
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 Result: flaw 12
⚠️ Status: ISSUES FOUND
Code Flaws: 5
├─ 🔴 Critical: 2
├─ 🟠 High: 1
├─ 🟡 Medium: 2
└─ ⚪ Low: 0
Dependency Flaws: 7
├─ 🔴 Critical CVEs: 3
├─ 🟠 High CVEs: 2
├─ 🟡 Medium: 2
└─ ⚪ Low: 0
Detailed Report:
─────────────────────────────────
1. [CRITICAL] Command Injection
Location: src/executor.js:78
Code: `exec(\`ls ${userInput}\`)`
Description: Unsanitized exec() call
→ Fix: Use execFile() or validate input
🤖 AI Confidence: high
💡 AI Suggestion: Replace exec() with execFile()
and validate input against whitelist
2. [HIGH] Hardcoded API Key
Location: config/api.js:5
Code: `const API_KEY = "sk-1234..."`
Description: API key exposed in source code
→ Fix: Use process.env.API_KEY
3. [CRITICAL] CVE-2024-12345 in [email protected]
Package: [email protected]
Description: Prototype pollution vulnerability
→ Fix: npm install [email protected]
...
AI-Powered Analysis
flaw0 uses OpenClaw's AI models for intelligent code review:
Available Models
claude-sonnet-4-5 (default)
- Balanced speed and accuracy
- Best for
Установить flaw0 в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл flaw0?
Security and vulnerability scanner for OpenClaw code, plugins, skills, and Node.js dependencies. Powered by OpenClaw AI models.
Как установить скилл flaw0?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл flaw0 запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic