Idle Edge PEP < 1.5 ms, 0% application CPU under PHP2Shell burst (5.81 W vs 24.14 W), C2 neutralization, and one-click CSRD reporting
1. Genesis: Why We Built Aegis
The State of Modern Cybersecurity: Overpriced, Opaque, and Energy-Heavy
In today’s digital landscape, cybersecurity suffers from fundamental systemic contradictions:
- Excessive Complexity and High Costs: Enterprise security solutions (hyperscaler WAFs, managed SOCs, heavy EDRs) are designed for multinational corporations with dedicated SecOps teams. For SMBs, startups, and independent business owners, these tools are either financially out of reach or bewildering to manage, leaving hundreds of thousands of internet-exposed applications unprotected.
- The LLM Illusion & Energy Waste: To filter logs and triage common attacks, the market has pivoted heavily toward power-hungry “generative AI” models running on large GPU clusters. Each inference burns hundreds of Joules, adds 200ms of request latency, and frequently routes confidential visitor data to third-party offshore datacenters.
- The Unrelenting Background Noise of the Web: As documented in our research article Anatomy of a VPS Under Continuous Assault, any internet-facing server faces over 15,000 hostile probes every day (automated botnets, PHP-CGI exploits, WordPress scans,
.envfile hunters). Without edge protection, this malicious noise constantly wakes the CPU, exhausts server resources, and drives up cloud hosting bills and carbon footprints.
The Aegis Mission
Our conviction at AIVO Agency: cybersecurity and green software engineering must be accessible to every organization, from a local business website to an enterprise-grade Kubernetes cluster. Companies should no longer be left in the dark by confusing jargon: they deserve a single pane of glass showing exactly which vulnerabilities their software versions and configurations are exposed to, accompanied by an automated shield that neutralizes threats with near-zero energy consumption.
To fulfill this vision, we created Aegis (GitHub Repository: aivo-labs/aegis), an open source project designed from day one around mathematical frugality, digital sovereignty, and operational clarity.
+-------------------------------------------------------------------------------------------------------+
| AEGIS ZERO-TRUST ARCHITECTURE ECOSYSTEM |
+-------------------------------------------------------------------------------------------------------+
| INCOMING TRAFFIC (INGRESS) |
| [ Scanners / Bots ] [ Zero-Day Exploits (PHP2Shell) ] [ Legitimate Users ] |
+-------------------------------------------------------------------------------------------------------+
|
v
+-------------------------------------------------------------------------------------------------------+
| 1. AEGIS GATE PEP (PASS-THROUGH / FORWARDAUTH < 1MS) |
| • Shannon Entropy Filtering (20 µs): Detects obfuscation without heavy GPU AI |
| • Volumetric Virtual Patching (RFC HTTP 413): Memory firewall preventing payload buffer overflows |
| • OWASP Top 10 & Signature Virtual Patching (CVE-2024-4577, SQLi, SSRF, RCE, Path Traversal) |
| • Pure BFF Token Handler: 100% elimination of OIDC/JWT tokens from the client browser |
+-------------------------------------------------------------------------------------------------------+
| |
| (Blocked HTTP 403 / 413) | (Clean Verified Request)
v v
+-----------------------------+ +-----------------------------+
| 0% CPU ON APPLICATION HOST | | PROTECTED APPLICATION HOST |
| Execution stopped at edge | | PHP-FPM / Node / Go / Python|
+-----------------------------+ +-----------------------------+
|
v (Outbound Traffic)
+-------------------------------------------------------------------------------------------------------+
| 2. AEGIS EGRESS GATEWAY (DNS SINKHOLE & ANTI-EXFILTRATION C2 :5053) |
| • Real-time DNS query interception & DGA (Domain Generation Algorithm) anomaly detection |
| • Instant blocking of post-compromise C2 beacons, botnets, and reverse shells |
+-------------------------------------------------------------------------------------------------------+
|
v
+-------------------------------------------------------------------------------------------------------+
| 3. UNIFIED SOC COCKPIT & GREENOPS (aegis.aivo.fr/app) |
| • Direct physical energy telemetry in Joules & Watts via Intel/AMD RAPL hardware registers and eBPF |
| • Live shield toggle, interactive CVE Feed mapping, and server fleet inventory |
| • One-click CSRD & ESG Scope 2 PDF/CSV audit certificates compliant with European sustainability norms|
+-------------------------------------------------------------------------------------------------------+
2. Solution Overview: Comprehensive Defense Without Operational Headaches
Aegis unites four core engineering pillars within an intuitive experience:
A. Ingress PEP Shield & Instant Virtual Patching
Positioned directly in front of client applications (via Traefik ForwardAuth or as an ultra-fast transparent reverse proxy), Aegis Gate PEP analyzes each request in less than one millisecond:
- Mathematical Filtering with Shannon Entropy: Rather than invoking heavy neural networks, Aegis computes statistical byte dispersion in 20 microseconds to instantly spot obfuscated attack payloads. Learn more in our article: Mathematics Against Malware: Shannon Entropy and Frugal Zero-Trust Decision Engine.
- Zero-Day Virtual Patching: When critical vulnerabilities emerge (such as the PHP2Shell RCE CVE-2024-4577), Aegis enforces immediate edge mitigation. Vulnerable applications are shielded before developers even have time to patch their underlying runtimes.
- Volumetric Defense (RFC HTTP 413): Over-sized malicious payloads are rejected before memory allocation, preventing server resource exhaustion.
B. Pure BFF Architecture: Zero Tokens in the Browser
Modern single-page applications often store sensitive tokens (access_token, refresh_token) in browser localStorage or JavaScript-readable cookies, exposing them to XSS attacks and supply chain vulnerabilities.
Aegis follows the strictest standard recommended by the IETF: the Pure BFF Architecture with Token Handler.
- The browser handles zero JWT tokens. It only holds an encrypted,
HttpOnly,SameSite=Lax,Securesession cookie. - The backend BFF manages and refreshes OIDC tokens in a sealed environment.
- Read our in-depth architecture guide on our blog: Pure BFF Architecture & Token Handler: The Ultimate OIDC Security Guide for SPAs, and inspect our standalone repository: pure-bff-token-handler-starter on GitHub.
C. Egress Gateway: Blocking Data Exfiltration & C2 Callbacks
When an attacker manages to exploit an unpatched legacy script, their next priority is almost always opening an outbound channel to a Command & Control (C2) server or exfiltrating .env secrets.
Aegis includes an Egress DNS Sinkhole (:5053) that inspects all outbound DNS queries from client containers:
- Evaluates domain entropy to block automated DNS tunneling.
- Sinks known malicious botnet and reverse-shell endpoints.
- Even if an internal script is breached, data cannot leave the private boundary.
D. True Physical Energy Telemetry (RAPL & GreenOps)
Unlike conventional carbon estimators relying on monetary ratios (e.g. cloud spending multiplied by generic averages), Aegis reads real physical energy counters directly from hardware CPU registers via Intel/AMD RAPL (Running Average Power Limit) and the Linux kernel via eBPF (Kepler).
- Real Joules and Watts: Track actual energy consumption across production workloads with CSRD Scope 2 PDF & CSV exports.
- Hardware-Measured Proof (
CVE-2024-4577PHP2Shell Burst): On an Nginx + PHP-FPM 8.3 + Node.js stack measured directly via/sys/class/powercap/intel-rapl:0and/proc/stat, Aegis blocks 100% of 602 attack requests (HTTP 403,17.33 msavg under burst,< 1.5 msidle) while keeping PHP-FPM at0%CPU, at just5.81 Waverage (16.01 Wpeak,101.04 Jtotal). With the shield disabled,126exploits execute (HTTP 200), driving PHP-FPM to537.98%avg (743.4%peak) CPU and pushing processor draw to24.14 Waverage (37.58 Wpeak,438.91 Jtotal) — representing +315.5% higher average Watts and 4.34× more total energy wasted (2619.57 msavg latency). - Dive into our physical methodology: Physical RAPL Measurement vs. Monetary Ratios: Why Traditional Carbon Reporting Lies.
3. The Unified SOC Cockpit: Security Made Understandable
To enable business owners and CTOs to supervise their security posture without requiring a dedicated SecOps team, the Aegis Cockpit (aegis.aivo.fr/app) brings clarity to complex data:
- Intuitive Overview: One-click Shield toggle (Active / Disabled), live blocked request volume, and aggregate fleet power draw.
- Turnkey Node Enrollment: Add a new server in a single bash command (
curl -fsSL https://aegis.aivo.fr/install.sh | bash), whether deployed on OVHcloud, Scaleway, Oracle Cloud (OCI), or on-premise hardware. - Software Versioning & Live CVE Feed: Real-time tracking of known vulnerabilities affecting running stacks (PHP, Node, Nginx, Linux), with clear indicators showing whether the flaw is shielded by Aegis Virtual Patching and actionable remediation advice.
- CSRD & ESG Certificate Generator: Export auditable PDF and CSV reports compliant with European sustainability reporting standards (Scope 2, PUE, carbon intensity, cooling water footprint).
4. Unified Technical Roadmap & Future Evolutions
Rather than publishing speculative calendar promises, Aegis tracks progress strictly by verified codebase status and priority tier (✅ Delivered, 🚧 Partial, ⏳ P0–P3) — synchronized 1-to-1 with our Technical Roadmap on GitHub:
✅ v1 / v1.1 Base Delivered in Production
The open-source foundation is already active and verifiable: Ingress PEP WAF + PHP2Shell Virtual Patch (HTTP 413 / 0% app CPU under burst), Pure BFF Token Handler (Keycloak, Authelia, Okta, or standalone mode), Egress DNS Sinkhole :5053 (Shannon DGA entropy H > 4.2 + static CTI blocklist + optional air-gapped Nimble 9B SLM via Ollama), Hardware RAPL Telemetry & CSRD PDF/CSV exports, and the Unified SOC Cockpit with on-demand Go 1.25 Passive Scanner, NIST FIPS 203 (X25519MLKEM768) Post-Quantum probe & CVE Feed.
🔥 Phase P0 / P1 — Perimeter Hardening, Egress Confinement & Continuous Posture (Locks #1–#5)
- Strict Egress Network Confinement (
P0, ⏳) : Complete Docker isolation on aninternal: truebridge paired with a kernelcgroup/connect4probe blocking raw-IP TCP reverse shells that attempt to bypass DNS. - Multi-Encoding Normalization, Rate-Limiting & Anti-Spawn (
P1, 🚧 Partial) : Expanding the canonicalizer (gate-proxy) with automatic Base64, Hex, and HTML entity decoding, adding sliding-window IP rate limiting (60 req/10s) with automatic quarantine, enforcingHTTP 431header caps (8 KB), RFC multipart validation, and host runtime/bin/shspawn alerts. - Continuous Passive Posture, Post-Quantum Probe (
ML-KEM) & Guided Remediation (P1, 🚧 Partial) : Our Go 1.25 passive scanner already audits NIST FIPS 203 (X25519MLKEM768) Post-Quantum TLS 1.3 readiness against Harvest Now, Decrypt Later (HNDL) exposure and emits copy-paste remediation snippets (Traefik, Nginx, Caddy, Go); next steps add scheduled cron audits and expand the remediation wizard across all HTTP headers andphp.ini/ Apache settings.
🛡️ Phase P2 — Linux Kernel Defense, Frugal Rust Endpoint Agent & ZTNA (Locks #6–#9)
- L3/L4
eBPF / XDPKernel Filter & Kernel Watch (P2, ⏳) : Hardware-speed NIC packet dropping (XDP_DROP< 0.005 ms) for crafted TCP SYN options before Linux kernel allocation, paired with proactiveuname -rkernel CVE drift alerts. - Enterprise DNS Filtering & Shadow IT Governance (
P2, ⏳) : Centralized DHCP/:5053and remote DoH/DoT resolver regulating unauthorized remote-access tools (TeamViewer, AnyDesk, RustDesk) in Prod/DMZ zones. - Frugal Rust Endpoint Agent (
< 10 MB RAM), Post-QuantummTLS& “Assume Breach” ZTNA (P2, ⏳) : Cross-platformaegis-node-agentcollecting local CVE and OS hygiene state over a hybrid post-quantummTLSchannel (X25519MLKEM768) to enforce conditional Pure BFF access, combined with strict office-to-production L3 micro-segmentation and internal ARP/port-scan honeypot alerts.
🤖 Phase P3 — AI Security, “Two-Door” MCP Gateway & Collaborative CTI (Locks #10–#12)
- “Two-Door” AI Governance & Outbound “Zero-Secret Placeholder” Injection (
P3, ⏳) : Edge interception (gate-proxy) of Prompt Injections and Jailbreaks, paired with the Zero-Secret Placeholder pattern inegress-gateway: the AI agent runtime holds zero real API keys in memory; the outbound gateway scrubs regulated PII (GDPR) on the fly and injects real external API credentials strictly at the network egress boundary after policy validation. - Zero-Trust MCP Gateway (Per-Identity Tool Filtering) & Post-Quantum AI Act Ledger (
P3, ⏳) : Native inspection of Model Context Protocol (tools/list&tools/call) JSON-RPC traffic by OIDC/SPIFFE identity, ephemeral Linux kernel sandboxing (seccomp,eBPF, namespaces), and an append-only audit ledger sealed with a hybrid post-quantum dual signature (Ed25519 + ML-DSA— NIST FIPS 204) aligned with European AI Act governance requirements. - Collaborative P2P CTI & Sub-1B CPU-Only Micro-SLMs (
P3, 🚧 Partial) : Evolving beyond our v1 static blocklist and optional Nimble 9B (Ollama) integration toward automated live feeds (Abuse.ch, CERT-FR, CISA KEV), sovereign peer-to-peer threat reputation sharing across Aegis nodes, and air-gapped sub-1B parameter micro-SLMs running strictly on CPU without GPUs.
5. Summary & Key Takeaways
Aegis demonstrates that organizations do not have to choose between blazing performance, hardened enterprise security, and environmental responsibility:
- For SMBs & Scale-Ups: A 5-minute setup that brings immediate compliance with NIS 2 directives without enterprise pricing.
- For Technical Leaders & Architects: A clean, modular Go and TypeScript architecture built on SOLID principles and fully auditable open-source code.
- For the Planet: The elimination of useless computing cycles wasted on hostile traffic, aligning digital transformation with sustainability goals.
Explore the Code & Publications
- Interactive Sandbox & PHP2Shell Hardware Replay: demo.aegis.aivo.fr
- Aegis GitHub Repository: github.com/aivo-labs/aegis
- Full Technical Roadmap (Locks #1–#12): ROADMAP.md on GitHub
- Pure BFF Starter Repository: github.com/aivo-labs/pure-bff-token-handler-starter
- KubeCon + CloudNativeCon Europe CFP: “Hardening Agentic AI at the Edge: Zero-Trust Gateways and Air-Gapped Decision SLMs” — Nicolas BAUD on Sessionize
- Research Articles & Benchmarks:
- Post-Quantum Cryptography (ML-KEM) & ‘Two-Door’ MCP AI Governance
- Mathematics Against Malware: Shannon Entropy and Frugal Zero-Trust Decision Engine
- Pure BFF Architecture & Token Handler: The Ultimate OIDC Security Guide for SPAs
- Physical RAPL Measurement vs. Monetary Ratios: Why Traditional Carbon Reporting Lies
- Anatomy of a VPS Under Continuous Assault: What Automated Scanners Reveal
Need a Similar Solution?
Let's discuss how we can engineer a custom solution for your organization.