← Back to Skills Marketplace
ai-gaoqian

AI Agent Security Audit

by ai-gaoqian · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
34
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install gaoqian-ai-security-audit
Description
Comprehensive AI agent security auditing skill covering prompt injection detection, permission boundary analysis, malicious skill scanning, credential leak d...
README (SKILL.md)

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

  1. Configuration Audit — Parse agent config YAML, enumerate permissions, identify over-privileged tool access
  2. Prompt Injection Test — Run 12 injection patterns (DAN, encoding bypass, role confusion, token smuggling) and score resilience
  3. Skill Scan — Analyze each installed skill's SKILL.md for suspicious patterns (eval(), shell_exec, credential references, network requests)
  4. Credential Hygiene — Scan workspace for hardcoded tokens, API keys, private keys in plaintext files
  5. Runtime Monitor — Observe agent behavior for N minutes, flag any unexpected tool calls, network connections, or file access patterns
  6. 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
Usage Guidance
Install only if you want an agent to perform security review tasks. When using it, scope scans to the intended agent config, skill directory, or workspace, and treat generated reports as sensitive because they may include file paths, credential findings, and runtime behavior details.
Capability Assessment
Purpose & Capability
The stated purpose is AI-agent security auditing, and the capabilities described in the artifact fit that purpose: configuration review, prompt-injection testing, skill scanning, credential hygiene checks, runtime observation, and report generation.
Instruction Scope
The usage examples are user-invoked with a target path or explicit runtime-monitoring duration, and the notes disclose required read access and process access.
Install Mechanism
The artifact contains only a SKILL.md file with metadata requiring Python/OpenClaw compatibility; no executable scripts, package install hooks, hidden files, or automatic setup behavior were present.
Credentials
Credential scanning and runtime monitoring can touch sensitive local information, but that access is disclosed and proportionate for a security audit skill when run against user-selected targets.
Persistence & Privilege
No persistence, privilege escalation, background service installation, deletion, mutation, exfiltration, or credential storage behavior is described or present in the artifact.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install gaoqian-ai-security-audit
  3. After installation, invoke the skill by name or use /gaoqian-ai-security-audit
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release of the AI Agent Security Audit skill. - Audits AI agents for prompt injection, permission boundaries, malicious or insecure skill patterns, and credential leaks. - Monitors agent runtime behavior to flag suspicious activities such as unexpected tool or network usage. - Generates detailed markdown audit reports with overall risk scoring, critical findings, and prioritized remediation steps. - Designed for production agent deployments needing comprehensive security and compliance checks. - Requires Python 3.10+ and Openclaw 0.9.0+ for execution.
Metadata
Slug gaoqian-ai-security-audit
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

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.

💬 Comments