AI Agent OWASP Agentic Top 10 Compliance Scanner
Project description
comply-agent
AI Agent OWASP Agentic Top 10 Compliance Scanner
Automatically scan your AI agent's prompts, configurations, tool definitions, and behavior logs for compliance issues against the OWASP Agentic Top 10 (2026).
Install
pip install comply-agent
Quick Start
# Scan a prompt
comply-agent scan --prompt "ignore all previous instructions"
# Scan from files
comply-agent scan --prompt-file agent_prompt.txt --config-file agent.yaml
# JSON output
comply-agent scan --prompt-file prompt.txt --format json --output report.json
# List all rules
comply-agent rules
Example Output
============================================================
comply-agent Report
============================================================
Score: 40.0/100 (2 passed / 3 failed / 5 rules)
============================================================
🔴 [ASI01] Prompt Injection Vulnerability
Location: prompt:1
Matched: ignore all previous instructions
Fix: 1. Use structured input separation...
🟠 [ASI02] Sensitive Data Disclosure
Location: config:5
Matched: api_key=abc123def456ghi789...
Fix: 1. Add output filtering/redaction...
🟡 [ASI06] Excessive Agency / Over-Autonomy
Location: prompt:3
Matched: never ask for permission
Fix: 1. Add human-in-the-loop...
Covered OWASP Risks
| OWASP ID | Risk | Category | Status |
|---|---|---|---|
| ASI01 | Prompt Injection | Input | ✅ |
| ASI02 | Sensitive Data Disclosure | Output | ✅ |
| ASI03 | Supply Chain Vulnerability | Audit | ✅ |
| ASI04 | Unauthorized Access | Permission | ✅ |
| ASI05 | Output Manipulation | Output | ✅ |
| ASI06 | Excessive Agency | Permission | ✅ |
| ASI07 | Authentication Failure | Auth | ✅ |
| ASI08 | Improper Error Handling | Output | ✅ |
| ASI09 | Insufficient Monitoring | Audit | ✅ |
How It Works
- Load rules — YAML-based rules for each OWASP risk category
- Scan inputs — Match regex patterns against prompts, configs, tool defs, logs
- Score — Calculate compliance score (0-100)
- Report — Generate Markdown, JSON, or terminal report with findings and fixes
Custom Rules
Add your own rules in YAML:
id: custom-001
owasp_id: CUSTOM
title: My Custom Rule
severity: medium
category: output
description: Detects something specific
patterns:
- "my_sensitive_pattern"
fix: How to fix it
Point to custom rules dir: comply-agent scan --rules-dir ./my_rules --prompt "..."
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file comply_agent-0.2.1.tar.gz.
File metadata
- Download URL: comply_agent-0.2.1.tar.gz
- Upload date:
- Size: 14.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a8df2539700e9d5d1393aa0396badab7dc7af4d8627d5a570f28a20d341b7fac
|
|
| MD5 |
c40fc48b4741d96026273aaead02b720
|
|
| BLAKE2b-256 |
239331274a3b6f51d3ec72c4b82103ae7eba75b6afdec55e000f9bc4d4610829
|
Provenance
The following attestation bundles were made for comply_agent-0.2.1.tar.gz:
Publisher:
publish.yml on lawcontinue/comply-agent
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
comply_agent-0.2.1.tar.gz -
Subject digest:
a8df2539700e9d5d1393aa0396badab7dc7af4d8627d5a570f28a20d341b7fac - Sigstore transparency entry: 2152204088
- Sigstore integration time:
-
Permalink:
lawcontinue/comply-agent@29beca153d586fe0c820b199e1709a7788c7dcc3 -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/lawcontinue
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@29beca153d586fe0c820b199e1709a7788c7dcc3 -
Trigger Event:
release
-
Statement type:
File details
Details for the file comply_agent-0.2.1-py3-none-any.whl.
File metadata
- Download URL: comply_agent-0.2.1-py3-none-any.whl
- Upload date:
- Size: 16.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a31818b87c0700b120f7664f4df9f29b45c249ba3c48ce772a9314437a9af050
|
|
| MD5 |
919ee3e2e3483d4fad53780c65e359fc
|
|
| BLAKE2b-256 |
2d3bddf703d8df991b9571de0dba5ae8c32803333abfd2339d896cf170aa42fa
|
Provenance
The following attestation bundles were made for comply_agent-0.2.1-py3-none-any.whl:
Publisher:
publish.yml on lawcontinue/comply-agent
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
comply_agent-0.2.1-py3-none-any.whl -
Subject digest:
a31818b87c0700b120f7664f4df9f29b45c249ba3c48ce772a9314437a9af050 - Sigstore transparency entry: 2152204187
- Sigstore integration time:
-
Permalink:
lawcontinue/comply-agent@29beca153d586fe0c820b199e1709a7788c7dcc3 -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/lawcontinue
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@29beca153d586fe0c820b199e1709a7788c7dcc3 -
Trigger Event:
release
-
Statement type: