Mitigating Nested GTP Attacks: A Closed-Loop eBPF Defense for 5G and Beyond Networks
Abstract
The evolving cellular networks continue to rely on the legacy GPRS Tunneling Protocol-User Plane (GTP-U) to encapsulate and route user data traffic across the data plane. Recent security research demonstrated that nested GTP-U (GTP-in-GTP) payload vulnerabilities enable a diverse range of attacks on victim users. To address this vulnerability, in this paper, we propose a closed-loop extended Berkeley Packet Filter (eBPF) and eXpress Data Path (XDP) defense to detect and mitigate nested GTP-U attacks in 5G and beyond networks. The proposed framework contains three components: an in-kernel XDP Detection and Drop Module (XDP-DDM), a user-space User-Plane Telemetry Agent (UP-TA), and a multi-threaded Control-Plane Mitigation Orchestrator (CP-MO). We implement and evaluate the proposed defense on a sliced 5G testbed integrating Free5GC, UERANSIM, and Containerlab. Experimental results indicate that the XDP-DDM detects and drops malicious nested GTP-U packets at line rate, while the UP-TA and CP-MO asynchronously report and revoke the attacker's network access, respectively. Under a 10,000 packets-per-second cross-slice nested GTP-U flood, the proposed solution preserves the baseline performance of the victim slices while introducing minimal overhead. We also show that the proposed solution has minimal impact on the user's throughput and round-trip time.