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.1.tar.gz (14.2 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.1-py3-none-any.whl (16.2 kB view details)

Uploaded Python 3

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

Hashes for comply_agent-0.2.1.tar.gz
Algorithm Hash digest
SHA256 a8df2539700e9d5d1393aa0396badab7dc7af4d8627d5a570f28a20d341b7fac
MD5 c40fc48b4741d96026273aaead02b720
BLAKE2b-256 239331274a3b6f51d3ec72c4b82103ae7eba75b6afdec55e000f9bc4d4610829

See more details on using hashes here.

Provenance

The following attestation bundles were made for comply_agent-0.2.1.tar.gz:

Publisher: publish.yml on lawcontinue/comply-agent

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for comply_agent-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a31818b87c0700b120f7664f4df9f29b45c249ba3c48ce772a9314437a9af050
MD5 919ee3e2e3483d4fad53780c65e359fc
BLAKE2b-256 2d3bddf703d8df991b9571de0dba5ae8c32803333abfd2339d896cf170aa42fa

See more details on using hashes here.

Provenance

The following attestation bundles were made for comply_agent-0.2.1-py3-none-any.whl:

Publisher: publish.yml on lawcontinue/comply-agent

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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