skill-safety-auditor

Perform comprehensive security audits on skills to identify vulnerabilities, unsafe patterns, and compliance issues. Use when auditing skills for security, checking for hardcoded secrets, injection risks, or before releasing skills.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "skill-safety-auditor" with this command: npx skills add harrylabsj/skill-safety-auditor

Skill Safety Auditor

Overview

The skill-safety-auditor skill performs comprehensive security audits on skills to identify vulnerabilities, unsafe code patterns, permission issues, and compliance violations. It helps ensure skills meet security standards before release or deployment.

When to Use

  • During skill development for early issue detection
  • Before releasing a new skill to production
  • As part of the release approval process
  • When the user asks to "audit" or "security check" a skill
  • During periodic security reviews
  • When reviewing third-party skills

Core Concepts

Audit Types

TypeDescriptionSpeed
quick-scanFast surface-level check~1s
auditComprehensive analysis~5-10s
reportFull audit with JSON output~10s

Vulnerability Categories

CategoryChecks ForSeverity
secretsHardcoded API keys, passwords, tokensCritical
injectionCommand injection, path traversalHigh
permissionsUnsafe file permissionsMedium
dependenciesKnown vulnerable dependenciesHigh
networkInsecure HTTP connectionsLow

Severity Levels

  • Critical: Immediate security risk, must fix before release
  • High: Significant risk, strongly recommended to fix
  • Medium: Moderate risk, should address
  • Low: Minor issue, consider fixing
  • Info: Informational, optional to address

Input

Accepts:

  • Path to skill directory
  • Audit type specification
  • Output format preference
  • Vulnerability type filters

Output

Produces:

  • Console output with findings
  • JSON audit reports
  • Summary statistics
  • Pass/fail status

Workflow

Quick Security Check

  1. Run quick-scan on target skill
  2. Review any immediate issues
  3. Address critical/high findings

Comprehensive Audit

  1. Run full audit with verbose output
  2. Review all findings by severity
  3. Generate JSON report for records
  4. Address findings in priority order
  5. Re-run audit to verify fixes

Pre-Release Audit

  1. Audit skill with all checks enabled
  2. Generate formal report
  3. Review with team
  4. Fix all critical/high issues
  5. Document accepted low-risk items

Commands

Quick Scan

./scripts/quick-scan.sh /path/to/skill

Full Audit

./scripts/audit-skill.sh /path/to/skill --verbose

Generate Report

./scripts/audit-skill.sh /path/to/skill --output report.json

Filter by Type

./scripts/audit-skill.sh /path/to/skill --types secrets,injection

List Past Audits

./scripts/list-audits.sh [--skill <name>] [--since 2024-01-01]

Output Format

Console Output

🔍 Starting security audit: my-skill
================================
✅ SKILL.md exists
Scanning for secrets...
Scanning for injection vulnerabilities...
[high] injection: eval() detected
  File: src/utils.js:15
  Recommendation: Avoid eval(), use safer alternatives

================================
Validation complete:
  Errors: 0
  Warnings: 1
❌ Validation FAILED

JSON Report

{
  "audit_id": "AUDIT-20240313-001",
  "skill": "my-skill",
  "timestamp": "2024-03-13T10:30:00Z",
  "summary": {
    "critical": 0,
    "high": 1,
    "medium": 2,
    "low": 3,
    "info": 1
  },
  "findings": [
    {
      "id": "SEC-001",
      "severity": "high",
      "type": "injection",
      "file": "src/utils.js",
      "line": 15,
      "description": "eval() detected - potential code injection",
      "recommendation": "Avoid eval(), use safer alternatives"
    }
  ],
  "passed": false,
  "recommendations": [
    "Remove eval() from src/utils.js:15",
    "Add input validation to all user inputs"
  ]
}

Audit Checks

Secrets Detection

  • API keys and tokens
  • Database passwords
  • Private keys
  • Access credentials
  • Environment variable patterns

Code Safety

  • eval() usage
  • Function constructor
  • setTimeout/setInterval with strings
  • Child process execution
  • Dynamic code execution

File Permissions

  • World-writable files
  • Executable permissions on data files
  • Sensitive file accessibility

Dependencies

  • Known CVE vulnerabilities
  • Deprecated packages
  • Potentially dangerous packages

Network Security

  • HTTP vs HTTPS URLs
  • Insecure API endpoints
  • Missing certificate validation

Quality Rules

  • Always run before releasing skills
  • Fix all critical/high findings
  • Document accepted risks
  • Re-audit after fixes
  • Keep audit history

Good Trigger Examples

  • "Audit this skill for security issues"
  • "Security check before release"
  • "Scan for hardcoded secrets"
  • "Check for injection vulnerabilities"
  • "Run security audit on skill X"

Limitations

  • Static analysis only; cannot detect runtime vulnerabilities
  • May produce false positives for legitimate patterns
  • Cannot verify external service security
  • Does not test actual runtime behavior
  • Limited to known vulnerability patterns

Resources

scripts/

  • audit-skill.sh - Full security audit
  • quick-scan.sh - Fast security check
  • list-audits.sh - View audit history
  • test.sh - Test skill functionality

references/

  • Security best practices
  • Common vulnerability patterns
  • OWASP guidelines reference

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Security

Vuln Briefing

Generate daily vulnerability briefings from NIST NVD, CISA KEV, and security advisories. Aggregates, scores, and formats CVE data into actionable reports. No...

Registry SourceRecently Updated
Security

Cogdx

Cognitive diagnostics for AI agents. Calibration audits, bias detection, reasoning verification, and deception analysis. External verification you can't do y...

Registry SourceRecently Updated
Security

Sentinel — Agent Security Layer

Runtime security layer for OpenClaw agents. Intercepts and scans all external input (emails, API responses, web content, chat messages, calendar events) for...

Registry SourceRecently Updated
520Profile unavailable
Security

Ring Security

Monitor and manage Ring doorbells and security cameras. Query device status, review motion events, manage modes, and export event history. Use when you need...

Registry SourceRecently Updated
1780Profile unavailable