Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aegis_core_lortuarte_sdk-3.1.0.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aegis_core_lortuarte_sdk-3.1.0-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file aegis_core_lortuarte_sdk-3.1.0.tar.gz.

File metadata

File hashes

Hashes for aegis_core_lortuarte_sdk-3.1.0.tar.gz
Algorithm Hash digest
SHA256 328f9d77f9898fe7fd32528472b5b41ddf3b7dbd09e3e054d0acff894767a54a
MD5 956f68402cf6613c9995b3fcffb0ab64
BLAKE2b-256 60326309633d8b463688846a341bb474c22af48499f2dba459a471b99e416b8b

See more details on using hashes here.

File details

Details for the file aegis_core_lortuarte_sdk-3.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for aegis_core_lortuarte_sdk-3.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 aec346ce52c7a620f7879a770a1f1c5f1a9eadc134e1e12a2822a8ebdc9ebf67
MD5 44f19348a83e369908adf82d6caaae64
BLAKE2b-256 77b3bab963d7e503c2c7661398878262c5354781a5c1d334bac9f091a3325ba7

See more details on using hashes here.

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