Skills audit

From xwtro0tk1t-cloud/harness · View interactive version

Skills audit is an AI agent skill from the GitHub repository xwtro0tk1t-cloud/harness. Audit AI Agent skills for security vulnerabilities including malicious code, remote execution, credential leaks, and supply chain risks. Use when reviewing third-party skills, investigating suspicious behavior, or performing security assessments.

How to use this skill

Skill file

Security Audit for AI Agent Skills

You are conducting a security audit of an AI Agent skill. This skill executes a comprehensive analysis to detect malicious code, security vulnerabilities, and suspicious patterns.

Task

Audit the skill at path: $ARGUMENTS

Execution Steps

  1. Run static security scan

Execute the Python audit tool for static analysis:

```bash

# Auto-detect skills-audit installation path

AUDIT_SCRIPT=""

for candidate in \

~/.claude/skills/skills-audit/skill_audit/cli_wrapper.py \

~/.claude/skills/skill-audit/skill_audit/cli_wrapper.py \

"${SKILL_AUDIT_HOME:-}""/skill_audit/cli_wrapper.py"; do

if [ -f "$candidate" ]; then

AUDIT_SCRIPT="$candidate"

break

fi

done

if [ -z "$AUDIT_SCRIPT" ]; then

echo "Error: Cannot find skills-audit installation"

echo "Set SKILL_AUDIT_HOME environment variable to your skills-audit directory"

exit 1

fi

python3 "$AUDIT_SCRIPT" "$ARGUMENTS"

```

This will:

  1. Perform AI semantic analysis (if enabled)

If the scan mode includes AI analysis (standard/deep/expert), perform deep semantic security analysis:

a. Read the skill code files from the target path

b. Analyze for security vulnerabilities:

c. Assess each finding:

d. Filter false positives:

e. Output your analysis in this format:

```

AI SEMANTIC ANALYSIS FINDINGS:

1. [SEVERITY] Finding Title

2. [SEVERITY] Finding Title

...

```

f. Integrate AI findings into the report (CRITICAL STEP)

After completing your AI analysis, integrate your findings into the audit report by running:

```bash

# Use the detected AUDIT_SCRIPT path from step 1

INTEGRATE_SCRIPT="$(dirname "$AUDIT_SCRIPT")/integrate_ai_findings.py"

python3 "$INTEGRATE_SCRIPT" \

"<report_path>" \

'<ai_findings_json>'

```

Where:

JSON Format for ai_findings:

```json

[

{

"title": "Base64-Obfuscated Remote Code Execution",

"severity": "CRITICAL",

"category": "unsafe_execution",

"description": "Base64-encoded command that downloads and executes arbitrary code",

"location": "skill.md:28",

"code_snippet": "echo 'L2Jpbi9iYXNoIC1jIC...' | base64 -D | bash",

"risk": "Remote code execution with complete system compromise",

"scenario": "User follows installation instructions, base64 decodes to malicious payload, executes with shell privileges",

"impact": {

"confidentiality": "CRITICAL",

"integrity": "CRITICAL",

"availability": "CRITICAL"

},

"impact_description": "Full system compromise, data theft, ransomware deployment",

"recommendation": "BLOCK this skill entirely. Never execute obfuscated commands.",

"cwe_ids": ["CWE-78", "CWE-94", "CWE-506"]

}

]

```

Important:

  1. Send final webhook notification (optional, if notifications are configured)

After completing comprehensive analysis (including false positive filtering), send the webhook:

```bash

# Auto-detect skills-audit path

AUDIT_DIR="$(dirname "$(dirname "$AUDIT_SCRIPT")")"

python3 -c "

import sys; sys.path.insert(0, '$AUDIT_DIR')

from skill_audit.integrations import send_final_webhook

send_final_webhook(report_path='<report_path>')

"

```

This ensures the webhook contains the final, accurate results after your analysis.

  1. Present comprehensive results to user
  1. If high-risk issues are found:

Scan Modes

Deep Mode (Default)

Fast Mode

Standard Mode

Expert Mode

Detection Capabilities

This audit detects:

Configuration

Edit config/config.yml (relative to skills-audit installation directory) to customize:

Key Configuration Options

# Report save location
claude_code:
  # Options: cwd (current directory), skill_dir (skill directory), temp (temp directory), custom
  report_location: custom
  custom_report_dir: ~/.claude/audit-reports

# Custom report naming
output:
  report_filename: "audit-{skill_name}-{timestamp}.json"

Scan Mode Customization

scan_modes:
  fast:
    enable_ai_analysis: false
    enable_static_analysis: true
    enable_deep_analysis: false
    enable_tip_check: false
  standard:
    enable_ai_analysis: true
    enable_static_analysis: true
    enable_deep_analysis: false
    enable_tip_check: false
  deep:
    enable_ai_analysis: true
    enable_static_analysis: true
    enable_deep_analysis: true
    enable_tip_check: true

Notes

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.