Kernel-Bypass Security Engine • Driver XDP Hook • Zero-Copy UMEM

Aethon: High-Throughput eBPF/AF_XDP Security Plane & TLS Reverse Proxy

A dual-plane network engine written in C++20 for Linux kernels. Ingests raw frames directly from physical NIC queues into user space via AF_XDP zero-copy memory rings, executes cryptographic TLS termination, inspects decrypted payloads against Snort/Suricata rules with Intel Hyperscan, and terminates attacks via in-place hardware TCP RST injection.

Packet Ingestion
Zero-Copy DMA
Bypasses Linux SKB allocation
Kernel Processing
< 15 ns / pkt
Driver-level eBPF XDP hook
DPI Engine
Intel Hyperscan
Single-pass multi-pattern DFA
Threat Mitigation
Active TCP RST
In-place L2/L3/L4 wire injection
System Design

Dual-Plane Memory & Execution Topology

Separation of kernel-space packet arbitration and user-space layer-7 state machines.

 [ Physical / Virtual NIC: veth0 ]
                 │
 ┌───────────────▼────────────────────────────────────────────────────────┐
 │ KERNEL SPACE: eBPF / XDP Driver Hook (src/main/xdp_kern_prog.c)        │
 │                                                                        │
 │  1. Parse Ethernet + IPv4 Header                                       │
 │  2. IP Blocklist Check (BPF_MAP_TYPE_HASH: aethon_ip_blocklist)        │
 │     └─ Hit: Return XDP_DROP (Zero CPU overhead)                        │
 │  3. Token-Bucket Rate Limiter (BPF_MAP_TYPE_PERCPU_HASH)               │
 │     └─ Exceeded: Return XDP_DROP                                       │
 │  4. Route to Core Queue via BPF Sockmap (aethon_xsks_map)              │
 │     └─ Return bpf_redirect_map(&aethon_xsks_map, queue_id, 0)          │
 └───────────────┬────────────────────────────────────────────────────────┘
                 │ (Zero-Copy DMA via AF_XDP UMEM Ring Buffers)
 ┌───────────────▼────────────────────────────────────────────────────────┐
 │ USER SPACE: Multi-Threaded Engine (src/main/afxdp_control.cpp)         │
 │                                                                        │
 │  Worker Threads Pinned to Cores [Core 1, Core 2, Core 3, Core 4]       │
 │   ├─ Rx Ring Poll & UMEM Frame Dequeue                                 │
 │   ├─ TCP Sequence Reassembly (src/main/tcp_assembler.cpp)              │
 │   ├─ TLS 1.2/1.3 Termination & SNI Router (src/main/tls_engine.h)      │
 │   │   ├─ ClientHello SNI Match: auth.mydomain.com -> Backend Port 5000 │
 │   │   ├─ ClientHello SNI Match: admin.mydomain.com -> Backend Port 6000│
 │   │   └─ ClientHello SNI Match: api.mydomain.com   -> Backend Port 8080│
 │   ├─ Deep Packet Inspection (Intel Hyperscan Single-Pass DFA)          │
 │   │   ├─ Signature Match: SID 2014910 (MySQL Dump Injection)           │
 │   │   ├─ Signature Match: SID 2100681 (xp_cmdshell Execution)          │
 │   │   └─ Signature Match: SID 1001    (/etc/passwd Traversal)          │
 │   │                                                                    │
 │   └─ Decision Path:                                                    │
 │       ├─ [CLEAN] Forward decrypted stream to Target Backend Port       │
 │       └─ [MALICIOUS] Craft L2/L3/L4 TCP RST in UMEM & TX to Attacker  │
 └────────────────────────────────────────────────────────────────────────┘
        
Execution Trace

Live Multi-Port Reverse Proxy & Attack Neutralization

Captured execution output from running the integrated test suite against multi-port backend services.

aethon-test-runner • AF_XDP veth0 • Target: 192.168.50.1:443 STATUS: ACTIVE
[MULTI-BACKEND] Services active on 127.0.0.1:[5000, 6000, 8080]
[SERVICE 1: auth.mydomain.com -> Port 5000]
• Clean TLS Traffic: POST /api/v1/auth/login {"user":"alice","pass":"secret"}
• Result: [PASS] HTTP 200 OK received from Backend :5000
• Attack Injected: SQLi (mysql.user table dump)
• Engine Action: Hyperscan SID 2014910 caught payload -> In-place TCP RST injected
• Result: [PASS] Attack neutralized, backend protected
[SERVICE 2: admin.mydomain.com -> Port 6000]
• Clean TLS Traffic: GET /admin/dashboard
• Result: [PASS] HTTP 200 OK received from Backend :6000
• Attack Injected: RCE (xp_cmdshell system execution)
• Engine Action: Hyperscan SID 2100681 caught payload -> In-place TCP RST injected
• Result: [PASS] Attack neutralized, backend protected
[SERVICE 3: api.mydomain.com -> Port 8080]
• Clean TLS Traffic: GET /api/v1/products?limit=10
• Result: [PASS] HTTP 200 OK received from Backend :8080
• Attack Injected: Path Traversal (GET /../../../../etc/passwd)
• Engine Action: Hyperscan SID 1001 caught payload -> In-place TCP RST injected
• Result: [PASS] Attack neutralized, backend protected
Policy & Rules

Configuration Formats

Native Snort/Suricata signature definitions and TLS multi-port upstream service maps.

rules/services.conf (TLS SNI Routing Map)
auth.mydomain.com   127.0.0.1 5000
admin.mydomain.com  127.0.0.1 6000
api.mydomain.com    127.0.0.1 8080
secure.internal     127.0.0.1 8443
mydomain.com        127.0.0.1 8080
          
rules/test_rules.rules (Snort / Suricata DPI Rules)
alert tcp any any -> any any (msg:"AETHON ATTACK /etc/passwd Detected"; content:"/etc/passwd"; sid:1001; rev:1;)
alert tcp any any -> any any (msg:"AETHON ATTACK MySQL Dump Detected"; content:"mysql.user"; sid:2014910; rev:2;)
alert tcp any any -> any any (msg:"AETHON ATTACK xp_cmdshell"; content:"xp_cmdshell"; sid:2100681; rev:3;)
          
Reproduction

Build & Run Verification

Commands to compile the eBPF bytecode, initialize interfaces, and run the pipeline.

1. Compile Userspace Binary and eBPF Object
cmake -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build -j$(nproc)
2. Setup Virtual Ethernet Pair (192.168.50.1 • 192.168.50.2)
sudo ./veth0.bash
3. Start Aethon Engine on Interface veth0
sudo ./build/src/afxdp_control veth0
4. Execute Multi-Port Functional Test Suite
./tests/run_tests.sh 15