Security audit

From backbay-labs/clawdstrike · View interactive version

Security audit is an AI agent skill from the GitHub repository backbay-labs/clawdstrike. Run a comprehensive security audit on a ClawdStrike policy

How to use this skill

Skill file

Security Audit

Audit Stages

Stage 1: Policy Validation

Call workbench_validate_policy with the policy YAML. Check for:

Stage 2: Guard Coverage Analysis

Call workbench_list_guards to get the full registry of 13 guards, then compare against the policy. Identify:

The 13 guards cover 6 categories:

| Category | Guards |

|----------|--------|

| Filesystem | ForbiddenPath, PathAllowlist |

| Network | EgressAllowlist |

| Content | SecretLeak, PatchIntegrity |

| Tools | ShellCommand, McpTool |

| Detection | PromptInjection, Jailbreak, SpiderSense |

| Computer Use | ComputerUse, RemoteDesktopSideChannel, InputInjection |

Stage 3: Compliance Scoring

Call workbench_compliance_check against all three frameworks:

For each framework, note:

Stage 4: Scenario Testing

  1. Call workbench_suggest_scenarios to generate guard-specific test cases.
  2. Combine suggested scenarios with the 20 built-in scenarios (available via the workbench://scenarios/builtin resource).
  3. Call workbench_run_all_scenarios with the combined scenario set.
  4. Analyze results:

Stage 5: Policy Comparison

If comparing against a baseline (e.g., the strict ruleset):

  1. Fetch the strict ruleset YAML from the workbench://rulesets/builtin resource.
  2. Call workbench_diff_policies to identify gaps relative to the baseline.
  3. Flag any areas where the policy is weaker than the baseline.

Stage 6: Report Generation

Compile findings into a structured report:

## Security Audit Report

### Validation
- Status: [PASS/FAIL]
- Errors: [count]
- Warnings: [count]

### Guard Coverage
- Active: [X]/13 guards
- Gaps: [list uncovered categories]

### Compliance Scores
- HIPAA: [X]% ([Y]/10 requirements met)
- SOC 2: [X]% ([Y]/8 requirements met)
- PCI-DSS: [X]% ([Y]/7 requirements met)

### Test Results
- Scenarios: [X] total, [Y] passed, [Z] failed
- Pass rate: [X]%
- Critical failures: [list]

### Prioritized Recommendations
1. [CRITICAL] ...
2. [HIGH] ...
3. [MEDIUM] ...

Severity Classification

| Severity | Criteria |

|----------|----------|

| Critical | Attacks pass through with no guard evaluation; secrets can be exfiltrated |

| High | Guards enabled but misconfigured; compliance gaps in active frameworks |

| Medium | Non-critical guards missing; detection thresholds too permissive |

| Low | Informational; best practices not followed but no direct risk |

Instructions

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.