Sub-millisecond Tool-Execution Firewall to prevent AI Agent Double-Spending.
Project description
🛡️ AEGIS Core: The Tool-Execution Firewall for FinTech AI Agents
Cloud HTTP Gateways (like LangSmith) protect your LLM tokens. AEGIS protects your Stripe account and Crypto Wallets from asynchronous Agent Double-Spending.
🚨 The 1,000-Thread Double Spend Vulnerability
When an autonomous agent enters a hyper-cognitive loop, it can fire hundreds of concurrent tool calls (e.g., Stripe API charges or Web3 transactions).
Cloud-based guardrails suffer from network latency (~50ms - 150ms). By the time the cloud gateway registers the budget depletion, the in-flight transactions have already drained your accounts.
[ 🎥 INSERT_YOUR_1000_THREAD_GIF_HERE.gif ] (Above: AEGIS Local IPC locking 999 rogue concurrent Stripe charges in <1ms, preventing a $99,900 phantom debt).
⚡ Why AEGIS? (Zero-Latency Policy Enforcement)
AEGIS is a horizontal L3 Policy Gate designed purely for speed and state locking. It sits exactly between your Agent's reasoning engine and your execution tools.
- Sub-Millisecond Concurrency: High-Frequency Local IPC Memory Locks (
< 1ms) budget resolution. - Infrastructure Agnostic: Works with LangChain, AutoGen, CrewAI, or raw Python scripts.
- Zero Dependencies: No Redis, no Kafka. Pure Python in-memory atomic locks.
📦 Quickstart & Installation
pip install aegis-core-sdk
🛠️ Proof of Concept: The 3-Line Integration
Wrap your high-risk tools (payments, trades, database writes) with the AEGIS gate.
from aegis import PolicyGate
# 1. Initialize local IPC Client
aegis_gate = PolicyGate(daily_budget_usd=100)
def execute_agent_payment(agent_id, amount):
# 2. Intercept budget spending BEFORE tool execution (<1ms Lock)
decision = aegis_gate.evaluate_tool_execution(
agent_id=agent_id,
operation="stripe_charge",
amount=amount
)
if decision["status"] == "ALLOW":
# Safe to execute real API call
# stripe.Charge.create(...)
return "Transaction Authorized"
else:
# Loop blocked instantly. Budget saved.
return f"BLOCKED: Asynchronous Double-Spend Prevented in {decision['latency']}ms"
🧠 The Architecture (vs. LLM Gateways)
| Feature | LangSmith / Portkey (Cloud) | AEGIS Core (Local IPC) |
|---|---|---|
| Primary Target | Token Spend / Prompt Injection | Tool Execution / Money Spend |
| Latency | 50ms - 200ms (HTTP) | < 1ms (In-Memory) |
| Double-Spend Protection | Fails under high concurrency | Atomic deterministic locking |
Built for the Machine-to-Machine (M2M) Economy.
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 aegis_core_lortuarte_sdk-3.1.0.tar.gz.
File metadata
- Download URL: aegis_core_lortuarte_sdk-3.1.0.tar.gz
- Upload date:
- Size: 6.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
328f9d77f9898fe7fd32528472b5b41ddf3b7dbd09e3e054d0acff894767a54a
|
|
| MD5 |
956f68402cf6613c9995b3fcffb0ab64
|
|
| BLAKE2b-256 |
60326309633d8b463688846a341bb474c22af48499f2dba459a471b99e416b8b
|
File details
Details for the file aegis_core_lortuarte_sdk-3.1.0-py3-none-any.whl.
File metadata
- Download URL: aegis_core_lortuarte_sdk-3.1.0-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aec346ce52c7a620f7879a770a1f1c5f1a9eadc134e1e12a2822a8ebdc9ebf67
|
|
| MD5 |
44f19348a83e369908adf82d6caaae64
|
|
| BLAKE2b-256 |
77b3bab963d7e503c2c7661398878262c5354781a5c1d334bac9f091a3325ba7
|