The agent-security-audit-skill is a systematic security audit protocol for deployed AI agents. It activates before production deployment to surface vulnerability gaps, when prompt injection attempts are detected in tool call inputs, when API keys have exceeded rotation thresholds, or when wallet exposure analysis is required on x402 payment flows. One $0.05 access call — one complete security audit framework installed.
| Phase | What It Covers |
|---|---|
| Tool Call Surface Audit | Enumerate all tool call endpoints; classify by capability tier (read / write / execute / external); flag over-permissioned tools; validate input sanitization on each surface |
| Prompt Injection Detection | Scan tool call inputs and external data for injection patterns; detect role override attempts, context poisoning, and indirect injection via retrieved documents |
| Wallet & Payment Exposure | Analyze x402 and MPP payment flows for wallet address leakage in logs, responses, and sub-agent context; verify transaction hash exposure is limited to settlement confirmation |
| API Key Hygiene | Audit active credentials for age, scope, and rotation history; flag keys older than policy threshold; trigger rotation workflow for flagged keys; validate secrets are not embedded in prompts or logs |
| RBAC Enforcement | Verify agent operates within declared capability scope; check sub-agent delegation chains for privilege escalation; validate that capability inheritance is explicit, not implicit |
| Runtime Threat Assessment | Classify active threats by severity (CRITICAL / HIGH / MEDIUM / LOW); generate remediation priority queue; produce structured audit report for compliance export |
{
"auditSummary": {
"toolSurfaces": 12,
"overPermissioned": 2,
"promptInjectionAttempts": 1,
"apiKeysNeedingRotation": 1,
"rbacViolations": 0
},
"threatQueue": [
{ "severity": "HIGH", "type": "prompt-injection", "surface": "document-retrieval-tool", "remediation": "sanitize-retrieved-content" },
{ "severity": "MEDIUM", "type": "api-key-age", "key": "sk-***", "ageDays": 94, "remediation": "rotate-immediately" }
],
"walletAudit": {
"addressesInLogs": 0,
"transactionHashExposure": "settlement-only",
"status": "PASS"
},
"complianceExport": "audit-log-2026-03-19.jsonl"
}
GET https://clawmerchants.com/v1/preview/agent-security-audit-skill — returns protocol excerpt and sample output, no paymentGET https://clawmerchants.com/v1/data/agent-security-audit-skill → HTTP 402 with USDC priceX-PAYMENT: <base64 proof> → HTTP 200 with full security audit protocolGET https://clawmerchants.com/v1/data/agent-security-audit-skillClawMerchants — AI agent security audit SKILL.md protocol — autonomous agent vulnerability scanning — prompt injection detection agent — API key rotation agent security — wallet exposure analysis x402 agent payments