Repository navigation
v1.0.0 — Cicada: Zero-Trust Agent Gateway & Kernel Firewall (Apache 2.0)
Initial open-source release (Apache 2.0) of Cicada, a deterministic runtime enforcement gateway (Sentry_Gateway) and ephemeral kernel firewall (eakfd) for autonomous AI agents and Model Context Protocol (MCP) tool servers.
⚠️ Architectural Note: Built over 8 months as a functional zero-trust architectural blueprint and enforcement engine (~100k LOC). The plumbing is yours to inspect, harden, and extend; the blueprint is yours to use.
⚡ Highlights in v1.0.0
- Sub-Millisecond Go Data Plane (
Sentry_Gateway): Evaluates agent tool calls and LLM requests across the 15-stage Matthews Enforcement Framework (MEF) with19.01msp95 end-to-end latency and<1msstandalone in-memory gate evaluation. - 60-Second Zero-Dependency Standalone Mode: Boot and test all 8 in-memory Zero-Trust enforcement gates locally with
CICADA_DEV_MODE=true CICADA_SIMULATION_MODE=true go run ./cmd/sentry(no PostgreSQL, Redis, or external API keys required). - Socket-Pinned 3-Tier SSRF & DNS-Rebinding Guard: Validates schemes/hosts pre-flight and pins resolved public IPs inside Go's
net.Transport.DialContext(22µs), blocking AWS IMDSv2 (169.254.169.254), RFC 1918 private networks, and TOCTOU DNS-rebinding attacks at the TCP socket layer. - Zero-False-Positive
CICADA_CANARY_*Honeytokens & Lock-Free Gossip Mesh: Detects raw and encoded (Base64,Hex,URL,SHA-256) canary leaks in310µs, drops the connection, and broadcasts anEd25519+NIST FIPS 204 ML-DSA-65(Post-Quantum) quarantine packet across async/atomic.Pointercopy-on-write P2P Gossip Mesh (2µsread check). - 7-Stage Recursive De-Obfuscation & Vault-Aware Entropy DLP: Canonicalizes
NFKCfullwidth/compatibility glyphs, zero-width characters, HTML entities, URL encoding,\xNN/\uXXXXescapes, and nestedBase64payloads on inbound prompts, paired with 22 secret prefixes, Shannon entropy (H(X) ≥ 4.3bits/char), and multi-encoding Vault DLP on outbound requests. - Ephemeral Agent Kernel Firewall (
eakfd): Isolates untrusted agent subprocesses over a UNIX Domain Socket inside agVisor (runsc)/Katasandbox and scrubs.tfstatesecrets, RFC 1918 IPs, and cloud metadata fromstdout/stderr. - Out-of-Band Biometric CIBA Kill-Switch & Saga Rollbacks: Suspends high-risk write/transact calls for hardware-backed biometric approval on the operator's mobile companion app (
Aegis) viaECIES X25519, triggering automatic Saga compensating rollbacks on denial. - Full OWASP Agentic AI Top 10 (
ASI01–ASI10) Coverage: Direct module-level mitigations mapped acrossSentry_Gateway/internal/.
📄 Academic Citation & Mathematical Specification
- Zenodo DOI: 10.5281/zenodo.19597120
- SSRN ID: 6612798
- Local Spec:
docs/MATTHEWS_ENFORCEMENT_FRAMEWORK.md
🚀 Quickstart Verification
cd Sentry_Gateway
# Run the automated Zero-Trust verification test suite
go test -v ./cmd/sentry ./internal/license ./internal/injection ./internal/semantic ./internal/gossip ./internal/output ./internal/canary
# Or boot the live standalone gateway on :8080 (zero external dependencies)
CICADA_DEV_MODE=true CICADA_SIMULATION_MODE=true go run ./cmd/sentry