Skip to main content

Aphasia Agentry

Agentic BAS — breach & attack simulation for AI agents and MCP servers. Drive an attacker (curated seed payloads and/or any LLM) against a target, prove impact with per-run canaries, and get a report mapped to the OWASP LLM Top 10 and MITRE ATLAS.

PyPI License Python OWASP LLM Top 10

Aphasia Agentry report

Install

pip install aphasia-agentry        # or: uvx aphasia-agentry, pipx install aphasia-agentry

Why

Most agent red-teaming grades a model's output with an LLM judge. Aphasia Agentry asks a harder question — did the attack actually reach impact? — and answers it with evidence:

  • Proof, not judgement. A finding is a touched canary record, a used honey token, or a mutating tool call captured by a record-only mirror. Never a model's self-assessment.
  • Any LLM, or none. Seed mode runs curated payloads with no LLM at all (reproducible, runs in seconds). Add an adaptive attacker via litellm: OpenAI, Anthropic, Gemini, Groq, OpenRouter, Bedrock, local vLLM/LM Studio, Ollama.
  • Full OWASP LLM Top 10. 11 scenarios across LLM01–LLM10, mapped to MITRE ATLAS.
  • Safe by construction. The bundled vulnerable fixture is sandbox-inert — real exploit, fake blast radius: no disk, exec, env or network from any attack.

Quickstart

No LLM, no API key — reproducible coverage from the seed-payload library (needs the bundled Docker fixture, from a repo checkout):

docker compose -f fixture/docker-compose.yml up -d
aphasia run --mode seed        # then open runs/<id>/report.html

Point it at your own agent instead of the fixture:

aphasia run --target http://host/chat --model gpt-4o-mini     # any litellm model

aphasia list shows the scenarios; aphasia payloads the seed library; aphasia --help the rest.

More commands: aphasia catalog (a merged 59-technique taxonomy), aphasia run --category <id> (scan a whole category), aphasia tui (terminal UI, first run opens a setup wizard), aphasia setup / aphasia config (configure the attacker LLM, optional proxy mode and Wazuh).

Full documentation, the vulnerable fixture, contributing guide and source: https://github.com/mddanish/Aphasia-Agentry

The bundled fixture is intentionally vulnerable — run it on localhost only, never expose it.

Licensed under Apache-2.0.

Metadata

Release files for aphasia-agentry 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aphasia-agentry 0.2.0
File Size Uploaded Provenance Actions
aphasia_agentry-0.2.0.tar.gz 279.1 kB With provenance Details for aphasia_agentry-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for aphasia-agentry 0.2.0
File Interpreter ABI Platform Actions
aphasia_agentry-0.2.0-py3-none-any.whl Python 3 none any Details for aphasia_agentry-0.2.0-py3-none-any.whl

Total release size: 359.9 kB

Release files / aphasia_agentry-0.2.0.tar.gz

Download URL aphasia_agentry-0.2.0.tar.gz
Size 279.1 kB
Tags Source
SHA-256 checksum
How to use checksums
6107e653aa8e770c02726609f7e0a70d10cc09890e346dcd5db198358151d68d
BLAKE2b-256 checksum
How to use checksums
e0f9aaee9b5212a2bc7dc8ae8813ad3520515373517d4231ea2dafe10ca93e83
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

Transparency log

Release files / aphasia_agentry-0.2.0-py3-none-any.whl

Download URL aphasia_agentry-0.2.0-py3-none-any.whl
Size 80.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7d46ced33cd06b9c0d7d2dd1ddc4dccf84d32798682104ac334ed300e451ff56
BLAKE2b-256 checksum
How to use checksums
d7f1b67427610bc06a830925771e3dc25283327fc45c61d744abf4c14bece7f6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

Transparency log

Security for aphasia-agentry 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for aphasia_agentry-0.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page