AI Agent Security Audit
/install gaoqian-ai-security-audit
AI Agent Security Audit
Comprehensive security auditing for AI agent deployments. Detects vulnerabilities across prompt handling, tool permissions, skill behavior, credential management, and runtime operations.
Usage
Invoke with a target agent configuration path or skill directory to scan:
audit: scan /path/to/agent/config
audit: review installed skills
audit: monitor runtime behavior for 30 minutes
Execution Flow
- Configuration Audit — Parse agent config YAML, enumerate permissions, identify over-privileged tool access
- Prompt Injection Test — Run 12 injection patterns (DAN, encoding bypass, role confusion, token smuggling) and score resilience
- Skill Scan — Analyze each installed skill's SKILL.md for suspicious patterns (eval(), shell_exec, credential references, network requests)
- Credential Hygiene — Scan workspace for hardcoded tokens, API keys, private keys in plaintext files
- Runtime Monitor — Observe agent behavior for N minutes, flag any unexpected tool calls, network connections, or file access patterns
- Generate Report — Risk score 0-100, criticality matrix, prioritized remediation steps
Output Format
# Security Audit Report
- **Audit Date**: YYYY-MM-DD HH:MM
- **Audit Scope**: [target]
- **Overall Risk Score**: 67/100 (MEDIUM)
## Critical Findings (2)
- [CRITICAL] Unrestricted shell_executor access allows arbitrary command execution
- [CRITICAL] Skill "data-export" sends data to external endpoint without user consent
## High Findings (3)
- ...
## Recommendations
1. Add allowlist for shell_executor commands
2. Sandbox "data-export" skill network calls
3. ...
Notes
- Requires read access to agent config directory and installed skills path
- Runtime monitoring requires agent process access
- All findings include file paths and line numbers for traceability
- Recommended for any production agent deployment, especially those handling user data or financial operations
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install gaoqian-ai-security-audit - After installation, invoke the skill by name or use
/gaoqian-ai-security-audit - Provide required inputs per the skill's parameter spec and get structured output
What is AI Agent Security Audit?
Comprehensive AI agent security auditing skill covering prompt injection detection, permission boundary analysis, malicious skill scanning, credential leak d... It is an AI Agent Skill for Claude Code / OpenClaw, with 34 downloads so far.
How do I install AI Agent Security Audit?
Run "/install gaoqian-ai-security-audit" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is AI Agent Security Audit free?
Yes, AI Agent Security Audit is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does AI Agent Security Audit support?
AI Agent Security Audit is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created AI Agent Security Audit?
It is built and maintained by ai-gaoqian (@ai-gaoqian); the current version is v1.0.0.