Skip to main content

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

  1. Load rules — YAML-based rules for each OWASP risk category
  2. Scan inputs — Match regex patterns against prompts, configs, tool defs, logs
  3. Score — Calculate compliance score (0-100)
  4. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

comply_agent-0.2.0.tar.gz (14.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

comply_agent-0.2.0-py3-none-any.whl (16.2 kB view details)

Uploaded Python 3

File details

Details for the file comply_agent-0.2.0.tar.gz.

File metadata

  • Download URL: comply_agent-0.2.0.tar.gz
  • Upload date:
  • Size: 14.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for comply_agent-0.2.0.tar.gz
Algorithm Hash digest
SHA256 33ea17f36d56032028075413c8ffc90592350ba3976150bf46df43dfc7b9344c
MD5 f1d61d50c95e5b44ca0c62d559af4ce8
BLAKE2b-256 b9ed165b3526444a0020e29655c9506349998f858dc471f175f5f67e0e5912ad

See more details on using hashes here.

File details

Details for the file comply_agent-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: comply_agent-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 16.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for comply_agent-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d06e3afdd4ab4771730d47bdcc28199d2cdfdcac70a11461fe4175b96d2fd002
MD5 1427320e510f774bfd2c27a62b6ab0e8
BLAKE2b-256 a5896eb279ff29d81215e0adc2454a96606ef7ab098824c944db5cda896aef56

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page