arXiv:2610.29155cs.NIOct 2026

Manuscript Offprint

arXiv:2610.29155

5uGUE: Agentic Hardware-in-the-Loop Fuzzing for 5G Devices and beyond

Guoqiang Hua, Sakshi Udeshi, Matheus Eduardo Garbelini, Daisuke Mashima, Sudipta Chattopadhyay

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Guoqiang Hua*†, Sakshi Udeshi†, Matheus Eduardo Garbelini†, Daisuke Mashima* and Sudipta Chattopadhyay‡

*Singapore University of Technology and Design (SUTD)

†Temasek Laboratories, Nanyang Technological University

‡University of Missouri-Kansas City

Email: guoqiang_hua@mymail.sutd.edu.sg§, {sakshi.udeshi, matheus.garbelini}@ntu.edu.sg, daisuke_mashima@sutd.edu.sg, sudiptac@ieee.org

Abstract—In this paper, we present 5UGUE, a large language model (LLM)-driven hardware-in-the-loop agent, which enables the wireless fuzzing of 5G-enabled devices (such as mobile phones). 5UGUE combines multi-step reasoning with tool-assisted interaction and integrates into the fuzzing pipeline by leveraging specialized tools for internet search, 5G protocol analysis, memory management, and test-case execution. The agent iteratively generates test cases, executes them on targets, collects runtime feedback, and adaptively refines the fuzzing strategy. We evaluate 5UGUE on five commercial off-the-shelf (COTS) 5G devices across six LLMs. The best performing runs for 5UGUE trigger 167 crashes in total (141 novel and 31 unique) within 60 interaction turns (49 to 133 minutes total runtime). In contrast, the best runs for the state-of-the-art baseline (5GHOUL) discovers only 13 crashes in total (10 novel and 6 unique) within 150 minutes. Overall, by integrating LLM-driven agents, 5UGUE demonstrates significantly better crash discovery performance (12.8× total, 5.2× unique improvement). Notably, among the crashes discovered by 5UGUE, MediaTek has confirmed two new high-severity vulnerabilities, with one CVE assigned (CVE-2026-20525), while UNISOC confirmed seven crashes. Finally, to demonstrate that 5UGUE is agnostic to wireless protocols, we also extend it to Bluetooth Classic with only minimal code changes. In our evaluations, 5UGUE finds an average of 6.4 novel crashes and 1.6 unique crashes. In a nutshell, 5UGUE highlights that LLM agents are capable to operate effectively beyond software-in-the-loop settings, extending autonomous vulnerability discovery to the proprietary, hardware-bound systems that affect billions of end-user devices across multiple wireless protocols.

I. INTRODUCTION

The security of 5G-enabled devices is a problem of enormous scale. By the end of 2025, there were an estimated 2.9 billion 5G subscriptions, accounting for one-third of all mobile subscriptions, and this is projected to reach 6.4 billion by 2031, or two-thirds of all mobile subscriptions [1]. Each of these devices relies on proprietary technologies processing untrusted over-the-air signaling, so a single class of vulnerability can impact a vast, rapidly growing population of users. Yet the black-box, hardware-bound nature of these devices makes them difficult to analyze at scale, leaving this critical attack surface comparatively underexplored in the context of offensive security.

Test Case Execution — Feedback

Figure

Fig. 1. 5UGUE with respect to state-of-the-art approaches

Large Language Models (LLMs) have demonstrated strong capabilities in code generation, program analysis, and vulnerability discovery. While agentic systems enhance these capabilities through autonomous task execution, existing LLM-based agents are predominantly designed for software-in-the-loop settings [2], [3]. These software-in-the-loop agents often have source code access, coverage and feedback to steer the fuzzing. This is in contrast to real-world wireless systems (such as the 5G baseband devices), where analysis mostly needs to be performed in black-box settings on proprietary hardware. As a result, this rapidly growing attack surface remains out of reach for state-of-the-art fuzzing agents and applying LLM-based agents to wireless 5G security analysis remains an open, active and emerging space of work.

To address this gap, we propose 5UGUE 1^{1}, an autonomous hardware-in-the-loop agent that fuzzes commercial-off-the-shelf (COTS) 5G devices over the air (OTA). Though we have developed 5UGUE primarily for the 5G protocol, the agentic loop makes no protocol-specific assumptions. To showcase this, we extend 5UGUE to Bluetooth Classic (BT) by making minimal procedural code changes (see Section VII-C). We view the state of fuzzing through three paradigms (Figure 1):

§ Corresponding author.

1^{1}Pronounced “fugue”; a play on 5G and User Equipment (UE), and a nod to the fugue state the 5UGUE agent induces in 5G devices

• Bespoke and conventional fuzzing is fully directed by the creators of the system. Usually, a custom engine [4], [5], [6], [7] mutates an initial seed corpus or manipulates communication on-the-fly with certain heuristics. Coverage and crash feedback are then looped back into the mutator. While such systems have shown promising outcomes in the form of discovering new vulnerabilities, they are pre-encoded by human experts.

• LLM-assisted fuzzing inserts an LLM as a component, not a strategist. The LLM is typically leveraged to strengthen a single constituent element of the fuzzing pipeline e.g., to generate seeds [8], mutate inputs as per a specification [9] or guide the existing fuzzing setup [10]. The model sharpens parts of the fuzzing workflow but it does not see, or steer the entire fuzzing loop.

  • In contrast, 5UGUE casts the LLM as a strategist with visibility over the full fuzzing loop. The agent sources the initial seeds, plans tests, executes these tests on a COTS 5G or BT device over the air, observes the resulting logs and possibly crash signals, reasons over it, and determines what to try next, all while having the ability to adapt the strategy based on data through modular tools (See Figure 1: Agentic Fuzzing). The 5UGUE agent orchestrates the full fuzzing loop without any human intervention.

This work makes the following contributions:

• The first agentic, hardware-in-the-loop fuzzing framework for COTS 5G devices: We design and implement 5UGUE. To the best of our knowledge, this is the first agentic fuzzing framework that operates directly on COTS 5G devices. We create an extensible and modular architecture. All the capabilities (e.g., exploit execution, memory, web/literature search) are self contained tools that can be added and removed with minimal effort, making 5UGUE easy to extend and ablate.

• Evaluations: We evaluate 5UGUE along multiple axes. Specifically,

  1. Tooling: We evaluate three progressively improved 5UGUE versions and show that adding specific tools enhances fuzzer performance in discovering modem crashes.

  2. Models: We demonstrate 5UGUE is LLM-agnostic by using six state-of-the-art LLMs.

  3. Generality: We fuzz five COTS 5G devices showcasing 5UGUE's generality and real world performance.

  4. Protocol Extensibility: We extend and evaluate 5UGUE beyond 5G to Bluetooth Classic (BT) by making only minimal code changes (i.e. modifying the exploit tool and prompts).

5UGUE demonstrates significantly better crash discovery performance. Specifically the best 5UGUE runs discover 12.8× the total crashes over the best state-of-the-art baseline runs (see Section VII).

• Confirmed Vulnerabilities: We have evaluated phones across two modem vendors, and both vendors have confirmed our findings. As of today, MediaTek has confirmed two new high-severity vulnerabilities, with one CVE assigned (CVE-2026-20525). For the UNISOC target, for which no public information is available, the vendor confirmed the validity of seven crashes discovered by 5UGUE.

• Interactive Dashboard: We release an interactive dashboard cataloging every test run for our evaluations, to aid the transparency and reproducibility of our framework. This dashboard can be found at:

https://5ugue-evaluations.pages.dev

References (51)