Multi-layer agent defense framework for AI security
Project description
agentshield
Multi-layer agent defense framework for AI security
Part of the AumOS open-source agent infrastructure portfolio.
Features
SecurityPipelinescans agent input, output, and tool calls through an ordered chain of scanners with configurable severity thresholds and BLOCK/WARN/LOG actions- Eight built-in scanners: regex injection detection, PII detection, credential detection, output safety, tool call validation, behavioral checking, output validation, and tool call integrity checking
ScannerABC makes it straightforward to write and register custom scanners; load them from ashield.yamlconfig file or inject them at runtime- Phase-aware dispatch — each scanner declares which phases (
INPUT,OUTPUT,TOOL_CALL) it runs in, so no scanner is invoked unnecessarily - Cumulative findings tracked across the session with JSON, Markdown, and HTML report generation
- Adapters for LangChain, CrewAI, AutoGen, OpenAI Agents, and MCP that wrap existing agent code with a single decorator or context manager
- OWASP ASI Top 10 category mapper tags each finding with its corresponding ASI category for structured vulnerability reporting
Quick Start
Install from PyPI:
pip install agentshield
Verify the installation:
agentshield version
Basic usage:
import agentshield
# See examples/01_quickstart.py for a working example
Documentation
Enterprise Upgrade
For production deployments requiring SLA-backed support and advanced integrations, contact the maintainers or see the commercial extensions documentation.
Contributing
Contributions are welcome. Please read CONTRIBUTING.md before opening a pull request.
License
Apache 2.0 — see LICENSE for full terms.
Part of AumOS — open-source agent infrastructure.
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 aumos_agentshield-0.2.0.tar.gz.
File metadata
- Download URL: aumos_agentshield-0.2.0.tar.gz
- Upload date:
- Size: 198.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
924763fbc10970c15f7594e4327f707b992676b40a0107a26942f6c2e448eb58
|
|
| MD5 |
f3e4c23d5901ce73cf1e950207034c3b
|
|
| BLAKE2b-256 |
693f686eadf29e2ae2763b56ebce71a5b00388f51382a33fd928fb7e5e968842
|
File details
Details for the file aumos_agentshield-0.2.0-py3-none-any.whl.
File metadata
- Download URL: aumos_agentshield-0.2.0-py3-none-any.whl
- Upload date:
- Size: 174.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c6011295d80c3c3d91b6cb2ec8397f8af2ae37a17256e7baf9ea8ae240d24006
|
|
| MD5 |
4ef01ae7c063c31b2b70dac819577b49
|
|
| BLAKE2b-256 |
b4b59384be4439f47e317ab6a6dafbf2026856c3f5061f88cb6264b20a7e9721
|