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.
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 │
└────────────────────────────────────────────────────────────────────────┘
Captured execution output from running the integrated test suite against multi-port backend services.
Native Snort/Suricata signature definitions and TLS multi-port upstream service maps.
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
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;)
Commands to compile the eBPF bytecode, initialize interfaces, and run the pipeline.
cmake -B build -DCMAKE_BUILD_TYPE=Release cmake --build build -j$(nproc)
sudo ./veth0.bash
sudo ./build/src/afxdp_control veth0
./tests/run_tests.sh 15