Skip to content

v1.0.0 — Cicada: Zero-Trust Agent Gateway & Kernel Firewall (Apache 2.0)

Choose a tag to compare

@affinity-ops affinity-ops released this 15 Oct 16:44
· 30 commits to main since this release

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) with 19.01ms p95 end-to-end latency and <1ms standalone 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 in 310µs, drops the connection, and broadcasts an Ed25519 + NIST FIPS 204 ML-DSA-65 (Post-Quantum) quarantine packet across a sync/atomic.Pointer copy-on-write P2P Gossip Mesh (2µs read check).
  • 7-Stage Recursive De-Obfuscation & Vault-Aware Entropy DLP: Canonicalizes NFKC fullwidth/compatibility glyphs, zero-width characters, HTML entities, URL encoding, \xNN/\uXXXX escapes, and nested Base64 payloads on inbound prompts, paired with 22 secret prefixes, Shannon entropy (H(X) ≥ 4.3 bits/char), and multi-encoding Vault DLP on outbound requests.
  • Ephemeral Agent Kernel Firewall (eakfd): Isolates untrusted agent subprocesses over a UNIX Domain Socket inside a gVisor (runsc) / Kata sandbox and scrubs .tfstate secrets, RFC 1918 IPs, and cloud metadata from stdout/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) via ECIES X25519, triggering automatic Saga compensating rollbacks on denial.
  • Full OWASP Agentic AI Top 10 (ASI01–ASI10) Coverage: Direct module-level mitigations mapped across Sentry_Gateway/internal/.

📄 Academic Citation & Mathematical Specification

🚀 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