Aegis-Eval: Autonomous AI Risk Assessment & Mitigation Framework
Aegis-Eval is an enterprise-grade evaluation framework designed to empirically test the safety boundaries of autonomous, self-improving AI agents. It provides a zero-trust execution environment with high-frequency telemetry to detect and mitigate risks such as Instrumental Convergence, Resource Hijacking, and Prohibited Operations.
🚀 Key Features: Hardened Cognitive Firewall V3.0 [MAJOR BREAKTHROUGH]
V3.0 represents a significant leap in AI security, closing common bypass gaps via kernel-level containment and semantic de-obfuscation.
- Hardened Intent Interception: [NEW] Now includes a Semantic De-obfuscator that resolves string concatenations (e.g.,
'os.' + 'system') and blocks dynamic attribute lookups (getattr,setattr) used to hide malicious intent. - Kernel-Level Containment: [NEW] The sandbox now drops ALL Linux Capabilities (
cap_drop=['ALL']) and usesno-new-privilegesto prevent C-extension or syscall-based bypasses of Python-level safety. - Cumulative Exfiltration Tracking: [NEW] Detects 'Drip-Fed' leaks by monitoring entropy across the entire agent session, stopping models that try to leak secrets one character at a time.
- Contextual Access Control (C-ACLs): Enforces "Least Privilege" data access based on the agent's assigned role.
- Deception Engineering (Honeypots): Automatically injects fake secrets (honeypots) to definitively prove malicious intent.
- Swarm Security: Sanitizes communication between multiple agents in a collaborative swarm.
🔬 Testing Philosophy: Total Containment
We move beyond "Alignment" into Hardened Technical Containment. V3.0 ensures that even if an agent is determined to be malicious and uses obfuscation, it is technically blocked at both the symbolic and kernel levels.
🛠 Installation
pip install aegis-ai-eval
💻 Quick Start (Developer API)
Integrate Aegis into your own Agentic workflows (LangChain, CrewAI, etc.):
from aegis import CognitiveFirewall
# Initialize the firewall with your Safety DNA
firewall = CognitiveFirewall(dna_path="prompts/safety_dna.json")
# Verify code before execution
report = await firewall.verify_code("import os; os.system('rm -rf /')")
if report['intent']['status'] == 'violation':
print(f"Blocked: {report['intent']['violations']}")
📂 Architecture
aegis/core/orchestrator.py: The central nervous system managing the agent lifecycle.aegis/monitors/context_gatekeeper.py: Enforces the data perimeter and honeypots.aegis/monitors/network_proxy.py: Intercepts and sanitizes network egress.aegis/monitors/inter_agent_firewall.py: Secures inter-agent communication.tools/policy_gen.py: Automatically generates Safety DNA policies from your workspace.
🛡 Disclaimer
Aegis-Eval is built for security research and AI alignment testing. Always run in a controlled environment.
Metadata
Release files for aegis-ai-eval 3.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| aegis_ai_eval-3.0.0.tar.gz | 20.2 kB | Without provenance | Details for aegis_ai_eval-3.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| aegis_ai_eval-3.0.0-py3-none-any.whl | Python 3 | none | any | Details for aegis_ai_eval-3.0.0-py3-none-any.whl |
Total release size: 42.6 kB
Release files / aegis_ai_eval-3.0.0.tar.gz
| Download URL | aegis_ai_eval-3.0.0.tar.gz |
|---|---|
| Size | 20.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d29a0426de187f607dc15621d7ab7a15a681407562dbbb87362869c43804ab4f
|
|
BLAKE2b-256 checksum How to use checksums |
c4ca3d87f904544697be6fded63529f96e69dd10fbf3713116cc3cf82e72ce21
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.14
|
Release files / aegis_ai_eval-3.0.0-py3-none-any.whl
| Download URL | aegis_ai_eval-3.0.0-py3-none-any.whl |
|---|---|
| Size | 22.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fa0a4a657677a8fd0b67c679d59c83a017e75c584f2565f65ff7f129d0c25d56
|
|
BLAKE2b-256 checksum How to use checksums |
9fbf81a6554a4fef1e29684566b935b69b8e5ded38f75507113cd590eee2b143
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.14
|
Security for aegis-ai-eval 3.0.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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.