neckr0ik-security-scanner

Security audit tool for OpenClaw skills. Scans skill directories for common vulnerabilities including hardcoded secrets, unsafe shell commands, prompt injection risks, unauthorized network access, and code execution dangers. Use when auditing skills before installation, reviewing skill code for security issues, or validating skills for ClawHub publication.

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 "neckr0ik-security-scanner" with this command: npx skills add neckr0ik/neckr0ik-security-scanner

Skill Security Audit

Scan OpenClaw skills for security vulnerabilities before installation or publication.

Quick Start

# Audit a single skill
skill-security-audit audit /path/to/skill-folder

# Audit all installed skills
skill-security-audit audit-all

# Generate security report
skill-security-audit report /path/to/skill-folder --format json

What This Detects

Critical Issues (Block Installation)

IssueDescriptionRisk Level
Hardcoded SecretsAPI keys, tokens, passwords in codeCritical
Shell InjectionUnsanitized input to shell commandsCritical
Code Executioneval(), exec(), dynamic code executionCritical
Unauthorized NetworkCalls to unknown/suspicious domainsCritical

High Issues (Review Required)

IssueDescriptionRisk Level
Prompt InjectionUser input in system prompts without sanitizationHigh
File Path TraversalUnchecked file paths from user inputHigh
Excessive PermissionsRequests unnecessary system accessHigh

Medium Issues (Warnings)

IssueDescriptionRisk Level
Outdated DependenciesPackages with known CVEsMedium
Unpinned VersionsFloating dependency versionsMedium
Missing LicenseNo license file for distributionMedium

Security Patterns

Good Pattern: Environment Variables

# CORRECT: Load secrets from environment
import os
api_key = os.environ.get("OPENAI_API_KEY")

Bad Pattern: Hardcoded Secrets

# DANGEROUS: Secret in code
api_key = "sk-abc123def456..."  # NEVER DO THIS

Good Pattern: Sanitized Input

# CORRECT: Validate and sanitize
import re
def safe_filename(name):
    return re.sub(r'[^a-zA-Z0-9_-]', '', name)

Bad Pattern: Shell Injection

# DANGEROUS: User input to shell
os.system(f"convert {user_file} output.png")  # NEVER DO THIS

Running Audits

Important: Self-Scan Results

When running skill-security-audit audit skill-security-audit/, you will see findings for the pattern definitions themselves. This is expected — the scanner detects the example patterns in its own documentation. These are not real vulnerabilities.

For actual skill audits, this produces accurate results.

Single Skill Audit

skill-security-audit audit ./my-skill/

Output:

  • Pass/Fail status
  • List of vulnerabilities found
  • Severity ratings
  • Remediation suggestions

Batch Audit (All Installed Skills)

skill-security-audit audit-all

Scans ~/.openclaw/skills/ and reports on all installed skills.

Report Formats

# JSON for CI/CD integration
skill-security-audit audit ./skill/ --format json

# Markdown for documentation
skill-security-audit audit ./skill/ --format markdown

# Summary for quick review
skill-security-audit audit ./skill/ --format summary

CI/CD Integration

Add to your skill publishing pipeline:

# .github/workflows/publish.yml
- name: Security Audit
  run: skill-security-audit audit ./skill/

Exit codes:

  • 0: No issues found
  • 1: Medium+ issues found (warnings)
  • 2: Critical issues found (block)

Publishing Secure Skills

Before publishing to ClawHub:

  1. Run skill-security-audit audit ./your-skill/
  2. Fix all critical and high issues
  3. Document any required secrets in README
  4. Include .env.example with placeholder values
  5. Re-run audit to confirm clean

See Also

  • references/vulnerabilities.md — Complete vulnerability database
  • references/remediation.md — How to fix common issues
  • scripts/audit.py — Main audit script

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

Openapi Validator

Validate and improve OpenAPI/Swagger specifications — check for completeness, consistency, security definitions, and API design best practices.

Registry SourceRecently Updated
Security

SentiClaw

Runtime AI security for OpenClaw agents. Protects against prompt injection, identity spoofing, PII leakage, and runtime abuse. Drop-in 6-layer security middl...

Registry SourceRecently Updated
1530Profile unavailable
Security

solidity-audit

Solidity smart contract security audit assistant following EEA EthTrust V3 specification. Performs structured audit workflow: vulnerability scanning, securit...

Registry SourceRecently Updated
1580Profile unavailable
Security

Custom Commands

Create and manage custom commands like backup, sync, clean, generate, and audit to automate file tasks and content workflows efficiently.

Registry SourceRecently Updated
1240Profile unavailable