Manuscript Offprint
arXiv:2611.03854Towards Effective Fuzzing of EDK2 Components
DATTA MANIKANTA SRI HARI DANDURI, CONNOR EVERETT GLOSNER, and ARAVIND MACHIRY, Purdue University, USA
Securing bootloaders is critical to establishing the trusted computing base of modern systems. TianoCore's edk2, the de facto Unified Extensible Firmware Interface (UEFI)-based bootloader, is widely deployed but has recently been shown to contain numerous high-severity vulnerabilities. Existing approaches either focus on post-boot interfaces or rely on heavyweight simulation, limiting their scalability, throughput, and coverage of boot-time components.
We present Metis, an automated technique for fuzzing edk2 protocols (i.e., boot-time interfaces) via rehosting as a user-space applications. Our key insight is that effective fuzzing must exercise not only protocol interfaces but also their dependency interactions, which serve as additional input channels. Metis employs a Direct-dependency Component Rehosting (DCR)-based strategy to construct semantically meaningful mocks for dependencies, enabling controlled input injection across all channels. It further leverages a hybrid approach combining static analysis and Large Language Model (LLM)-guided synthesis to generate and refine fuzzing harnesses. We implement Metis on Host Based Firmware Analyzer (HBFA) framework and evaluate it on 60 drivers covering 162 protocols. Metis achieves higher coverage (73.1%, ~1.7× improvement over FuzzUEr the state-of-the-art EDK2 fuzzing technique), and discovers 137 previously unknown bugs. We have already reported 26 of them, including 12 that are remotely triggerable, and all reported vulnerabilities have been acknowledged by the vendors.
ACM Reference Format:
Datta Manikanta Sri Hari Danduri, Connor Everett Glosner, and Aravind Machiry. 2018. Towards Effective Fuzzing of EDK2 Components. In Proceedings of Make sure to enter the correct conference title from your rights confirmation email (Conference acronym 'XX). ACM, New York, NY, USA, 20 pages. https://doi.org/XXXXXXX.XXXXXXX
Vulnerabilities in EDK2 can have severe consequences, enabling bootkits [19, 33] and other persistent attacks [20] that remain resilient even after reinstallation of the Operating System (OS). Given its widespread deployment and critical role in establishing a trusted computing base, securing EDK2 is of paramount importance. However, the current state of EDK2 is concerning. Recent exploits [4, 8, 19, 33] have demonstrated the prevalence of severe vulnerabilities across various EDK2
Authors' Contact Information: Datta Manikanta Sri Hari Danduri, ddanduri@purdue.edu; Connor Everett Glosner, cglosne@purdue.edu; Aravind Machiry, amachiry@purdue.edu, Purdue University, West Lafayette, Indiana, USA.
Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than the author(s) must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from permissions@acm.org.
Conference acronym 'XX, Woodstock, NY
© 2018 Copyright held by the owner/author(s). Publication rights licensed to ACM.
ACM ISBN 978-1-4503-XXXX-X/2018/06
https://doi.org/XXXXXXX.XXXXXXX components, commonly referred to as protocols. The absence of widely adopted exploit mitigation mechanisms, such as Address Space Layout Randomization (ASLR) [31], further exacerbates the problem, making these vulnerabilities easier to exploit in practice.
Dynamic analysis, particularly fuzz testing [17], has proven effective in uncovering vulnerabilities in complex software systems. Prior fuzzing efforts [3, 7, 11, 27, 43, 45, 46] targeting EDK2 have largely focused on post-boot interfaces, especially System Management Interrupt (SMI) [22] handlers, due to their well-defined invocation mechanisms. Existing efforts to test arbitrary EDK2 protocols remain limited in scope, often focusing on identifying and analyzing isolated components. While such approaches are effective for relatively self-contained libraries, extending them to arbitrary EDK2 components with intricate dependencies requires substantial manual effort and is often impractical.
To address this, prior works such as Yang et al. [45] and FuzzUEr [11] attempt a whole-system approach by executing the entire firmware image within a simulator and triggering individual components. However, these approaches rely heavily on the availability of high-quality fuzzing harnesses. Furthermore, the lack of sanitizers (e.g., Address Sanitizer (ASAN) [30], Undefined Behavior Sanitizer (UBSan) [16, 34]) in the boot environment further hinders bug detection. The recent work, FuzzUEr, addressed these issues by designing an automated harness generation technique and implementing partial ASAN support. However, these harnesses fail to comprehensively capture the diverse input mechanisms of EDK2 protocols. Consequently, as we demonstrate in § 5, they are ineffective at thoroughly exercising and testing them. Finally, adding support for additional sanitizers, such as UBSan, requires significant engineering effort.
In this paper, we present METIS, an automated fuzzing framework for arbitrary EDK2 protocols. Inspired by recent techniques [28, 36, 37], our approach rehosts EDK2 protocols as user-space applications, enabling the use of existing fuzzing tools (e.g., AFL++ [10]) and sanitizers without requiring any modifications. However, existing rehosting approaches are ineffective when applied to EDK2 protocols. Our key observation is that EDK2 protocols can be exercised through two primary interaction mechanisms: (i) their interface functions and (ii) their dependencies on other protocols and libraries. To address this, we design a DCR technique that rehosts arbitrary EDK2 protocols by constructing appropriate mocks for their direct dependencies. These mocks not only emulate the required execution environment but also provide controlled input channels through dependency interactions. In addition, we generate harnesses that systematically translate fuzzer inputs into well-formed invocations of protocol interfaces. METIS operates in two phases: Rehosting and Fuzzing. In the rehosting phase, METIS leverages a combination of static analysis and LLM-based synthesis to automatically generate harnesses and mocks. It then composes the target protocol, generated harnesses and mocks, and a runtime library that emulates essential EDK2 services using standard Linux abstractions into a standalone user-space executable, referred to as EDK2 test application or EA. We also use a dynamic refinement technique to improve the harnesses and mocks using a small testing loop. In the fuzzing phase, METIS executes EA using, AFL++, the state-of-the-practice coverage-guided fuzzer. It further incorporates automated crash deduplication and filtering to eliminate false positives (e.g., those arising from imprecise mocks), and reports validated bugs.
We evaluate METIS on 162 EDK2 protocols containing 14 previously known bugs. Our results show that METIS achieves an average of 73.1% code coverage, providing a 1.7× improvement over FuzzUEr. Moreover, METIS discovers 137 previously unknown bugs, which we are in the process of reporting, as creating a proof-of-concept (PoC) for each takes time. We have already reported 26 of them, out of which 12 are remotely triggerable, and all our reported vulnerabilities have been acknowledged by the vendors.
In summary, the following are our contributions:
- We design METIS, that uses DCR technique and enables fuzz testing of arbitrary EDK2 protocols by constructing user-space mocks for their direct dependencies.
- We developed techniques that combine static analysis with LLM-based synthesis to automatically generate test harnesses and dependency mocks. We further refine these artifacts using feedback from dynamic analysis.
- Our extensive evaluation on 162 EDK2 protocols containing 14 previously known vulnerabilities show that METIS significantly outperforms existing approaches, achieving an average of 73.1% code coverage.
- We discover 137 previously unknown bugs and have already reported 26 of them, including 12 that are remotely triggerable; all reported vulnerabilities have been acknowledged by the vendors.
2 Background and Notations
2.1 Unified Extensible Firmware Interface (UEFI)
The UEFI specification [42] defines a standardized software interface between platform firmware and the operating system. UEFI firmware executes in several phases: Security (SEC), Pre-EFI Initialization (PEI), Driver Execution Environment (DXE), Boot Device Selection (BDS), and Runtime [48]. UEFI exposes standardized interfaces through services (i.e., Boot Services and Runtime Services) and protocols. A protocol in UEFI is a named interface, defined as a C structure (interface structure) of function pointers (referred to as interface functions) and identified by a 128-bit GUID. Any component (e.g., a driver) can install a protocol using InstallProtocolInterface or InstallMultipleProtocolInterfaces boot services. Similarly, components can discover and use protocols via services such as LocateProtocol, OpenProtocol, and HandleProtocol. For example, the DHCP driver opens the UDP protocol with OpenProtocol.
2.2 EDK2
TianoCore EDK2 [39] is the reference open-source implementation of UEFI firmware. It comprises over 1.2 million lines of C code [5] organized into packages, each containing multiple components, i.e., drivers and library classes. The implementation of each protocol may depend on other protocols and libraries, and interact with them through UEFI event callbacks.
2.2.1 PROTOCOL INTERACTIONS. EDK2 protocols interact with other protocols and UEFI entities primarily through the following mechanisms.
- UEFI Services. Protocols invoke UEFI services. For example, the DHCP driver calls gBS->RaiseTPL and gBS->OpenProtocol, where gBS is the global variable pointing to the boot services.
- Protocol Dependencies. Protocols may depend on other protocols, either directly or transitively, to implement their functionality. For instance, the DHCP protocol implementation depends on the UDP protocol (gEfiUdp4ProtocolGuid).
- UEFI Events. UEFI supports asynchronous interactions through event callbacks. Protocols may create or register events, enabling deferred or periodic execution. For instance, the DHCP driver registers an event callback through the function UdpIoRecvDatagram.
- Libraries. EDK2 introduces modularity through library classes, which are abstract interfaces whose concrete implementations are selected at build time via the platform's DSC (Description) file. Protocols may rely on such libraries to implement core functionality.
2.2.2 Notations and Definitions. We use the following notations and definitions to describe the key entities in our approach:
-
Component and Protocols. We use the term component to denote a self-contained software module, such as a driver or library. Each component may implement and install one or more protocols. We use to denote the target protocol under test, and to denote the component that implements this protocol.
-
Interface Functions: The set of all interface functions of is represented by . Individual interface functions are denoted using superscripts; e.g., and represent two distinct interface functions of . For instance, , as it is an interface function for the protocol.
-
Interface Dependencies: Interface functions within a protocol may exhibit ordering dependencies. In particular, certain functions must be invoked before others to ensure correct execution; otherwise, functions may exit early. For example, the DHCP protocol requires the Configure function to be called before any other interface function. We use to denote the dependencies between interface functions, i.e., is the set of interface functions in (or empty set) which should be called before .
-
Protocol and Component Dependencies: We use to denote the set of all dependencies of protocol . Dependencies at a specific level are denoted using superscripts. For instance, represents the set of direct (Level 1) dependencies of , while represents its Level 2 dependencies. All dependencies of a target component are inherited by the protocols it implements.
-
Harness and Mocks: We use to denote the fuzzing harness for protocol . The harness consumes input data (, from standard input) and invokes the interface functions of accordingly. Similarly, we use to denote the mock for protocol , i.e., a semantically equivalent implementation of which uses input data to provide the output.
2.3 Rehosting
Rehosting [9] a bootloader, or more generally, firmware, refers to executing it in a non-native environment, typically within a virtualized or user-space setting.
2.3.1 Host Based Firmware Analyzer (HBFA). HBFA [40] is an open-source framework for fuzzing UEFI components in user space by rehosting EDK2 modules using host-side toolchains and stub libraries (HostLibs) that map UEFI services to POSIX equivalents. However, HBFA provides limited support for EDK2 libraries: many stubs are empty or fail to preserve semantics. Additionally, all protocol dependencies must be resolved at link time, requiring developers to manually implement mocks for each dependency.
As a result, HBFA is primarily used to reproduce known vulnerabilities at the function level, with mocks created reactively for known CVEs rather than enabling systematic discovery of new bugs [11].
3 Motivation
Previous work [11] shows that over 70% of previously known vulnerabilities in EDK2 reside in protocol implementations. Motivated by this observation, we aim to enable effective fuzz testing of EDK2 protocols. Scalable fuzzing of EDK2 protocols requires two key capabilities: (1) the ability to execute protocols in a hardware-independent environment, and (2) the ability to supply inputs through all of their interaction channels. While existing techniques address the first requirement through simulation-based execution, they fall short in satisfying the second. In particular, they are unable to provide inputs through protocol dependencies and library interactions, which constitute a significant portion of the attack surface. For example, FuzzUER adopts a simulation-based approach that enables hardware-independent execution but exercises the target protocol only through its interface functions. As a result, it cannot effectively fuzz protocols such as DHCP, which consume inputs indirectly through other protocols (e.g., UDP). Since FuzzUER interacts with such protocols solely via their interfaces, it fails to deliver inputs through these dependency channels. As we show in § 5, this limitation fundamentally restricts FuzzUER's code coverage and hinders comprehensive vulnerability discovery.
4 METIS
Existing rehosting approaches fail to comprehensively exercise EDK2 protocols. We observe that a protocol (P) primarily interacts through its interface functions and its direct dependencies, e.g., DHCP primarily depends on UDP and RNG, i.e., its . Thus, in principle, exercising through direct dependencies and interface functions is sufficient to achieve comprehensive coverage. However, dependent protocols themselves introduce additional dependencies, creating deep interaction chains. e.g., UDP (direct dependency of DHCP) depends on IP.
[Code withheld pending responsible disclosure; will be published soon.]
Listing 1. Running example: the DHCP driver (Dhcp4Dxe) of EDK2, in which METIS discovered two real vulnerabilities.
A natural solution is to create models for the direct dependencies, which preserve the interface, e.g., through mock objects [38]. Yet, unless these mocks faithfully preserve semantics, they can introduce infeasible behaviors [23], leading to false positive crashes that are not realizable in real EDK2 executions. We also need a capability to filter out such spurious crashes.
Based on this insight, we propose Direct-dependency Component Rehosting (DCR), a technique that rehosts a protocol by constructing mocks for its direct dependencies. By focusing only on direct dependencies, DCR avoids the constraints imposed by deeper dependency chains. Next, we identify external interaction points (e.g., protocol calls, library invocations, and timer callbacks) and replace them with stubs driven by fuzzer input, enabling control over all protocol input channels. Finally, we generate harnesses for protocol interface functions and combine them with the mocks and target protocol into a user-space EDK2 test application (EA) backed by a runtime UEFI environment. We fuzz EA using a coverage-guided fuzzer and apply LLM-assisted crash triaging to filter false positives.
4.1 Overview
We use Listing 1 to provide an overview of our technique, which shows the DHCP driver (Dhcp4Dxe) of EDK2, in which METIS discovered two real vulnerabilities. [Details withheld pending responsible disclosure; will be published soon.]
METIS operates in two phases: Rehosting and Testing, given a target protocol P and the EDK2 source code. The rehosting phase consists of several steps, all of which have access to the target protocol and the full EDK2 source code. First, in the Dependency Identification step (§ 4.2.1), we identify all dependencies of P, i.e., . Static dependencies (e.g., libraries) are extracted from build files, while protocol dependencies (i.e., those accessed through OpenProtocol service) require source-level analysis, which checks standard protocol API calls (i.e., LocateProtocol) and records the GUID associated with call that identifies the protocol. For the example in Listing 1, we obtain library dependencies from build configurations and analyze the source code to identify protocol interactions.
Second, using the identified dependencies, we generate harnesses and mocks in parallel. Both Mock Generation (§ 4.2.2) and Harness Generation (§ 4.2.3) steps use a template-guided approach with LLM assistance to generate semantically equivalent mocks and effective harnesses, respectively.
Specifically, the generated harness i.e., , invokes protocol interface functions (i.e., ) by translating fuzzer input into well-typed arguments. Listing 2 shows the harness generated for DHCP (our running example in Listing 1). Similarly, the generated mock uses fuzzer input to provide the output (i.e., data required by ), Listing 3 and 4 show snippets of functions in the mock generated for UDP, i.e., a direct dependency of DHCP. We also identify external interaction points and replace them with input-driven stubs that derive their behavior from fuzzer inputs. We generate mocks for all the direct dependencies of , i.e.,
Third, we assemble (§ 4.2.4) the generated harness, mocks, and the target protocol with a runtime library that provides the necessary UEFI environment (i.e., MetisLib), producing the user-space EDK2 test application for (i.e., ). We also use a dynamic refinement technique (§ 4.2.5) to improve the generated harnesses and mocks by small test runs.
In the testing phase, we fuzz the final using AFL++. During this phase, we utilize a 5 round refinement loop step used to iteratively test, collect coverage metrics, improve the harnesses and mocks, and then repeat, which aids in faulty harnesses and mocks to reach greater code coverage as seen in our evaluation (§ 5.2.2). Since some crashes may arise due to imprecise mocks, we employ a validation step (§ 4.3.2) using context-guided filtering to identify false positives, thereby isolating true vulnerabilities.
4.2 Phase 1: Rehosting
Our goal in this phase is to generate , a self-contained user-space program in which every input channel to is either exposed through a real protocol interface or controlled by fuzzer input via the generated mocks for . This phase has the following stages:
4.2.1 Dependency Identification. For a given protocol the goal of this step is to extract all its direct dependencies (), their interface structures, and interface dependencies (). This analysis operates at the component level: as discussed in § 2.2.2, a protocol inherits all dependencies of the component that implements it.
Protocol Dependencies. In EDK2, each component provides an INF file that declares the protocols it consumes and produces using CONSUMES and PRODUCES keywords, respectively. We consider the consumed protocols as explicit
1 EFI_STATUS EFIAPI InitializeHarness (VOID) {
2 EFI_STATUS Status;
3 // Initialize target protocols driver.
4 Status = HostDispatchDrivers (gFuzzHandle,
← gHostDriverRegistry);
5 ...
6 // get the handle for target protocol
7 Status = gBS->HandleProtocol (gFuzzHandle,
&gEfiDhcp4ServiceBindingProtocolGuid, ...);
9 ...
10 }
11
12 void EFIAPI RunTestHarness (IN MOCK_FUZZ_CONTEXT *FuzzCtx)
← {
13 // start
14 ApiSelector = MockFuzzContextGetU8 (FuzzCtx);
15 ...
16 // invoke interface dependencies
17 mProtocol->Configure (mProtocol, &PreCfg);
18 // API dispatch
19 switch (ApiSelector % API_COUNT) {
20 ...
21 case API_TRANSMITRECEIVE:
22 // fuzz target interface function.
23 FuzzTransmitReceive (FuzzCtx, SubOptions);
24 break;
25 case API_PARSE:
26 FuzzParse (FuzzCtx, SubOptions);
27 ...
28 }
29 // end
30 }
31
32 static VOID FuzzParse (IN MOCK_FUZZ_CONTEXT *FuzzCtx,
33 IN UINT8 SubOptions) {
34 // start
35 EFI_DHCP4_PACKET LocalPacket;
36 ...
37 LocalPacket.Size = sizeof (LocalPacket);
38 UINT8 _p = (UINT8 *)&LocalPacket.Dhcp4;
39 UINTN _cap = LocalPacket.Size - OFFSET_OF (EFI_DHCP4_PACKET,
← Dhcp4);
40 UINTN_fuzz_max = _cap - 1;
41 UINT8 *_src = MockFuzzContextConsume (FuzzCtx, _fuzz_max);
42 if (_src != NULL) { CopyMem (_p + _fuzz_off, _src, _fuzz_max); }
43 _p cap - 1] = 0xFF;
44 LocalPacket.Length = (UINT32) _cap;
45 ...
46 mProtocol->Parse (NULL, &LocalPacket, ...);
47 // end
48 }
Listing 2. Harness for the DHCP protocol generated by METIS, where 📦 and 📦 indicate content was generated through templates and LLM, respectively. 📦 indicates the FuzzContext API calls.
dependencies. We identify these by parsing the INF file to extract the protocols listed under CONSUMES tag. For the running example (Listing 1), we identified gEfiUdp4ProtocolGuid and gEfiUdp4ServiceBindingProtocolGuid as explicit dependencies through the INF file.
The information in the INF file is often incomplete, as dependencies introduced through library code are not explicitly listed; we call these implicit dependencies. For example, the DHCP driver (Listing 1) invokes PseudoRandomU32 a library function (of DxeNetLib library) that internally uses RNG_PROTOCOL protocol, which does not appear in the driver's INF file. We perform source-level analysis to identify implicit dependencies. Specifically, we detect calls to LocateProtocol to identify protocol usage, and recursively analyze library calls (e.g., PseudoRandomU32) to uncover additional protocol dependencies. For the running example (Listing 1), we identified EFI_RNG_PROTOCOL as an implicit dependency, consumed transitively through DxeNetLib's PseudoRandomU32 function. We use the dependencies and the information from PRODUCES tag to identify dependencies between the given component and other component.
Interface Dependencies. UEFI protocols maintain state either through global variables or protocol handle objects created during OpenProtocol calls. e.g., UdpIo->UdpHandle in the DHCP driver. These handle objects encapsulate protocol-specific state via a set of data fields that are read and updated by different interface functions, thereby inducing dependencies between them.
To capture these dependencies, we first identify all functions that define or update each field in the handle object. Next, for each interface function , we analyze whether its execution is exit control dependent on the values of any handle fields, i.e., a control dependency (§ 4.2.1) if not satisfied results in premature return from the function. For each such field, we identify the interface functions that initialize or modify it, and record them as interface dependencies of , i.e., add them to . For instance, the following control dependency: if (!Instance->Configured) return EFI_NOT_STARTED marks the function to be dependent on the Configured field, and any interface function writing or modifying Configured will be considered as its dependent, i.e., will be added to . We apply the same analysis to global variables to capture dependencies induced by shared state. Our analysis is interprocedural, allowing us to capture dependencies across function boundaries and recover the complete set of interface dependencies. Moreover, we follow firmware initialization sequences (such as DriverEntry and protocol installation order) to ensure that the memory allocation and initialization order is respected.
4.2.2 Mock Generation. The goal of mock generation is to create a MockProtocol for each dependency of , i.e., . For a given protocol , the corresponding MockProtocol implements the same interface as , with behavior driven by fuzzer-provided input. Specifically, for each interface function of (i.e., ), we focus on generating well-formed outputs using input data.
We generate mocks using a template-driven approach, augmented with LLM-assisted synthesis. Figure 1 shows the overview of our technique.
Template Generation. For a given protocol, we generate a mock template containing one stub for each interface method. Using the interface structure recovered during dependency identification, we extract the signature of every function and create a corresponding stub with the same signature. For example, for the UDP protocol required by the DHCP protocol in Listing 1, we use the interface structure (i.e., EFI_UDP4_PROTOCOL) to identify all interface methods. For each method (e.g., Get-ModeData), we use its type declaration (i.e., EFI_UDP4_GET_MODE_DATA) to generate a matching stub function (i.e., MockUdp4GetModeData). We additionally generate a constructor routine that installs the mock protocol by initializing the interface structure's function pointers with the generated stub functions.
Interface Method Generation. Each stub is responsible for producing well-formed outputs by updating output parameters and return values using fuzzer-provided data. A naive approach would treat all pointer parameters as outputs; however, this is both inefficient and incorrect. Instead, we use EDK2's OUT and INOUT annotations to identify output parameters. Specifically, EDK2 coding standards require all parameters to be explicitly annotated as input (IN), output (OUT), or input and output (INOUT) [42].
A straightforward approach is to populate output parameters using raw bytes from the input stream, but this often violates type invariants (e.g., for pointer fields), leading to spurious crashes. A more structured alternative is type-aware generation [23], which recursively constructs values based on their types. However, this approach still fails to capture semantic constraints such as valid value ranges or inter-field relationships (e.g., size-buffer consistency), which are critical for meaningful execution. For instance, the DataLength field should be the total length of all fragments, i.e., sum of FragmentLength field of all entries in FragmentTable field. Similarly, FragmentLength should be the number of entries pointed by the FragmentTable field.

Fig. 1. LLM-Assisted Mock Generation Technique used by METIS
We observe that the type constraints are often documented in UEFI specification [42], and source code comments. Recent advances in LLMs have shown strong capability in extracting such semantic information and generating correct code [14, 15, 44, 47]. Motivated by these observations, we employ an LLM-assisted approach. Figure 1 shows the overview of our technique.
We want the LLM to generate code that correctly handles all outputs of an interface function. In addition to explicit output parameters (i.e., annotated with OUT), interface functions in EDK2 also communicate through events and callbacks, as discussed in § 2.2. These callbacks are associated with events and are triggered when the corresponding signal is raised (e.g., RaiseTPL).
Handling Events/Callbacks. However, EDK2 event callbacks are platform-dependent, rely on hardware support, and cannot be directly used in user space. To address this, we introduce the AsyncCallBack API, which emulates the event and callback semantics of EDK2. We provide the LLM with the API description and examples demonstrating how to model different EDK2 callback patterns using AsyncCallBack API.
Streamlined Input Consumption. Interface functions consume fuzzing input in diverse ways, making input handling difficult to generalize. To simplify this process, we design FuzzContextLib, a utility library that provides a uniform interface for consuming fuzzing input and constructing required data structures. We provide the LLM with both the library description and usage examples.
Handling Constants and Return Codes. When multiple valid constant values exist (e.g., structure fields), we instruct the LLM to select among them using fuzzing input. Similarly, to improve coverage of error-handling paths, we instruct the LLM to occasionally return failure codes with low probability.
In summary, we incorporate the descriptions of the AsyncCall API, FuzzContextLib, and representative examples into the system prompt. As shown in Figure 1, We additionally provide access to UEFI/EDK2 documentation and source code through a curated knowledge base included in each prompt and a clangd-backed Serena [26] MCP server for symbol navigation and file search. We also provide access to the EDK2 build system to guide the LLM in producing syntactically valid code.
1 STATIC EFI_UDP4_PROTOCOL mMockUdp4Protocol = { 2 MockUdp4GetModeData, 3 MockUdp4Configure, 4 ... 5 }; 6 7 MockUdp4Constructor (VOID) { 8 ... 9 Status = gBS->InstallProtocolInterface (gFuzzHandle, 10 &gEfiUdp4ProtocolGuid, EFI_NATIVE_INTERFACE, 11 &mMockUdp4Protocol); 12 ... 13 } 14 15 STATIC EFI_STATUS EFIAPI 16 MockUdp4GetModeData ( 17 IN EFI_UDP4_PROTOCOL+ This, 18 OUT EFI_UDP4_CONFIG_DATA+ Udp4ConfigData, 19 OUT EFI_IP4_MODE_DATA+ Ip4ModeData, 20 ...) { 21 // Start 22 MOCK_FUZZ_CONTEXT +FuzzCtx = ResolveContext(); 23 ... 24 if (Udp4ConfigData != NULL) { 25 ZeroMem (Udp4ConfigData, sizeof (EFI_UDP4_CONFIG_DATA)); 26 if (FuzzCtx != NULL) { 27 UINT8 *Bytes = MockFuzzContextConsume (FuzzCtx, 28 ↔ sizeof (EFI_UDP4_CONFIG_DATA)); 29 if (Bytes != NULL) { CopyMem (Udp4ConfigData, Bytes, 30 ↔ sizeof (EFI_UDP4_CONFIG_DATA)); } 31 } 32 ... 33 if (FuzzCtx != NULL) { 34 UINT8 Choice = MockFuzzContextGetU8 (FuzzCtx); 35 if (Choice == 0xFF) { return EFI_NOT_READY; } 36 } 37 return EFI_SUCCESS; 38 // End 39 }
1MockUdp4Receive ( IN EFI_UDP4_PROTOCOL+ This, 2 IN EFI_UDP4_COMPLETION_TOKEN= Token) 3{ 4 MOCK_FUZZ_CONTEXT +FuzzCtx = ResolveContext(); 5 ... 6 if (FuzzCtx != NULL && Token != NULL) { 7 UINT8 PktLen = 576; 8 UINT8 +PktSrc = MockFuzzContextConsume (FuzzCtx, ← PktLen); 9 if (PktSrc != NULL) { 10 EFI_UDP4_RECEIVE_DATA +RxData = AllocateZeroPool (sizeof ← (EFI_UDP4_RECEIVE_DATA) + PktLen); 11 if (RxData != NULL) { 12 // Copy input data 13 CopyMem (RxData + 1, PktSrc, PktLen); 14 ... 15 // Fix ups from UEFI Spec 16 UINT8 +Pkt = (UINT8+) (RxData + 1); 17 Pkt[0] = 2; Pkt[1] = 1; Pkt[2] = 6; 18 if (PktLen > 244) { 19 Pkt[236] = 0x63; Pkt[237] = 0x82; Pkt[238] = 0x53; ← Pkt[239] = 0x63; ... 20 Pkt[242] = (MockFuzzContextGetU8(FuzzCtx) % 2 == ← 0) ? 2 : 5; Pkt[243] = 0xFF; } 21 RxData->DataLength = (UINT32)PktLen; 22 RxData->FragmentCount = 1; 23 RxData->FragmentTable[0].FragmentLength = (UINT32)PktLen; ← 24 RxData->FragmentTable[0].FragmentBuffer = (UINT8 ←+) (RxData + 1); 25 Token->Packet.RxData = RxData; 30 } 31 } 32 ... 33 if (Token != NULL && Token->Event != NULL) { 34 Token->Status = EFI_SUCCESS; 35 0 MockDeferredSchedule (mMockUdp4DeferredState, ← Token->Event); 36 } 37 ... 38 }
Listing 4. Snippet of METIS mock illustrating handling of buffer/length correlations ( , ), constant value fix-ups, and event call-backs using our AsyncCallBack API (①).
4.2.3 Harness Generation. This step focuses on generating a testing harness for the target protocol P. Similar to mock generation, we adopt a template-based approach augmented with LLM assistance. Each harness consists of (i) initialization code and (ii) invocations of interface functions. Listing 2 shows the snippet of the harness generated by METIS for DHCP protocol (in Listing 1).
Initialization Code. We generate initialization code using fixed templates. These templates capture common patterns for initializing a protocol's component. For example, if P is implemented by a driver, we insert calls to the corresponding driver initialization routines (e.g., DriverEntryPoint, DriverBinding.Start).
We also obtain a handle to P using LocateProtocol bootservice. We generate the variables required for initialization using interface structure types identified in the Dependency Identification ( ) step. The InitializeHarness function in Listing 2 shows the snippet of the initialization code generated by METIS.
Vol. 1, No. 1, Article. Publication date: November 2018.
Invoking Interface Functions. Next, we generate calls to each interface function of (i.e., ). Specifically, we read a byte from the input and use its value to select and invoke one of the interface functions. As shown in Listing 2, we read a byte (ApiSelector) and use it to select the interface function (line 19).
Before invoking a function , we ensure that all its interface dependencies (i.e., ) are satisfied by invoking the required predecessor functions, i.e., we invoke all functions in before invoking . e.g., In Listing 2, Configure is invoked (at line 17) before receive (at line 23). Argument Generation. For each interface function invocation, we generate values for its input arguments (i.e., parameters annotated with IN or INOUT) using an LLM-assisted approach (described in § 4.2.2).
A key challenge arises with state-dependent types, i.e., the type depends on the protocol internal state or prior interactions. In EDK2, there are many such types that are expected to be produced and initialized by earlier interface calls. Constructing such structures directly from raw input data often leads to invalid states and immediate failures.
To address this, we use the idea of generator functions [11]. For a given type , we identify all interface functions that produce as an OUT parameter and treat them as generators for . We then use these generators to construct valid instances of by invoking the corresponding interface functions before use. Specifically, we provide this generator information to the LLM, enabling it to synthesize argument construction code that respects protocol state and execution ordering.
Handling Complex Semantics. Certain protocols (e.g., network interactions) impose additional semantic constraints, such as required invocation sequences (e.g., Send before Receive). To handle such cases, we incorporate domain-specific knowledge and patterns into the LLM prompts.
Additionally, similar to our mock generation approach, we also provide the LLM with access to EDK2 source code and documentation via Serena [26] MCP server for symbol navigation and file search, allowing it to incorporate implicit constraints and usage patterns when generating inputs.
4.2.4 User Mode Assemble. This stage combines the harness, mocks (), the target protocol (), and our runtime library (MetisLib) into a statically linked user-space ELF binary , instrumented with AFL++ and ASAN/UBSan.
MetisLib provides semantically equivalent implementations of UEFI Boot Services and EDK2 library classes using Linux user-space APIs. We develop MetisLib as a one-time effort to enable seamless rehosting of EDK2 components in a user-space environment.
We also generate necessary build artifacts, i.e., DSC and INF files, required by the EDK2 build system to build the by linking with the mocks, harness, and MetisLib.
4.2.5 Dynamic Refinement. In this step, we iteratively refine the harness and mocks to fix incomplete setup and inaccurate mock behavior. We perform up to five refinement rounds, where each round consists of fuzzing for 2 minutes followed by coverage collection. We analyze the coverage to identify blocking frontiers, i.e., conditional statements that guard currently uncovered code. An LLM agent attributes each blocking frontier to one of the following causes and revises the mocks, the harness, or the seed corpus accordingly.
-
Missing Initializations. The driver never completes Start because a mock does not provide what it requires, leaving all later code unreachable. We fix the mock behind the first failing call.
-
Data Deficiency. The condition enforces constraints that the current mocks or inputs do not satisfy. We update the mocks, the harness, or the seed corpus so that these constraints hold (e.g., lines 14-29 in Listing 2), without making mocks succeed unconditionally.
-
Missing Completions. An asynchronous mock accepts a request but never signals its completion event, so all completion paths remain uncovered. We revise the mock to schedule the completion and the harness to advance simulated time.
Testing-unfriendly patterns such as hardware waits and polling loops need no refinement, as our host libraries already bound them (e.g., Stall is a no-op and CheckEvent advances simulated time). After each round, we recreate the EAP (§ 4.2.4) using the revised harness and mocks and fuzz it again; we keep a revision only if it covers at least four more driver lines than the best version so far, and otherwise restore that version and stop. The best EAP after at most five rounds is used in the next testing phase.
4.3 Phase II: Testing
Given the final EAP, this phase aims to discover vulnerabilities and distinguish real bugs from artifacts introduced by the mocking layer. It consists of two concurrent steps.
4.3.1 Fuzzing. We fuzz EAP using AFL++ in persistent mode [10], seeded with AFL++'s default inputs and the corpus generated during refinement. In each iteration, the harness may invoke multiple interface functions based on the fuzzer input. To streamline input delivery, we use a shared context structure to store the fuzzer input. Both the harness and mocks access input data through this structure. This unified design ensures consistent input handling and enables deterministic execution across fuzzing iterations.
4.3.2 Crash Triaging. The primary goal of triaging is to eliminate false positives and retain only true vulnerabilities. In particular, we treat crashes that occur within mock protocols or the harness as false positives, since they may arise from our approximations rather than genuine bugs in EDK2.
For each crash in , we extract a fingerprint and use it for deduplication and analysis. Specifically, we re-execute EAP with the crashing input and extract a fingerprint of the form type | function: file: line from the top stack frame in the ASAN/UBSAN report. We then deduplicate crashes based on this fingerprint.
For each remaining crash, we analyze whether it occurs while processing attacker-controlled input (e.g., network packets, PE-COFF headers, or image buffers). Such crashes are classified as REAL_BUG, while the remaining cases are labeled NEEDS_REVIEW for manual inspection. We use LLM assistance to perform this filtering. Specifically, we provide access to the crashing input, EAP, and gdb commands. Our prompt includes various examples and process to triage a crash.
4.4 Implementation
The core components of METIS, including dependency identification and static analyses for extracting information required for mock and harness generation, are implemented in python. We use openrouter agent sdk [25] to implement our LLM-assisted techniques. All LLM-generated code is validated for syntactic correctness via compilation checks, and any failures are rejected.
4.4.1 Runtime Library. Our runtime library, MetisLib, is implemented in C (27,867 SLoC). MetisLib is a self-contained host runtime that re-implements the EDK2 LibraryClass ABI using POSIX APIs, enabling unmodified driver code to link and execute as a user-space ELF binary. It provides host-side implementations for commonly used library classes (e.g., Base, Memory, BootServices, RuntimeServices, DXE, HII, PCD, SMM), while unsupported classes fall back to EDK2's existing null stubs. A key component is the host implementation of UefiBootServicesTableLib, which maintains an in-memory handle database that preserves the ordering semantics of InstallProtocolInterface, OpenProtocol, and LocateProtocol. This allows drivers to interact transparently with gBS, gRT, and gDS without modification. A user-space dispatcher iterates over the harness-generated driver registry and invokes each driver's entry point and DriverBinding. Supported/Start routines using synthetic controller handles, mirroring the behavior of platform BDS after device enumeration.
4.4.2 Helper Libraries. Our helper libraries, i.e., FuzzContextLib and AsyncCall API, are implemented in C (916 SLoC).
5 Evaluation
We structure our evaluation along the following research questions:
- RQ1 (Rehosting Effectiveness): How many EDK2 drivers can METIS successfully rehost? How well do the generated harnesses exercise the protocol surface, and how faithfully do the generated mocks model dependency semantics?
- RQ2 (Fuzzing Effectiveness): How effective is METIS's approach at testing EDK2 drivers? What is the code coverage and effectiveness at identifying vulnerabilities?
- RQ3 (Comparative Evaluation): How does METIS compare to existing techniques?
5.1 Setup
5.1.1 Target selection. We evaluate METIS on 60 drivers from the mainline EDK2 repository (f0542ae07d), spanning six subsystem categories: Network (22), PCI/Storage (16), USB (7), Console/HII (9), SMM/Firmware (4), and Utility (2). A single EDK2 driver can produce multiple protocols; together, these 60 drivers produce the 162 protocols we evaluate. The complete list of protocols, grouped by category, is provided in Table 2. Table 2 also shows the total number of interface functions () in each protocol, functions with at least one complex struct * argument (ComF), and functions with at least one void * argument (VoidF).
5.1.2 Known Vulnerabilities. We curated 14 known vulnerabilities, selected based on their public CVE entries and diversity across drivers and bug classes. These were injected into our EDK2 commit (f0542ae07d) by porting the vulnerable pre-patch code back on top of the patched tree.
5.1.3 LLM choices. METIS implementation is LLM-agnostic and can be used with any LLM. We evaluate the pipeline using six LLMs. Unless otherwise specified, we use Claude Sonnet 5.5 as the default model, as it achieved the highest aggregate coverage and the fewest compilation errors.
5.1.4 Fuzzing Setup. Each target is fuzzed for 24 h on a single AFL++ v4.33c instance pinned to one core, with ASan and UBSan enabled – matching the per-target budget of all baselines and the guidelines of Klees et al. [12].
5.2 RQ1: Rehosting Effectiveness
5.2.1 Method. To measure rehosting success, we report the number of drivers for which our pipeline successfully produces a compilable and executable EAp.
Harness Accuracy. We assess harness accuracy using the following metrics:
- Interface Completeness (Com). Fraction of interface functions that are invoked by the harness.
- Argument Completeness (Arg). Fraction of interface functions that are invoked with correct arguments.
- Dependency Handling (DepH). Fraction of interface functions with dependencies () whose dependencies are correctly satisfied.
- Handling Complex Arguments (CArg). Fraction of stateful or complex arguments that are correctly constructed.
Mock Accuracy. We evaluate this by comparing mock behavior against the original implementation and classify each mock into one of three categories: over-approximating (OB), where the mock
Table 1. Quality of harnesses and mocks generated by METIS for one representative driver per subsystem category. Results discussed in § 5.2.1.
| Driver | Num(Fp) | Com | Arg | DepH | CArg | Total Dep.Funcs | OB | UB | CB |
|---|---|---|---|---|---|---|---|---|---|
| Dhcp4Dxe | 9 | 9/9 (100%) | 9/9 (100%) | 3/3 (100%) | 9/9 (100%) | 84 | 10 | 9 | 16 |
| PartitionDxe | 4 | 4/4 (100%) | 4/4 (100%) | 0/0 (N/A) | 4/4 (100%) | 37 | 2 | 5 | 8 |
| UsbBusDxe | 13 | 13/13 (100%) | 13/13 (100%) | 4/4 (100%) | 15/16 (93.8%) | 44 | 4 | 6 | 10 |
| GraphicsConsoleDxe | 9 | 9/9 (100%) | 9/9 (100%) | 0/0 (N/A) | 2/2 (100%) | 51 | 3 | 8 | 5 |
| SmmControl2Dxe | 2 | 2/2 (100%) | 2/2 (100%) | 0/0 (N/A) | 0/0 (N/A) | 4 | 0 | 0 | 0 |
| Mean / Total | 7.4 | 37/37 (100%) | 37/37 (100%) | 7/7 (100%) | 30/31 (96.8%) | 220 | 19 | 28 | 39 |
exhibits behaviors not present in the original implementation; under-approximating (UB), where it omits valid behaviors; and correct behavior (CB), where it closely matches the original protocol.
We compute both harness accuracy and mock accuracy metrics via manual analysis. To ensure scalability, we perform random sampling by selecting one protocol from each subsystem category (five in total).
5.2.2 Results. Table 1 reports the evaluation metrics across five protocols. The harness-generation metrics (first set of columns) achieve perfect scores, indicating that METIS successfully generates harnesses capable of exercising the interface functions.
The quality of generated mocks, however, varies. Out of 220 generated mock methods, 39 correctly mimic the original behavior (CB), 28 only under-approximate it (UB), 19 only over-approximate it (OB), and the remaining 134 do both (OB&UB). Over-approximation most commonly comes from missing validation and state tracking: a mock returns success for arguments or protocol states that the real implementation rejects, or returns outputs that violate invariants the real producer guarantees. Manual inspection revealed that most UB cases arise from asynchronous callback handling. Although METIS provides the necessary AsyncCallback APIs, current LLMs struggle to fully model the associated asynchronous semantics.
Refinement. Figure 2 shows the effect of the refinement loop on the 59 drivers that built in our campaign with Claude Sonnet 5.5. Each round fuzzes the current harness and mocks for 120 s, measures driver line coverage, and asks the LLM to revise the harness or a mock then a revision is kept only if it covers at least four new driver lines. In round 1, 46 of the 59 drivers kept a revision (30 of them revised the harness and 17 a mock), adding 30.5% of line coverage on average. Rounds 2-5 kept 26, 10, 5, and 4 revisions, adding 12.3, 5.7, 2.9, and 1.5% on average. Overall, refinement raised the mean driver line coverage at the 120 s probe from 33.4% to 63.9% (median 28.6% to 73.3%) where 46 of the 59 drivers

Fig. 2. Cumulative increase in driver line coverage after each refinement round.
improved, and most of the gain arrives in the first two rounds.
5.3 RQ2: Fuzzing Effectiveness
5.3.1 Method. We run the full METIS pipeline on all 60 drivers and evaluate its effectiveness in terms of code coverage, rediscovery of previously known bugs, and identification of new vulnerabilities.
We report both line and function coverage of the target driver's own sources. Since prior work (e.g., FUZZUER, HBFA) reports only line coverage, we compare against them on line coverage.
To evaluate known bug detection, we check whether METIS triggers the corresponding crash with the correct root cause. For newly discovered bugs, we report a tuple of the form uniq/distinct/bugs, representing: (i) the number of unique crashes reported by AFL++, (ii) the number of distinct crashes, i.e., crashes that reproduce, grouped by fingerprint, and (iii) the number of driver bugs, i.e., distinct crashes attributed to the target driver rather than to a mock or the harness.
5.3.2 Results. Table 2 shows the results across all protocols.
Coverage. The average line and function coverage across the 59 drivers with measured coverage is 73.1% and 85.5%, respectively. The remaining coverage gap primarily stems from under-approximation in dependency mocks, particularly for asynchronous interactions. We observe no strong correlation between interface-function complexity and achieved coverage. For example, EmmcDxe, which exposes 15 complex interface functions, achieves 88.7% line coverage, whereas HttpBootDxe, with only 5 complex functions, achieves 71.0% line coverage. The primary difference lies in the complexity of their dependencies: HttpBootDxe depends on substantially more complex protocols than EmmcDxe.
Previously known bugs and False Negatives. METIS rediscovered 4 of the 14 previously known vulnerabilities in the evaluated drivers, a false-negative rate of 71.4%. Three of them crash at the exact vulnerable site (CVE-2018-12178 in DnsDxe, CVE-2019-14559 in Ip4Dxe, and CVE-2023-45234 in UefiPxeBcDxe); the fourth (CVE-2023-45229 in Dhcp6Dxe) crashes on the same Advertisement-processing path rather than at the vulnerable check.
The ten misses fall into three groups. First, four bugs were triggered but are invisible to our crash-based oracle (AddressSanitizer and assertions): predictable TCP initial sequence numbers (CVE-2023-45236), missing TLS host-name verification (CVE-2019-14553), a receive-buffer leak (CVE-2019-14559 in ArpDxe), and a double Unmap that the mock silently rejects (CVE-2019-14587). Detecting these requires semantic oracles rather than memory-safety checks. Second, the three Ip6Dxe bugs were never fuzzed: because AFL++ requires at least one non-crashing seed input, we deterministically check for one before fuzzing, and since the Ip6Dxe harness crashed during startup, before reaching the driver's entry point, no input passed this check. Two of these bugs are also infinite loops, which would additionally require hang detection. Third, three bugs need inputs that our harnesses and mocks did not produce: CVE-2018-12180 in PartitionDxe needs a block size below 512 bytes, which the harness never generates; CVE-2023-45230 needs an oversized DHCPv6 Server-ID, whereas the mock injects a fixed 8-byte one; and CVE-2023-45235 needs a DHCPv6 proxy offer that fuzzing never generated.
New bugs and False Positives. Overall, AFL++ reported 5,116 unique crashes, which reduced to 204 distinct crashes, of which 137 are attributed to the target drivers.
Responsible Disclosure. We are in the process of reporting these 137 bugs. So far, we have reported 26 of them, out of which 12 are remotely triggerable, and all our reported vulnerabilities have been acknowledged by the vendors. The details of the newly discovered vulnerabilities are withheld pending responsible disclosure and will be published soon. Many of these are memory-corruption bugs with potentially severe consequences. Several are in network-facing drivers, such as Dhcp6Dxe and Dhcp4Dxe, are remotely triggerable.
5.4 RQ3: Comparative Evaluation
5.4.1 Method. We compare against three representative baselines: HBFA [40], which relies on manually written mocks and harnesses for selected protocols, and FUZZUER [11], a recent technique that fuzzes protocols inside a simulator using automatically generated harnesses. LLM-only baseline,
Table 2. Per-driver fuzzing results: METIS (LF mode) vs the LLM-only baseline (LLM), FuzzUEr [11], and the hand-written HBFA [40] harness where one exists. Coverage is measured on the target driver's own sources; L = line coverage, F = function coverage (FuzzUEr and HBFA report line coverage only). “” = failed to generate working harness + mock. “—” = data not available. New Findings for METIS and LLM = AFL unique crashes / distinct crashes (reproduced, grouped by fingerprint) / driver bugs (distinct crashes attributed to the driver, not a mock or the harness). Mean (measured) averages over the drivers with measured coverage (METIS: 59, LLM: 25); Mean (all 60) averages over all 60 drivers, counting failures (“” as 0. Column semantics are discussed in § 5.3 and § 5.4.
| Driver | Iface Fns | Coverage (%) | Prev. Known Bugs | New Findings (uniq/distinct/bugs) | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| || Fp | ComF | VoidF | METIS | LLM | FuzzUEr | HBFA | LLM | METIS | LLM | FuzzUEr | HBFA | |
| NetworkPkg | ||||||||||||
| ArpDxe | 9 | 9 | 51 | 89.6 | 91.7 | * | * | 20.9 | — | X | * | — |
| Dhcp4Dxe | 11 | 11 | 0 | 89.1 | 95.3 | * | * | 37.3 | — | — | — | 0/0/0 |
| Dhcp6Dxe | 11 | 11 | 1 | 73.0 | 83.8 | * | * | 31.8 | — | ✓ | * | — |
| DnsDxe | 20 | 20 | 0 | 79.3 | 94.6 | * | * | 9.5 | — | ✓ | * | — |
| DpDxe | 2 | 2 | 1 | 94.4 | 100.0 | 100.0 | 100.0 | 87.7 | — | — | — | 0/0/0 |
| HttpBootDxe | 5 | 5 | 2 | 71.0 | 87.0 | * | * | 29.7 | — | — | — | 144/7/6 |
| HttpDxe | 8 | 8 | 0 | 78.9 | 94.7 | * | * | 5.7 | — | X | * | 309/10/7 |
| IScsidDxe | 17 | 17 | 4 | 14.8 | 26.7 | * | * | 13.0 | — | — | — | 8/10 |
| Ip4Dxe | 17 | 17 | 2 | 84.3 | 97.0 | * | * | 36.9 | — | ✓ | * | 216/9/4 |
| Ip6Dxe | 15 | 15 | 2 | * | * | * | * | 35.3 | — | * | X | — |
| MnpDxe | 13 | 13 | 0 | 82.8 | 98.6 | * | * | 58.3 | — | — | — | 109/1/1 |
| Mftp4Dxe | 10 | 10 | 0 | 89.2 | 98.4 | * | * | 26.4 | — | — | — | 172/8/6 |
| Mftp6Dxe | 10 | 10 | 0 | 74.3 | 85.7 | * | * | 15.3 | — | — | — | 69/6/2 |
| SnpDxe | 13 | 13 | 4 | 18.8 | 19.1 | * | * | 70.0 | — | — | — | 0/0/0 |
| TcpDxe | 30 | 30 | 0 | 55.2 | 66.5 | * | * | 11.9 | — | X | * | 96/5/5 |
| TlsAuthConfigDxe | 3 | 3 | 0 | 62.4 | 61.9 | 88.0 | 100.0 | 22.3 | — | — | — | 1/1/1 |
| TlsDxe | 8 | 8 | 4 | 85.4 | 87.5 | * | * | 37.0 | — | — | — | 94/3/3 |
| Udp4Dxe | 10 | 10 | 0 | 82.3 | 87.5 | * | * | 50.9 | — | — | — | 0/0/0 |
| Udp6Dxe | 9 | 9 | 0 | 80.8 | 87.5 | * | * | 47.8 | — | — | — | 124/4/3 |
| UefiPxeBcDxe | 14 | 14 | 4 | 67.8 | 79.8 | * | * | 28.5 | ✓ | * | X | 312/6/4 |
| VlanConfigDxe | 3 | 3 | 0 | 93.9 | 100.0 | 95.1 | 100.0 | 45.1 | — | — | — | 0/0/0 |
| WifiConnectionMgr | 3 | 3 | 0 | 75.9 | 81.4 | * | * | 7.8 | — | — | — | 209/4/1 |
| PCI/Storage | ||||||||||||
| AtaatapiPassThru | 14 | 14 | 0 | 70.8 | 84.7 | * | * | 43.7 | — | — | — | 62/2/1 |
| AtaBusDxe | 14 | 14 | 9 | 83.9 | 94.7 | * | * | 42.4 | — | — | — | 0/0/0 |
| DiskIoDxe | 6 | 6 | 4 | 86.6 | 100.0 | 87.7 | 94.7 | 55.1 | — | — | — | 79/5/0 |
| EmmcDxe | 15 | 15 | 9 | 88.7 | 95.3 | 85.7 | 100.0 | 6.3 | — | — | — | 94/1/1 |
| IncompatPciDevSup | 1 | 1 | 1 | 81.0 | 100.0 | 81.0 | 100.0 | 83.3 | — | — | — | 0/0/0 |
| NvmExpressDxe | 21 | 21 | 10 | 85.5 | 97.0 | * | * | — | — | — | — | 124/7/7 |
| PartitionDxe | 8 | 8 | 4 | 62.6 | 92.1 | * | * | 53.9 | 15.2 | X | * | 30/10 |
| PciBusDxe | 15 | 15 | 6 | 71.1 | 85.5 | * | * | 47.7 | — | — | — | 295/5/4 |
| PciHostBridgeDxe | 19 | 19 | 9 | 50.4 | 75.0 | * | * | 84.4 | — | — | — | 0/0/0 |
| RamDiskDxe | 13 | 13 | 4 | 52.9 | 71.4 | 61.9 | 75.0 | 17.0 | — | — | — | 43/2/1 |
| ScsiBusDxe | 5 | 5 | 0 | 84.0 | 100.0 | 0.0 | 0.0 | 72.6 | — | — | — | 39/1/0 |
| ScsiDiskDxe | 15 | 15 | 9 | 80.6 | 92.2 | 82.6 | 95.3 | 21.9 | — | — | — | 301/7/7 |
| SdDxe | 13 | 13 | 7 | 90.1 | 100.0 | * | * | 9.1 | — | — | — | 40/4/4 |
| SdmPciHcDxe | 5 | 5 | 0 | 80.0 | 97.1 | * | * | 14.6 | — | X | * | 0/0/0 |
| SataControllerDxe | 6 | 6 | 0 | 89.7 | 100.0 | 99.6 | 100.0 | 71.4 | — | — | — | 56/7/0 |
| UfsPassThruDxe | 10 | 10 | 0 | 81.2 | 96.5 | * | * | 5.9 | — | — | — | 0/0/0 |
| USB | ||||||||||||
| EhcIDxe | 13 | 13 | 6 | 83.9 | 89.9 | * | * | 67.3 | — | — | — | 110/2/2 |
| UhcIDxe | 13 | 13 | 6 | 72.3 | 90.4 | 91.4 | 98.6 | 74.2 | — | — | — | 0/0/0 |
| UsbBusDxe | 13 | 13 | 6 | 76.6 | 93.9 | * | * | 60.2 | — | — | — | 131/14/4 |
| UsbKbDxe | 7 | 7 | 2 | 94.9 | 100.0 | 96.7 | 100.0 | 49.0 | — | — | — | 0/0/0 |
| UsbMassStorageDxe | 8 | 8 | 5 | 93.1 | 100.0 | 61.5 | 74.5 | 49.6 | — | — | — | 94/1/1 |
| UsbMouseDxe | 2 | 2 | 0 | 93.4 | 100.0 | 96.6 | 100.0 | 64.9 | — | — | — | 51/1/0 |
| XhcIDxe | 13 | 13 | 6 | 83.2 | 93.0 | * | * | 5.6 | — | — | — | 149/11/11 |
| Console/HII | ||||||||||||
| ConSplitterDxe | 23 | 23 | 21 | 76.0 | 100.0 | 90.9 | 100.0 | 59.3 | — | — | — | 0/0/0 |
| DisplayEngineDxe | 4 | 2 | 0 | 9.6 | 19.3 | * | * | 4.7 | — | — | — | 9/1/1 |
| EnglishDxe | 6 | 6 | 0 | 100.0 | 100.0 | 100.0 | 100.0 | 76.8 | — | — | — | 40/1/1 |
| GraphicsConsoleDxe | 9 | 9 | 0 | 89.2 | 100.0 | 0.0 | 0.0 | 74.8 | — | — | — | 0/0/0 |
| GraphicsOutputDxe | 3 | 3 | 0 | 11.1 | 100.0 | 96.7 | 100.0 | — | — | — | — | 63/3/0 |
| HiiDatabaseDxe | 39 | 39 | 0 | 46.8 | 70.7 | * | * | 38.6 | — | — | — | 311/31/29 |
| HiiResourcesSample | 0 | 0 | 0 | 42.1 | 100.0 | 0.0 | 0.0 | — | — | — | — | 0/0/0 |
| LogoDxe | 1 | 1 | 0 | 100.0 | 100.0 | 100.0 | 100.0 | 83.0 | — | — | — | 0/0/0 |
| SetupBrowserDxe | 12 | 4 | 0 | 35.2 | 62.5 | * | * | 3.0 | — | — | — | 160/3/0 |
| SMM/Firmware | ||||||||||||
| FaultTolerantWrite | 6 | 6 | 21 | 87.9 | 100.0 | * | * | — | — | — | — | 100/6/6 |
| S3SaveStateDxe | 4 | 4 | 0 | 95.2 | 100.0 | 96.7 | 100.0 | 69.8 | — | — | — | 75/1/1 |
| SmmControl2Dxe | 2 | 2 | 0 | 37.0 | 71.4 | 71.5 | 100.0 | 77.8 | — | — | — | 0/0/0 |
| SmmS3SaveState | 4 | 4 | 0 | 97.7 | 100.0 | 99.7 | 100.0 | — | — | — | — | 70/3/1 |
| Utility | ||||||||||||
| PrintDxe | 10 | 4 | 0 | 28.6 | 33.3 | 100.0 | 100.0 | 75.0 | — | — | — | 0/0/0 |
| RestJsonStructure | 4 | 4 | 0 | 2.1 | 11.1 | 97.9 | 100.0 | 15.8 | — | — | — | 0/0/0 |
| Mean (measured) / Total | 617 | 597 | 136 | 73.1 | 85.5 | 79.2 | 85.5 | 42.0 | 15.2 | 4 | 0 | 0 |
| Mean (all 60) | 71.9 | 84.0 | 33.0 | 35.6 | ||||||||
Vol. 1, No. 1, Article. Publication date: November 2018.
here we used just the LLM, without any information about APIs. We also provided LLM with access to all the source code. For each baseline, we use the authors' recommended configuration and setup.
5.4.2 Results. Comparison with HBFA. We use the harnesses available in the latest HBFA commit. HBFA was able to exercise only PartitionDxe among our evaluated protocols, achieving 15.2% line coverage compared to 62.6% achieved by METIS. Our findings align with those of Glosner et al. [11], who also observed that existing HBFA harnesses provide limited coverage.
In terms of bug-finding capability, HBFA neither discovered new bugs nor reproduced the known vulnerability.
Comparison with FUZZUER. FUZZUER executes protocols within a simulator-based environment. However, not all protocols are available in its simulator configuration; consequently, FUZZUER was able to test only 55 out of the 60 evaluated drivers. On the 54 drivers that both tools tested, METIS achieved higher line coverage on 47, with a mean of 72.5% versus 42.1% for FUZZUER (median 80.9% vs. 43.1%).
Furthermore, FUZZUER failed to reproduce any known vulnerabilities in these protocols. Although it reported 8 new bugs, manual inspection revealed that all were NULL-pointer dereferences. Many of these crashes are infeasible in practice, as they violate explicit UEFI specification requirements that prohibit NULL pointers for the corresponding arguments. Because METIS incorporates UEFI specifications and documentation during harness and mock generation, it avoids generating such invalid inputs and therefore avoids these infeasible crashes.
Comparison with LLM-baseline. In the LLM-only experiment, the model's only feedback is check_harness_bui1d, which first rejects a harness that breaks basic build rules (e.g., not linking the driver from its own INF), then builds it with the same AFL++/ASan toolchain as the bui1d stage and runs it on an empty input and on each seed, passing it only if the empty-input run and at least one seed run finish without a crash, sanitizer report or hang. Apart from the raw build and crash output, the model gets no Metis runtime or harness guidance, but because the harness runs as a plain host program with no UEFI environment, each crash points to something the driver is missing, which the model fills in from its own UEFI knowledge and the edk2/ sources, so it ends up with a small runtime of its own (e.g., a hand-built gBS). The resemblance to Metis's runtime is therefore reinvented, and because it is ad hoc and often incomplete, the gap between the two experiments measures what the runtime adds.
What the model rebuilds is far less faithful than Metis's runtime, which ports the EDK-II DXE core's handle database, driver dispatch, events and TPL to the host and generates one fuzz-driven mock per consumed protocol under a fixed contract.
The LLM columns in Table 2 report the results of the LLM-only baseline. The baseline produced a running harness for only 25 of the 60 drivers; for the other 35 (***), harness generation did not finish for 27, and for 8 the harness failed to build (6) or crashed before fuzzing started (2). On these 25 drivers, it reaches 79.2% line and 85.5% function coverage on average, compared to 76.7% and 89.1% for METIS on the same drivers; these are largely small drivers with few dependencies. On three of them (ScsiBusDxe, GraphicsConsoleDxe, and HiResourcesSample), the baseline covered none of the driver's lines. Averaged over all 60 drivers, counting failures as 0, the baseline reaches 33.0% line and 35.6% function coverage, against 71.9% and 84.0% for METIS. The baseline rediscovers none of the 14 previously known vulnerabilities, because none of the 10 drivers that contain them got a running harness, and it reports 32 driver bugs, compared to 137 for METIS. Of the 32, manual triage confirms 16 as true positives (11 distinct bugs). The other 16 are harness artifacts: the generated harnesses break firmware contracts. METIS also finds 3 of these true positives and misses 13 (8 distinct bugs). These misses have three causes: mocks that are too well-behaved (4 bugs), no allocation-failure injection (2), and harnesses that never drive the required event sequences (2).
6 Limitations
METIS has several limitations, both in scope and implementation, that we leave to future work.
Bootflow phase coverage. We target DXE drivers only. PEI/SEC, Standalone MM, and runtime drivers are out of scope. SMM-specific vulnerabilities (e.g., CVE-2017-5753 in SmmLockBox) require a real SMM dispatch context that our user-space rehosting does not emulate.
Mock Fidelity. METIS currently under-approximates certain dependency behaviors, particularly asynchronous interactions and callback-driven semantics. As a result, some execution paths and vulnerabilities that depend on precise dependency behavior may not be exercised. We plan to handle precise modeling of asynchronous callbacks in our future work.
Crash Attribution. Because METIS discards crashes that occur outside the target driver (e.g., in a mock or the harness), it may miss true bugs whose crash site differs from their root cause, such as a driver passing a malformed buffer that only triggers a crash inside a dependency mock.
7 Related Work
METIS tackles the problem of EDK2 fuzzing by automatically generating the necessary harnesses and mock dependencies. There are prior works that address a similar problem.
UEFI/EDK2 Firmware Fuzzing. Prior work [27] attempts to fuzz UEFI firmware on real hardware, but such approaches are limited to specific interfaces and do not scale to arbitrary EDK2 components. Scalable UEFI firmware fuzzing requires the ability to rehost firmware in an emulated or virtualized environment. Several works [7, 11, 13, 18, 43, 45, 46] leverage platforms such as Intel Simics [18, 45] or Qiling to fuzz UEFI firmware. However, effectively exercising diverse UEFI/EDK2 interfaces remains a key challenge. Consequently, many approaches [13, 43, 45, 46] focus on post-boot interfaces, particularly SMI handlers, which expose relatively standardized invocation mechanisms. These techniques often rely on symbolic execution [7] and domain-specific static analysis [43] to recover input formats. While effective in narrow settings, they incur high overhead, limit scalability, and lack comprehensive sanitizer support. More importantly, these approaches largely ignore boot-time interfaces, which exhibit richer interaction semantics, complex dependency structures, and diverse input channels, making them difficult to test using existing techniques. Recent work, such as FuzzUER [11], targets boot-time interfaces by executing the full firmware in a simulator and invoking interface functions using synthesized harnesses. However, as we show in § 5.4, FuzzUER fails to exercise all input channels, particularly those arising from protocol dependencies, resulting in limited coverage and reduced bug-finding effectiveness.
Another line of work [36, 37] explores rehosting firmware as user-space applications and leveraging existing fuzzing tools. This approach improves scalability and enables the use of user-space sanitizers. METIS builds on this direction by rehosting EDK2 components using HBFA [40], while introducing DCR to explicitly model dependency interactions as input channels.
Harness Generation. Prior work on automatic harness generation primarily relies on program analysis techniques, such as static analysis [11, 43], symbolic execution [3, 32], or their combination [7, 46]. While effective in generating syntactically correct harnesses, these approaches struggle to capture complex dependency interactions and stateful behaviors inherent in EDK2 protocols.
LLM-assisted generation. Recent works [14, 15, 44, 47] demonstrate the effectiveness of LLMs in generating fuzzing harnesses and improving coverage. However, these approaches target conventional software systems and do not address the unique challenges of EDK2, such as protocol dependencies, stateful interactions, and specialized execution environments.
METIS leverages LLMs for both harness and mock generation, while addressing these challenges through a dependency-aware design and rehosting-based execution.
8 Conclusion
We presented METIS, an automated fuzzing framework for EDK2 protocols that rehosts them as user-space applications. Our key insight is that effective fuzzing of EDK2 protocols requires exercising both interface functions and dependency-driven input channels. To achieve this, METIS introduces DCR, a dependency-aware rehosting technique that combines static analysis and LLM-assisted synthesis to automatically generate harnesses and dependency mocks. Our evaluation on 162 real-world EDK2 protocols and 60 drivers shows that METIS significantly improves coverage and bug-finding effectiveness over prior work, while discovering multiple previously unknown vulnerabilities. These results demonstrate the practicality and effectiveness of dependency-aware rehosting for scalable EDK2 firmware fuzzing.
Data Availability
We will release the following artifacts:
- METIS: the source code, including MetisLib, our helper libraries, and the prompts used for harness generation, mock generation, and crash triaging.
- LLM-only baseline: the pipeline used for the LLM-only comparison in § 5.4.2.
- Multiple LLMs: the pipeline used to run METIS with different LLMs.
- Datasets: all datasets from our evaluation, including the generated harnesses and mocks, fuzzing results, coverage reports, and crash triage results.
Our vulnerability commitment ledger [6] is already public: it records the SHA3-512 hash of each driver's findings on the newly discovered bugs without revealing them, so each finding can be checked against it once it is disclosed.
References
[1] Apple. 2021. UEFI firmware security in an Intel-based Mac. (2021). https://support.apple.com/en-mt/guide/security/seced055bcf6/web [2] ARM. 2020. EDK-2. https://gitlab.arm.com/arm-reference-solutions/edk2-platforms. [3] Oleksandr Bazhaniuk, John Loucaides, Lee Rosenbaum, Mark R. Tuttle, and Vincent Zimmer. 2015. Symbolic Execution for BIOS Security. In 9th USENIX Workshop on Offensive Technologies (WOOT 15). USENIX Association, Washington, D.C. https://www.usenix.org/conference/woot15/workshop-program/presentation/bazhaniuk [4] Binarly REsearch Team. 2023. Finding LogoFAIL: The Dangers of Image Parsing During System Boot. Binarly. https://www.binarly.io/blog/finding-logofail-dangers-of-image-parsing-system-boot [5] Sourag Cherupattamoolayil, Arunkumar Bhattar, Connor Everett Glosner, and Aravind Machiry. 2025. Adding Spatial Memory Safety to EDK II through Checked C (Experience Paper). Proc. ACM Softw. Eng. 2, ISSTA, Article ISSTA054 (June 2025), 22 pages. https://doi.org/10.1145/3728292 [6] Datta Manikanta Sri Hari Danduri, Connor Glosner, Mingjie Shen, and Aravind Kumar Machiry. 2026. Metis vulnerability commitment ledger. Zenodo. https://doi.org/10.5281/zenodo.23749160 [7] Jakob Engblom. 2019. Finding BIOS Vulnerabilities with Symbolic Execution and Virtual Platforms. https://www.intel.com/content/www/us/en/developer/articles/technical/finding-bios-vulnerabilities-with-symbolic-execution-and-virtual-platforms.html [8] Francisco Falcon and Iván Arce. 2024. PixieFail: Nine Vulnerabilities in Tianocore's EDK II IPv6 Network Stack. Quarkslab. https://blog.quarkslab.com/pixiefail-nine-vulnerabilities-in-tianocores-edk-ii-ipv6-network-stack.html [9] Andrew Fasano, Tiemoko Ballo, Marius Muench, Tim Leek, Alexander Bulekov, Brendan Dolan-Gavitt, Manuel Egele, Aurélien Francillon, Long Lu, Nick Gregory, Davide Balzarotti, and William Robertson. 2021. SoK: Enabling Security Analyses of Embedded Systems via Rehosting. In Proceedings of the 2021 ACM Asia Conference on Computer and Communications Security (Virtual Event, Hong Kong) (ASIA CCS '21). Association for Computing Machinery, New York, NY, USA, 687–701. https://doi.org/10.1145/3433210.3453093 [10] Andrea Fioraldi, Dominik Maier, Heiko Eißfeldt, and Marc Heuse. 2020. AFL++ : Combining Incremental Steps of Fuzzing Research. In 14th USENIX Workshop on Offensive Technologies (WOOT 20). USENIX Association. https://www.usenix.org/conference/woot20/presentation/fioraldi
[11] Connor Glosner and Aravind Machiry. 2025. FUZZUER: Enabling Fuzzing of UEFI Interfaces on EDK-2. In Proceedings 2025 Network and Distributed System Security Symposium. Internet Society, San Diego, CA, USA. https://doi.org/10.14722/ndss.2025.240400
[12] George Klees, Andrew Ruef, Benji Cooper, Shiyi Wei, and Michael Hicks. 2018. Evaluating Fuzz Testing. In Proceedings of the 2018 ACM SIGSAC Conference on Computer and Communications Security (Toronto, Canada) (CCS '18). Association for Computing Machinery, New York, NY, USA, 2123–2138. https://doi.org/10.1145/3243734.3243804
[13] Itai Liba and Assaf Carlsbad. 2021. efi_fuzz: A Simple, Coverage-Guided Fuzzer for UEFI NVRAM Variables. SentinelOne. https://github.com/Sentinel-One/efi_fuzz Based on Qiling and AFL++.
[14] Dongge Liu, Oliver Chang, Jonathan Metzman, Martin Sablotny, and Mihai Maruseac. 2024. OSS-Fuzz-Gen: Automated Fuzz Target Generation. https://github.com/google/oss-fuzz-gen
[15] Yuwei Liu, Junquan Deng, Xiangkun Jia, Yanhao Wang, Minghua Wang, Lin Huang, Tao Wei, and Purui Su. 2025. PromeFuzz: A Knowledge-Driven Approach to Fuzzing Harness Generation with Large Language Models. In Proceedings of the 2025 ACM SIGSAC Conference on Computer and Communications Security (Taipei, Taiwan) (CCS '25). Association for Computing Machinery, New York, NY, USA, 1559–1573. https://doi.org/10.1145/3719027.3765222
[16] LLVM Project. 2024. UndefinedBehaviorSanitizer. https://clang.llvm.org/docs/UndefinedBehaviorSanitizer.html.
[17] Valentin J.M. Manès, HyungSeok Han, Choongwoo Han, Sang Kil Cha, Manuel Egele, Edward J. Schwartz, and Maverick Woo. 2021. The Art, Science, and Engineering of Fuzzing: A Survey. IEEE Transactions on Software Engineering 47, 11 (2021), 2312–2331. https://doi.org/10.1109/TSE.2019.2946563
[18] Brandon Marken, Robert Geunzel, and Rowan Hart. 2023. Intel TSFFS – Target Software Fuzzer For Simics. https://github.com/intel/tsffs
[19] Alex Matrosov. 2023. The Untold Story of the BlackLotus UEFI Bootkit. https://www.binarly.io/posts/The_Untold_Story_of_the_BlackLotus_UEFI_Bootkit/index.html
[20] Alexander Matrosov, Sergey Bratus, and Eugene Rodionov. 2019. Rootkits and Bootkits: Reversing Modern Malware and Next Generation Threats. https://api.semanticscholar.org/CorpusID:198338058
[21] Microsoft. 2018. EDK-2. https://github.com/microsoft/mu.
[22] Nikos Mouzakitis, Michele Paolino, Milton D. Grammatikakis, and Daniel Raho. 2021. x86 System Management Mode (SMM) Evaluation for Mixed Critical Systems. In Applications in Electronics Pervading Industry, Environment and Society, Sergio Saponara and Alessandro De Gloria (Eds.). Springer International Publishing, Cham, 164–170.
[23] Siddharth Muralee, Sourag Cherupattamooyil, James C. Davis, Antonio Bianchi, and Aravind Machiry. 2025. Reactive Bottom-Up Testing. arXiv:2509.03711 [cs.CR] https://arxiv.org/abs/2509.03711
[24] NVIDIA. 2022. EDK-2. https://github.com/NVIDIA/edk2.
[25] OpenRouter. [n.d.]. Agent SDK. https://openrouter.ai/docs/agent-sdk/overview
[26] Oraisos. [n.d.]. Serena: A Powerful MCP Toolkit for Coding. https://github.com/oraios/serena
[27] Mahesh Sarikonda and Shanmughasundaram R. 2022. Validation of Firmware Security using Fuzzing and Penetration Methodologies. In 2022 IEEE North Karnataka Subsection Flagship International Conference (NKCon). 1–5. https://doi.org/10.1109/NKCon56289.2022.10126524
[28] Tobias Scharnowski, Nils Bars, Moritz Schloegel, Eric Gustafson, Marius Muench, Giovanni Vigna, Christopher Kruegel, Thorsten Holz, and Ali Abbasi. 2022. Fuzzware: Using Precise MMIO Modeling for Effective Firmware Fuzzing. In 31st USENIX Security Symposium (USENIX Security 22). USENIX Association, Boston, MA, 1239–1256. https://www.usenix.org/conference/usenixsecurity22/presentation/scharnowski
[29] Dell Security. 2024. DSA-2023-191: Security Update for Dell Client BIOS Tianocore EDK2 Vulnerabilities. (2024). https://www.dell.com/support/kbdoc/en-us/000215643/dsa-2023-191-security-update-for-tianocore-edk2-vulnerabilities
[30] Konstantin Serebryany, Derek Bruening, Alexander Potapenko, and Dmitriy Vyukov. 2012. AddressSanitizer: A Fast Address Sanity Checker. In 2012 USENIX Annual Technical Conference (USENIX ATC 12). USENIX Association, Boston, MA, 309–318. https://www.usenix.org/conference/atc12/technical-sessions/presentation/serebryany
[31] Hovav Shacham, Matthew Page, Ben Pfaff, Eu-Jin Goh, Nagendra Modadugu, and Dan Boneh. 2004. On the effectiveness of address-space randomization. In Proceedings of the 11th ACM Conference on Computer and Communications Security (Washington DC, USA) (CCS '04). Association for Computing Machinery, New York, NY, USA, 298–307. https://doi.org/10.1145/1030083.1030124
[32] Md Shafuzzaman, Achintya Desai, Laboni Sarker, and Tevfik Bultan. 2024. STASE: Static Analysis Guided Symbolic Execution for UEFI Vulnerability Signature Generation. In Proceedings of the 39th IEEE/ACM International Conference on Automated Software Engineering (Sacramento, CA, USA) (ASE '24). Association for Computing Machinery, New York, NY, USA, 1783–1794. https://doi.org/10.1145/3691620.3695543
[33] Martin Smolár. 2023. BlackLotus: UEFI Bootkit in the Wild. ESET Research. https://www.welivesecurity.com/2023/03/01/blacklotus-uefi-bootkit-myth-confirmed/
[34] Dokyung Song, Julian Lettner, Prabhu Rajasekaran, Yeoul Na, Stijn Volckaert, Per Larsen, and Michael Franz. 2019. SoK: Sanitizing for Security. In 2019 IEEE Symposium on Security and Privacy (SP). 1275–1295. https://doi.org/10.1109/
SP.2019.00010
[35] Lenovo Support. 2019. TianoCore EDK II BIOS Vulnerabilities. (2019). https://support.lenovo.com/us/en/solutions/ps500222-tianocore-edk-ii-bios-vulnerabilities
[36] Sai Ritvik Tanksalkar, Siddharth Muralee, Srihari Danduri, Paschal Amusuo, Antonio Bianchi, James C. Davis, and Aravind Kumar Machiry. 2025. LEMIX: Enabling Testing of Embedded Applications as Linux Applications. In 34th USENIX Security Symposium (USENIX Security 25). USENIX Association, Seattle, WA, 6937–6956. https://www.usenix.org/conference/usenixsecurity25/presentation/tanksalkar
[37] Hui Jun Tay, Kyle Zeng, Jayakrishna Menon Vadayath, Arvind S Raj, Audrey Dutcher, Tejesh Reddy, Wil Gibbs, Zion Leonahenahe Basque, Fangzhou Dong, Zack Smith, Adam Doupé, Tiffany Bao, Yan Shoshitaishvili, and Ruoyu Wang. 2023. Greenhouse: Single-Service Rehosting of Linux-Based Firmware Binaries in User-Space Emulation. In 32nd USENIX Security Symposium (USENIX Security 23). USENIX Association, Anaheim, CA, 5791–5808. https://www.usenix.org/conference/usenixsecurity23/presentation/tay
[38] Dave Thomas and Andy Hunt. 2002. Mock Objects. IEEE Softw. 19, 3 (May 2002), 22–24. https://doi.org/10.1109/MS.2002.1003449
[39] Tianocore. 2007. EDK-2. https://github.com/tianocore/edk2.
[40] Earl Lynn Tipton, Brian Delgado, Erik C. Bjorge, and Antonio Gomez-Iglesias. 2024. Host Based Firmware Analyzer - Fuzzing Lite (HBFA-FL). https://github.com/intel/HBFA-FL.
[41] UEFI Forum. 2024. Unified Extensible Firmware Interface Specification, Version 2.11. UEFI Forum. https://uefi.org/specifications
[42] Unified Extensible Firmware Interface (UEFI) Forum. 2022. Unified Extensible Firmware Interface (UEFI) Specification. Specification 2.10. UEFI Forum. https://uefi.org/specs/UEFI/2.10/
[43] Huaishuo Yan and Baojiang Cui. 2025. UEFUZZER: Enabling Struct-Aware Fuzzing on UEFI with Static Analysis. In Proceedings of the 2025 5th International Conference on Computer Network Security and Software Engineering (CNSSE '25). Association for Computing Machinery, New York, NY, USA, 350–355. https://doi.org/10.1145/3732365.3732428
[44] Kang Yang, Yunhang Zhang, Zichuan Li, Guanhong Tao, Jun Xu, and Xiaojing Liao. 2025. HarnessAgent: Scaling Automatic Fuzzing Harness Construction with Tool-Augmented LLM Pipelines. arXiv:2512.03420 [cs.CR] https://arxiv.org/abs/2512.03420
[45] Zhenkun Yang, Yuriy Viktorov, Jin Yang, Jiewen Yao, and Vincent Zimmer. 2020. UEFI Firmware Fuzzing with Simics Virtual Platform. In 2020 57th ACM/IEEE Design Automation Conference (DAC), 1–6. https://doi.org/10.1109/DAC18072.2020.9218694
[46] Jiawei Yin, Menghao Li, Yuekang Li, Yong Yu, Boru Lin, Yanyan Zou, Yang Liu, Wei Huo, and Jingling Xue. 2023. RSFuzzer: Discovering Deep SMI Handler Vulnerabilities in UEFI Firmware with Hybrid Fuzzing. In 2023 IEEE Symposium on Security and Privacy (SP). 2155–2169. https://doi.org/10.1109/SP46215.2023.10179421
[47] Cen Zhang, Yaowen Zheng, Mingqiang Bai, Yeting Li, Wei Ma, Xiaofei Xie, Yuekang Li, Limin Sun, and Yang Liu. 2024. How Effective Are They? Exploring Large Language Model Based Fuzz Driver Generation. In Proceedings of the 33rd ACM SIGSOFT International Symposium on Software Testing and Analysis (Vienna, Austria) (ISSTA 2024). Association for Computing Machinery, New York, NY, USA, 1223–1235. https://doi.org/10.1145/3650212.3680355
[48] Vincent Zimmer, Michael Rothman, and Suresh Marisetty. 2017. Beyond BIOS: Developing with the Unified Extensible Firmware Interface, Third Edition (3rd ed.). De|G Press, Berlin, DEU.