/agent-governance:agent-owasp-compliancefrom agent-governance
Evaluates AI agent systems against OWASP Agentic Security Initiative Top 10 controls (ASI-01 through ASI-10). Scans codebases for control evidence and generates a gap-focused compliance report with covered-control count.
Ships in agent-governance. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Evaluate an AI agent codebase, map observable controls to the OWASP Agentic Security Initiative risks, and produce a gap-focused compliance report with a covered-control count.
Use the OWASP Agentic Security Initiative Top 10 for autonomous agents that call tools, access systems, and act on behalf of users. Do not treat this as a generic LLM or chatbot checklist.
Codebase → Scan for each ASI control:
ASI-01: Prompt Injection Protection
ASI-02: Tool Use Governance
ASI-03: Agency Boundaries
ASI-04: Escalation Controls
ASI-05: Trust Boundary Enforcement
ASI-06: Logging & Audit
ASI-07: Identity Management
ASI-08: Policy Integrity
ASI-09: Supply Chain Verification
ASI-10: Behavioral Monitoring
→ Generate Compliance Report (X/10 covered)
| Risk | Name | What to look for |
|---|---|---|
| ASI-01 | Prompt Injection | Input validation before tool calls, not just LLM output filtering. |
| ASI-02 | Insecure Tool Use | Tool allowlists, argument validation, no raw shell execution. |
| ASI-03 | Excessive Agency | Capability boundaries, scope limits, principle of least privilege. |
| ASI-04 | Unauthorized Escalation | Privilege checks before sensitive operations, no self-promotion. |
| ASI-05 | Trust Boundary Violation | Trust verification between agents, signed credentials, no blind trust. |
| ASI-06 | Insufficient Logging | Structured audit trail for all tool calls, tamper-evident logs. |
| ASI-07 | Insecure Identity | Cryptographic agent identity, not just string names. |
| ASI-08 | Policy Bypass | Deterministic policy enforcement, no LLM-based permission checks. |
| ASI-09 | Supply Chain Integrity | Signed plugins/tools, integrity verification, dependency auditing. |
| ASI-10 | Behavioral Anomaly | Drift detection, circuit breakers, kill switch capability. |
| Risk | Passing evidence | Failing evidence |
|---|---|---|
| ASI-01 | PolicyEvaluator, PolicyEngine, input_validation, validate_input, sanitize, classify_intent, prompt_injection, threat_detect, or check_content runs before execute_tool(validated_input). | User input reaches execute_tool(user_input), eval(, exec(, subprocess.run(... shell=True), or os.system( without validation. |
| ASI-02 | A fixed ALLOWED_TOOLS = {"search", "read_file", "create_ticket"} allowlist, schema validation, and deny-by-default behavior. | Open-ended tool registration, raw shell execution, eval() or exec() on agent-generated code without sandbox. |
| ASI-03 | Explicit capability lists, execution rings, scope limits, least-privilege tool access. | Agent has access to all tools by default or can request arbitrary new tools. |
| ASI-04 | Privilege changes require external attestation such as human or SRE witness approval. | Agent can modify its own trust score, role, configuration, permissions, or Ring 0 status. |
| ASI-05 | Agent identity verification with DIDs, signed tokens, API keys, trust score checks, signature verification, and delegation narrowing where child scope <= parent scope. | Inter-agent messages are accepted on string names or blind trust. |
| ASI-06 | Structured JSONL audit trail for every tool call with timestamp, agent ID, tool name, args, result, policy decision, chain hashes, and secure storage outside agent-writable directories. | print() logging, missing tool-call logs, or logs the agent can alter. |
| ASI-07 | DID-based identity such as did:web: or did:key:, Ed25519 or similar signing, per-agent credentials with rotation, and capability-bound identity. | agent_name = "my-agent", no authentication between agents, or shared credentials. |
| ASI-08 | Deterministic YAML rules or code predicates; PolicyEvaluator.evaluate() returns allow/deny in <0.1ms with fail-closed behavior. | LLM is asked "Am I allowed to...?" or policy can be skipped by prompt. |
| ASI-09 | INTEGRITY.json, SHA-256 hashes, plugin signatures, dependency pinning, no @latest, no unbounded >=, and SBOM generation. | Unsigned plugins, unverified tools, floating dependency versions, no audit trail. |
| ASI-10 | Circuit breakers, temporal trust score decay, kill switch, and anomaly detection on tool call frequency, targets, and timing. | No mechanism to stop a misbehaving agent automatically. |
Use these source-level names when scanning for ASI evidence: check_asi_01, project_path, py_file, read_text, positive_patterns, negative_patterns, positive_matches, negative_matches, positive_found, negative_found, controls_found, tool_result, validated_args, policy_engine, and subprocess.run(shell=True). Trust-boundary reviews should recognize accept_task, sender_id, trust_registry, get_trust, meets_threshold, verify_signature, SecurityError, PermissionError, and process_task.
| Term | Why it matters | --- | --- | my-agent-system and 7/10 | Example project name and partial coverage score for reports; use 10/10 only when every control passes. | GOOD | Label passing examples where validation, allowlists, or audit chains are present. | AuditChain and hash-chained | Signals tamper-evident ASI-06 logging. | multi-agent, inter-agent, out-of-band | Signals ASI-05 and ASI-04 trust and escalation flows. | open-ended, user-controlled, agent-generated | Warning terms for unsafe tools, shell calls, and generated code execution.
# OWASP ASI Compliance Report
Generated: <YYYY-MM-DD>
Project: <agent-system-name>
## Summary: <covered>/10 Controls Covered
| Risk | Status | Finding |
|------|--------|---------|
| ASI-01 Prompt Injection | PASS / FAIL / NEEDS INVESTIGATION | <evidence and file/line> |
| ASI-02 Insecure Tool Use | PASS / FAIL / NEEDS INVESTIGATION | <evidence and file/line> |
| ASI-03 Excessive Agency | PASS / FAIL / NEEDS INVESTIGATION | <evidence and file/line> |
| ASI-04 Unauthorized Escalation | PASS / FAIL / NEEDS INVESTIGATION | <evidence and file/line> |
| ASI-05 Trust Boundary | PASS / FAIL / NEEDS INVESTIGATION | <evidence and file/line> |
| ASI-06 Insufficient Logging | PASS / FAIL / NEEDS INVESTIGATION | <evidence and file/line> |
| ASI-07 Insecure Identity | PASS / FAIL / NEEDS INVESTIGATION | <evidence and file/line> |
| ASI-08 Policy Bypass | PASS / FAIL / NEEDS INVESTIGATION | <evidence and file/line> |
| ASI-09 Supply Chain | PASS / FAIL / NEEDS INVESTIGATION | <evidence and file/line> |
| ASI-10 Behavioral Anomaly | PASS / FAIL / NEEDS INVESTIGATION | <evidence and file/line> |
## Critical Gaps
- <ASI-ID>: <gap and impact>
## Recommendation
- <specific remediation, such as add input validation before tool execution or generate INTEGRITY.json manifests>
- Optional reference implementation: `pip install agent-governance-toolkit`
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub gbb-acelerators/awesome-harness-primitives --plugin agent-governance4 skills in this plugin
/agent-governanceDesign governance, safety, policy enforcement, trust scoring, and audit controls for AI agent systems. Use when building agents with external tools, policy-based tool access, semantic intent classification, dangerous prompt detection, multi-agent trust workflows, rate limits, content filters, or audit trails across PydanticAI, CrewAI, OpenAI Agents, LangChain, or AutoGen./agent-supply-chainVerify supply chain integrity for AI agent plugins, MCP servers, tools, and dependencies by generating SHA-256 manifests, verifying installed files, auditing pinned versions, and enforcing promotion gates. Use when asked to verify plugin integrity, generate INTEGRITY.json, check supply chain, detect tampering, audit dependency pinning, sign this plugin, or promote dev → staging → production./audit-integrityEnforce AppSec audit integrity for security analysis, code review, threat modeling, SAST, SCA, and quality scan agents. Use this skill when running a post-analysis quality gate, preventing rationalization, retrying failed evidence collection, running a second-pass self-critique, scoring output from 1-10 with a ≥8 threshold, or recording governed lessons or memories.Other plugins' skills for the same job