Skip to content
Back to skills

Ai Shield Audit

ASecurity

Security audit engine for OpenClaw configurations. Detects vulnerabilities, misconfigurations, secret leaks, and over-privileged agents. Use when the user asks about security, hardening, config review, or audit of their OpenClaw setup.

  • 92 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added May 27, 2026
testing-securityjavascriptgojavabashnodegitapisecurity

Works with

  • api

Security analysis

A100/100

Pro scans all 9 files and shows the line behind each finding

Scanned May 27, 2026

npx -y skills add aAAaqwq/AGI-Super-Team --skill ai-shield-audit --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ai Shield Audit?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Ai Shield Audit
[![Security: A β€” Skills Directory](https://www.skillsdirectory.com/api/skills/aaaaqwq-ai-shield-audit/badge)](https://www.skillsdirectory.com/skills/aaaaqwq-ai-shield-audit)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: openclaw-shield
description: Security audit engine for OpenClaw configurations. Detects vulnerabilities, misconfigurations, secret leaks, and over-privileged agents. Use when the user asks about security, hardening, config review, or audit of their OpenClaw setup.
metadata: {"openclaw":{"emoji":"πŸ›‘οΈ","homepage":"https://github.com/autonomous-intelligence/openclaw-shield"}}
---

# OpenClaw Shield β€” Security Audit

Audit any OpenClaw config for security vulnerabilities, misconfigurations, and best-practice violations. Produces a structured JSON report with risk scores, findings, and remediation steps.

## When to Use

- User asks to check/audit/review their OpenClaw security
- User wants to harden their config before deploying
- User is setting up a new OpenClaw instance
- User asks about secret leakage or API key exposure in their config
- Before publishing or sharing any config file

## Quick Audit (live config)

```bash
node scripts/shield-audit.sh
```

Or directly:

```bash
node SKILL_DIR/bin/shield.js audit ~/.openclaw/openclaw.json --summary
```

## What It Checks (11 categories)

1. **Gateway Auth** β€” missing/weak auth, insecure UI settings
2. **Network Exposure** β€” bind address, Tailscale funnel, wildcard proxies
3. **Channel Security** β€” wildcard allowFrom, missing allowlists
4. **DM Policy** β€” open DM policy without pairing
5. **Subagent Permissions** β€” wildcard allowAgents, circular delegation chains, self-delegation
6. **Tool Permissions** β€” over-privileged agents with tools.profile: "full"
7. **Secret Leakage** β€” API keys, tokens, private keys in plaintext config
8. **Sandbox/Execution** β€” missing workspace isolation, no execution policies
9. **Plugin Config** β€” enabled plugins without channel config
10. **Heartbeat Exposure** β€” sensitive data in heartbeat prompts
11. **Remote Config** β€” unencrypted WebSocket, exposed remote URLs/tokens

## Usage

### Audit a config file
```bash
node SKILL_DIR/bin/shield.js audit <config.json>
node SKILL_DIR/bin/shield.js audit <config.json> --summary   # human-readable
```

### Audit from stdin
```bash
cat config.json | node SKILL_DIR/bin/shield.js audit --stdin
```

### Sanitize a config (strip secrets)
```bash
node SKILL_DIR/bin/shield.js sanitize <config.json>
```

### Programmatic use
```javascript
const { auditConfig } = require('SKILL_DIR/src/audit');
const config = require('./openclaw.json');
const report = auditConfig(config);
console.log(report.risk_level);      // "CRITICAL" | "HIGH" | "MEDIUM" | "LOW"
console.log(report.overall_score);   // 0-100
console.log(report.vulnerabilities); // detailed findings
```

## Output

Returns JSON with: `risk_level`, `overall_score` (0-100), `vulnerabilities[]`, `vulnerability_count`, `best_practices_compliance`, `action_recommended`, `safe_to_deploy`, `audit_timestamp`.

## Workflow for Agent

1. Load the user's config: `cat ~/.openclaw/openclaw.json`
2. Run: `node SKILL_DIR/bin/shield.js audit ~/.openclaw/openclaw.json --summary`
3. Present findings to user with prioritized recommendations
4. Offer to sanitize before sharing: `node SKILL_DIR/bin/shield.js sanitize <file>`

Files in this skill

  • .clawhub/origin.json147 B
  • README.md3.6 KB
  • SKILL.md3.1 KB
  • _meta.json134 B
  • bin/shield.js5.2 KB
  • package.json622 B
  • scripts/shield-audit.sh323 B
  • src/audit.js23 KB
  • src/sanitize.js1.9 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.