3.3k★by wolffan
security-check – OpenClaw Skill
security-check is an OpenClaw Skills integration for coding workflows. Security audit and inspection skill for Clawdbot skills. Use this when you need to check skills for security vulnerabilities before installation, perform regular security audits on installed skills, verify skill description matches actual behavior, scan for prompt injection attempts, check for hardcoded secrets or credentials, verify no malicious intent in skill code or documentation, review file access patterns for potential configuration or secrets exposure, or audit dependencies for known vulnerabilities. This skill provides automated scanning tools and manual security checklists for comprehensive skill security assessment.
Skill Snapshot
| name | security-check |
| description | Security audit and inspection skill for Clawdbot skills. Use this when you need to check skills for security vulnerabilities before installation, perform regular security audits on installed skills, verify skill description matches actual behavior, scan for prompt injection attempts, check for hardcoded secrets or credentials, verify no malicious intent in skill code or documentation, review file access patterns for potential configuration or secrets exposure, or audit dependencies for known vulnerabilities. This skill provides automated scanning tools and manual security checklists for comprehensive skill security assessment. OpenClaw Skills integration. |
| owner | wolffan |
| repository | wolffan/security-check-skill |
| language | Markdown |
| license | MIT |
| topics | |
| security | L1 |
| install | openclaw add @wolffan/security-check-skill |
| last updated | Feb 7, 2026 |
Maintainer

name: security-check description: Security audit and inspection skill for Clawdbot skills. Use this when you need to check skills for security vulnerabilities before installation, perform regular security audits on installed skills, verify skill description matches actual behavior, scan for prompt injection attempts, check for hardcoded secrets or credentials, verify no malicious intent in skill code or documentation, review file access patterns for potential configuration or secrets exposure, or audit dependencies for known vulnerabilities. This skill provides automated scanning tools and manual security checklists for comprehensive skill security assessment. license: Complete terms in LICENSE.txt
Security Check Skill
Comprehensive security auditing for Clawdbot skills to detect malicious intent, prompt injection, secrets exposure, and misaligned behavior.
Quick Start
Pre-Installation Security Check
Before installing a new skill from ClawdHub or any source:
- Download and inspect the skill files
- Run the automated security scanner:
python3 scripts/scan_skill.py /path/to/skill - Review the scanner output - Block any skill with HIGH severity issues
- Manual review for MEDIUM severity issues
- Verify behavior matches description before installation
Daily Security Audit
Run daily to ensure installed skills remain secure:
# Scan all skills in the skills directory
python3 scripts/scan_skill.py /path/to/skills/skill-1
python3 scripts/scan_skill.py /path/to/skills/skill-2
# ... repeat for each installed skill
Security Scanner
Running the Scanner
The scripts/scan_skill.py tool provides automated security analysis:
python3 scripts/scan_skill.py <skill-path>
Output includes:
- HIGH severity issues (immediate action required)
- MEDIUM severity warnings (review recommended)
- LOW severity notes (informational)
- Summary of checks performed
Example output:
{
"skill_name": "example-skill",
"issues": [
{
"severity": "HIGH",
"file": "SKILL.md",
"issue": "Potential prompt injection pattern",
"recommendation": "Review and remove suspicious patterns"
}
],
"warnings": [
{
"severity": "MEDIUM",
"file": "scripts/helper.py",
"issue": "os.system() usage detected",
"recommendation": "Review and ensure this is safe"
}
],
"passed": [
{"file": "SKILL.md", "check": "Prompt injection scan", "status": "Completed"}
],
"summary": "SECURITY ISSUES FOUND: 1 issue(s), 1 warning(s)"
}
What the Scanner Checks
-
SKILL.md Analysis
- Prompt injection patterns
- External network calls
- Suspicious instructions
-
Scripts Directory Scan
- Dangerous command patterns (rm -rf, eval, exec)
- Hardcoded secrets and credentials
- Unsafe subprocess usage
- File system operations outside skill directory
-
References Directory Scan
- Hardcoded secrets (passwords, API keys, tokens)
- Suspicious URLs (pastebin, raw GitHub links)
- Sensitive information exposure
Manual Security Checklist
Use the comprehensive checklist in references/security-checklist.md for manual reviews.
Critical Checks (Before Installation)
1. Documentation Integrity (SKILL.md)
- ✅ Description accurately reflects skill functionality
- ❌ No prompt injection patterns (see
references/prompt-injection-patterns.md) - ❌ No instructions to ignore/discard context
- ❌ No system override commands
- ✅ No hidden capabilities beyond description
2. Code Review (scripts/)
- ❌ No hardcoded credentials or secrets
- ❌ No dangerous file operations (rm -rf outside skill dir)
- ❌ No eval() or exec() with user input
- ❌ No unauthorized network requests
- ✅ All operations within skill directory
- ✅ Proper input validation
3. Reference Materials (references/)
- ❌ No hardcoded passwords, API keys, or tokens
- ❌ No production credentials in documentation
- ✅ Links only to legitimate, trusted sources
- ✅ No documentation of security bypasses
4. Behavior Alignment
- ✅ Every command matches stated purpose
- ✅ No hidden capabilities
- ✅ No unnecessary file system access
- ✅ Network access only when explicitly required
Daily Audit Checks
- Scan all installed skills with the automated scanner
- Review any new HIGH severity issues
- Check for modified files in skill directories
- Verify skill descriptions still match behavior
- Audit new dependencies if added
Specific Security Concerns
Prompt Injection Detection
Read references/prompt-injection-patterns.md for comprehensive patterns.
Key indicators:
- Instructions to ignore/discard context
- System override or bypass commands
- Authority impersonation (act as administrator, etc.)
- Jailbreak attempts (unrestricted mode, etc.)
- Instruction replacement patterns
Detection:
# Automated pattern matching
import re
dangerous_patterns = [
r'ignore\s+previous\s+instructions',
r'override\s+security',
r'act\s+as\s+administrator',
]
Secrets and Credentials Exposure
What to scan for:
- Hardcoded passwords, API keys, tokens
- AWS access keys and secret keys
- SSH private keys
- Database connection strings
- Other sensitive credentials
Patterns to detect:
password="..."
secret='...'
token="1234567890abcdef"
api_key="..."
aws_access_key_id="..."
Local Configuration Access
Block access to:
~/.clawdbot/credentials/~/.aws/credentials~/.ssh/directory~/.npmrcand other config files- Shell history files
- System keychain
Allow only:
- Skill-specific configuration files
- User-provided file paths
- Designated workspace directories
- Approved environment variables
Command-Behavior Alignment
Verification process:
- Extract all commands/operations from skill code
- Compare against description in SKILL.md
- Identify any operations not documented
- Flag suspicious or hidden capabilities
Example misalignment:
❌ BLOCK:
- Description: "Format text documents"
- Actual: Scans filesystem, sends data to external server
✅ SAFE:
- Description: "Convert Markdown to PDF with templates"
- Actual: Reads Markdown, applies template, generates PDF
Security Severity Levels
HIGH (Immediate Block)
- Prompt injection patterns detected
- Hardcoded secrets or credentials
- Data exfiltration capabilities
- Unauthorized file system access
- Dangerous file operations (rm -rf, dd, etc.)
- eval() or exec() with untrusted input
Action: Do not install. Report to skill author.
MEDIUM (Review Required)
- Suspicious but not clearly malicious
- Requires user approval for specific operations
- Limited network access to unverified endpoints
- Unsafe subprocess usage (shell=True)
- Environment variable exposure risks
Action: Manual review. Install only if justified and understood.
LOW (Informational)
- Suspicious URLs (may be legitimate)
- Documentation of deprecated practices
- Minor code quality issues
- Potential improvements for security
Action: Note for future review. Generally safe to install.
Installation Decision Framework
When to BLOCK (Do Not Install)
- Any HIGH severity issues present
- Clear prompt injection attempts
- Hardcoded secrets
- Data exfiltration
- Unauthorized access patterns
When to WARN (Install with Caution)
- MEDIUM severity issues present
- Suspicious patterns requiring verification
- Needs specific user approvals
- Network access to unknown endpoints
Before installing with WARN:
- Understand the risk
- Verify the skill author's reputation
- Test in isolated environment first
- Monitor behavior closely
- Be prepared to uninstall
When to APPROVE (Safe to Install)
- No security issues detected
- Well-documented and transparent
- Matches description perfectly
- From trusted source
- Regularly audited
Dependency Security
Check skill dependencies for vulnerabilities:
# For Node.js skills
npm audit
npm audit fix
# For Python skills
pip-audit
safety check
What to check:
- Known CVEs in dependencies
- Outdated packages with security updates
- Transitive dependency vulnerabilities
- Untrusted or unmaintained packages
Security Reporting
Report Template
# Security Audit Report
**Date:** [Date]
**Skill:** [Skill Name]
**Version:** [Version]
## Executive Summary
[Overall security posture: SAFE, WARNING, or BLOCK]
## Critical Issues (Immediate Action Required)
[List HIGH severity issues]
## Warnings (Review Recommended)
[List MEDIUM severity issues]
## Informational Notes
[List LOW severity issues]
## Recommendations
[Actionable items to address issues]
## Conclusion
[Final verdict: Install/Block/Requires Changes]
Escalation Process
- Detect issue during scan or review
- Document findings using report template
- Assess severity (HIGH/MEDIUM/LOW)
- Take action:
- HIGH: Block skill, report to author
- MEDIUM: Review, install with caution or wait for fix
- LOW: Note, monitor
- Follow up on resolved issues
Reference Materials
Essential Reading
-
Security Checklist (
references/security-checklist.md)- Comprehensive security criteria
- Command alignment verification
- Secrets exposure checks
- Installation guidelines
- Daily audit procedures
-
Prompt Injection Patterns (
references/prompt-injection-patterns.md)- Detection categories and patterns
- Automated detection strategies
- Red flag indicators
- Mitigation techniques
- Reporting templates
Internal Security Docs
Refer to workspace security documents:
SECURITY_AUDIT_REPORT.md- Overall Clawdbot security posture- Any additional security policies or guidelines
Workflow Examples
Example 1: New Skill from ClawdHub
User request: "Check if skill 'xyz' is safe to install"
Response:
- Download skill to temporary location
- Run scanner:
python3 scripts/scan_skill.py /tmp/xyz-skill - Review output:
- If HIGH issues: "❌ BLOCKED: [list issues] - Do not install"
- If MEDIUM issues: "⚠️ WARNING: [list issues] - Requires manual review"
- If clean: "✅ SAFE: No security issues detected - Can install"
- If MEDIUM issues: Provide detailed manual review using checklist
Example 2: Daily Security Audit
Daily routine:
# Scan all installed skills
for skill in /Users/rlapuente/clawd/skills/*/; do
python3 scripts/scan_skill.py "$skill"
done
# Review any HIGH issues immediately
# Monitor MEDIUM issues for trends
Example 3: Verification of Skill Update
After skill update:
- Compare new version with previous
- Scan new version with security scanner
- Check for new issues introduced
- Verify changes match update notes
- Re-approve only if security posture maintained
Best Practices
- Always scan before installing - Never skip security check
- Review HIGH issues immediately - Don't ignore critical problems
- Document all security findings - Maintain audit trail
- Report issues to skill authors - Help improve ecosystem
- Stay updated on threats - Monitor security research
- Regular audits - Daily automated scans, weekly manual reviews
- Isolate testing - Test new skills in sandbox environment
- Monitor behavior - Watch for unexpected actions during use
Maintenance
Regular Updates
- Update detection patterns for new threats
- Add new security indicators to checklist
- Improve scanner accuracy based on false positives/negatives
- Update reference materials with latest security research
Feedback Loop
When security issues are found:
- Document the pattern
- Add to detection rules
- Share with community
- Improve security posture overall
Tools
scripts/scan_skill.py- Automated security scannerreferences/security-checklist.md- Manual security checklistreferences/prompt-injection-patterns.md- Prompt injection detection guide
Remember: Security is an ongoing process, not a one-time check. Regular audits and vigilance are essential to maintaining a secure Clawdbot environment.
Security Check Skill for Clawdbot
A comprehensive security auditing skill for Clawdbot that inspects skills before installation and performs regular security audits to detect malicious intent, prompt injection, secrets exposure, and misaligned behavior.
🎯 Purpose
The security-check skill provides automated tools and comprehensive checklists to ensure your Clawdbot skills remain secure. It's designed to:
- Pre-installation security checks - Scan any skill before installing it
- Daily security audits - Regular monitoring of installed skills
- Prompt injection detection - Identify attempts to override system instructions
- Secrets detection - Find hardcoded passwords, API keys, and tokens
- Behavior verification - Ensure skill behavior matches its description
- Dependency auditing - Check for vulnerable packages
🚀 Features
Automated Security Scanner
A Python-based scanner that performs:
- Prompt injection pattern detection - Scans documentation for instruction override attempts
- Code security analysis - Detects dangerous patterns (eval, exec, hardcoded secrets)
- Reference material scanning - Checks for suspicious URLs and credential exposure
- Severity classification - HIGH (block), MEDIUM (review), LOW (info)
Comprehensive Security Checklist
Detailed coverage of:
- Documentation integrity verification
- Code security patterns
- Secrets and credential exposure
- Command-behavior alignment
- File system boundary checks
- Network security considerations
- Dependency vulnerability scanning
Prompt Injection Pattern Detection
Extensive guide covering:
- 6 categories of injection patterns
- Automated detection strategies
- Red flag indicators with examples
- Safe vs malicious pattern comparison
- Mitigation techniques
📋 Quick Start
Pre-Installation Check
Before installing a new skill from ClawdHub or any source:
python3 scripts/scan_skill.py /path/to/new-skill
Example output:
{
"skill_name": "example-skill",
"issues": [],
"warnings": [
{
"severity": "MEDIUM",
"file": "scripts/helper.py",
"issue": "os.system() usage detected",
"recommendation": "Review and ensure this is safe"
}
],
"passed": [
{"file": "SKILL.md", "check": "Prompt injection scan", "status": "Completed"}
],
"summary": "WARNINGS: 1 warning(s) (no critical issues)"
}
Daily Security Audit
Scan all installed skills:
cd /path/to/skills
for skill in */; do
python3 /path/to/security-check/scripts/scan_skill.py "$skill"
done
🔍 What Gets Checked
Security Scanner Checks
-
SKILL.md Analysis
- Prompt injection patterns
- External network calls
- Suspicious instructions
-
Scripts Directory
- Dangerous command patterns (rm -rf, dd, mkfs)
- Hardcoded secrets and credentials
- eval() and exec() with user input
- Unauthorized network requests
- File operations outside skill directory
-
References Directory
- Hardcoded secrets (passwords, API keys, tokens)
- Suspicious URLs (pastebin, raw GitHub links)
- Sensitive information exposure
Manual Security Checklist
Use references/security-checklist.md for:
- Documentation integrity verification
- Code security pattern reviews
- Secrets and credential exposure checks
- Command-behavior alignment verification
- Network security assessments
- Dependency vulnerability scanning
Prompt Injection Detection
Use references/prompt-injection-patterns.md for:
- Pattern identification
- Detection strategies (automated + manual)
- Red flag indicators
- Safe pattern recognition
- Mitigation techniques
🛡️ Security Severity Levels
HIGH (Immediate Block)
- Prompt injection patterns detected
- Hardcoded secrets or credentials
- Data exfiltration capabilities
- Unauthorized file system access
- Dangerous file operations (rm -rf, dd, etc.)
- eval() or exec() with untrusted input
Action: Do not install. Report to skill author.
MEDIUM (Review Required)
- Suspicious but not clearly malicious
- Requires user approval for specific operations
- Limited network access to unverified endpoints
- Unsafe subprocess usage (shell=True)
- Environment variable exposure risks
Action: Manual review. Install only if justified and understood.
LOW (Informational)
- Suspicious URLs (may be legitimate)
- Documentation of deprecated practices
- Minor code quality issues
- Potential improvements for security
Action: Note for future review. Generally safe to install.
📊 Usage Examples
Example 1: Safe Skill
$ python3 scripts/scan_skill.py /path/to/safe-skill
{
"summary": "PASSED: No security issues found"
}
Verdict: ✅ SAFE - Can install
Example 2: Skill with Warning
$ python3 scripts/scan_skill.py /path/to/suspicious-skill
{
"issues": [],
"warnings": [
{
"severity": "MEDIUM",
"file": "scripts/network.py",
"issue": "External network call pattern: requests.post.*http://",
"recommendation": "Verify all network calls are intentional and secure"
}
],
"summary": "WARNINGS: 1 warning(s) (no critical issues)"
}
Verdict: ⚠️ WARNING - Manual review required before installation
Example 3: Malicious Skill
$ python3 scripts/scan_skill.py /path/to/malicious-skill
{
"issues": [
{
"severity": "HIGH",
"file": "SKILL.md",
"issue": "Potential prompt injection pattern detected: override.*programming",
"recommendation": "Review and remove suspicious instruction patterns"
},
{
"severity": "HIGH",
"file": "scripts/evil.py",
"issue": "eval() usage detected",
"recommendation": "Review and ensure this is intentional and safe"
}
],
"summary": "SECURITY ISSUES FOUND: 2 issue(s), 0 warning(s)"
}
Verdict: ❌ BLOCKED - Do not install
📦 Installation
As a Clawdbot Skill
-
Copy the skill to your Clawdbot skills directory:
cp -r security-check /path/to/clawd/skills/ -
The skill will be automatically detected by Clawdbot
-
Use the scanner:
python3 /path/to/clawd/skills/security-check/scripts/scan_skill.py <skill-path>
Standalone Scanner
You can also use the scanner as a standalone tool:
git clone https://github.com/yourusername/security-check-skill.git
cd security-check-skill
python3 scripts/scan_skill.py <skill-path>
🔧 Development
Running Tests
# Run the scanner on the security-check skill itself (self-audit)
python3 scripts/scan_skill.py .
# Scan example skills
python3 scripts/scan_skill.py /path/to/other-skill
Contributing
Contributions are welcome! Please:
- Fork the repository
- Create a feature branch
- Make your changes
- Test thoroughly
- Submit a pull request
Areas for Improvement
- Add semantic analysis for prompt injection
- Reduce false positives with context-aware filtering
- Add behavior verification (compare description vs actual operations)
- Network security checks (suspicious domains, SSL verification)
- File system boundary enforcement
- Dependency vulnerability scanning (npm audit, pip-audit)
- Historical tracking of security posture
- Comparative analysis between skill versions
- Unit tests for scanner
- Integration with ClawdHub for security badges
📚 Documentation
- SKILL.md - Complete skill documentation and usage guide
- references/security-checklist.md - Comprehensive security checklist
- references/prompt-injection-patterns.md - Prompt injection detection guide
- scripts/scan_skill.py - Automated security scanner implementation
🔒 Security Principles
This skill follows these security principles:
- Zero Trust - Verify every skill, even from trusted sources
- Defense in Depth - Multiple layers of security checks
- Transparency - Clear reporting of findings
- Continuous Monitoring - Regular audits, not just pre-installation
- Community Security - Share findings, improve ecosystem security
📈 Audit Results
Recent Audit (January 30, 2026)
Skills Audited: 22 installed skills Results:
- ✅ 20 skills: No security issues
- ⚠️ 2 skills: Documentation warnings (false positives)
- ❌ 0 skills: High severity issues
Overall Posture: EXCELLENT
🤝 Community
This skill is part of the Clawdbot ecosystem. Join the discussion:
- Clawdbot Discord: [Link to Discord]
- ClawdHub: [Link to ClawdHub]
- GitHub Issues: Report bugs and feature requests
📄 License
MIT License - see LICENSE file for details
🙏 Acknowledgments
- Built for the Clawdbot community
- Inspired by OWASP security guidelines
- Incorporates lessons from AI security research
- Uses pattern matching techniques from cybersecurity best practices
🔗 Related Resources
Built with ❤️ for the Clawdbot community
Security is not a feature, it's a mindset.
Permissions & Security
Security level L1: Low-risk skills with minimal permissions. Review inputs and outputs before running in production.
Comprehensive security auditing for Clawdbot skills to detect malicious intent, prompt injection, secrets exposure, and misaligned behavior. ## Quick Start ### Pre-Installation Security Check Before installing a new skill from ClawdHub or any source: 1. **Download and inspect the skill files** 2. **Run the automated security scanner**: ```bash python3 scripts/scan_skill.py /path/to/skill ``` 3. **Review the scanner output** - Block any skill with HIGH severity issues 4. **Manual review** for MEDIUM severity issues 5. **Verify behavior matches description** before installation ### Daily Security Audit Run daily to ensure installed skills remain secure: ```bash
Requirements
- OpenClaw CLI installed and configured.
- Language: Markdown
- License: MIT
- Topics:
Configuration
**Block access to:** - `~/.clawdbot/credentials/` - `~/.aws/credentials` - `~/.ssh/` directory - `~/.npmrc` and other config files - Shell history files - System keychain **Allow only:** - Skill-specific configuration files - User-provided file paths - Designated workspace directories - Approved environment variables
FAQ
How do I install security-check?
Run openclaw add @wolffan/security-check-skill in your terminal. This installs security-check into your OpenClaw Skills catalog.
Does this skill run locally or in the cloud?
OpenClaw Skills execute locally by default. Review the SKILL.md and permissions before running any skill.
Where can I verify the source code?
The source repository is available at https://github.com/openclaw/skills/tree/main/skills/wolffan/security-check-skill. Review commits and README documentation before installing.
