-
-
Notifications
You must be signed in to change notification settings - Fork 0
Architecture and Threat Model
Sneh Gabani edited this page Aug 15, 2026
·
1 revision
Aegis Invariant Kernel operates as an in-process, deterministic policy firewall situated directly between an Autonomous AI Agent and its Tool Execution Runtime.
[Agent LLM] ββ> Tool Call Intent
β
βΌ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Tier 1: Identity & Attenuation Check β
β β’ Ed25519 Cryptographic Biscuit Tokens β
β β’ Monotonic capability attenuation across subagents β
ββββββββββββββββββββββββββββββ¬βββββββββββββββββββββββββββββ
β
ββββββββββββββββββββββββββββββΌβββββββββββββββββββββββββββββ
β Tier 2: Static Schema & Poisoning Detection β
β β’ MCP Tool Schema Homoglyph & Hidden Unicode Inspection β
β β’ Prompt Injection Classifier ($O(N)$ linear tokens) β
ββββββββββββββββββββββββββββββ¬βββββββββββββββββββββββββββββ
β
ββββββββββββββββββββββββββββββΌβββββββββββββββββββββββββββββ
β Tier 3: Deterministic AST & Semantic Parsers β
β β’ SQL AST parsing (node-sql-parser + regex fallback) β
β β’ Strict Numeric Boundary & Slippage Bounds β
β β’ Deterministic PII Masking & Token Vault β
ββββββββββββββββββββββββββββββ¬βββββββββββββββββββββββββββββ
β
ββββββββββββββββββββββββββββββΌβββββββββββββββββββββββββββββ
β Tier 4: Zero-Egress Cryptographic Evidence Log β
β β’ Append-only SHA-256 Merkle Audit Chain β
β β’ GRC Dossier generation (SOC2, HIPAA, EU AI Act) β
ββββββββββββββββββββββββββββββ¬βββββββββββββββββββββββββββββ
β
[Decision: Allow / Deny]
β
βΌ
[External Tool Execution / MCP]
The core evaluation package (@aegis-kernel/core) has zero network dependencies and makes no outbound network requests during evaluation. This guarantees:
- Air-Gapped Operation: Run securely in confidential VMs, Kubernetes air-gapped enclaves, or private banking clusters.
- ReDoS Immunity: All pattern checkers use deterministic linear algorithms avoiding polynomial regex backtracking.
- Deterministic Reproducibility: Given the same policy config and tool call input, Aegis produces identical decisions and cryptographic Merkle hashes.
Aegis Invariant Kernel β’ Deterministic Tool-Call Clearance Gateway for AI Agents β’ Released under MIT License