Finding Missing Input Validation in TEEs via LLM-Assisted Symbolic Execution Conference: 2026 IEEE/ACM Third International Conference on AI Foundation Models and Software Engineering; April 12–13, 2026; Rio de Janeiro, Brazil 2026 IEEE/ACM Third International Conference on AI Foundation Models and Software Engineering (FORGE ’26), April 12–13, 2026, Rio de Janeiro, Brazil DOI: 10.1145/3793655.3793740 ISBN: 979-8-4007-2477-0/2026/04
Chengyan Ma, Jieke Shi, Ruidong Han, Ye Liu, Yuqing Niu, David Lo · 2026
Read Finding Missing Input Validation in TEEs via LLM-Assisted Symbolic Execution Conference: 2026 IEEE/ACM Third International Conference on AI Foundation Models and Software Engineering; April 12–13, 2026; Rio de Janeiro, Brazil 2026 IEEE/ACM Third International Conference on AI Foundation Models and Software Engineering (FORGE ’26), April 12–13, 2026, Rio de Janeiro, Brazil DOI: 10.1145/3793655.3793740 ISBN: 979-8-4007-2477-0/2026/04 by Chengyan Ma, Jieke Shi, Ruidong Han, Ye Liu, Yuqing Niu, David Lo (2026) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2605-22058.txt.
Introduction
Chengyan Ma and co-authors present SymTEE, a system that finds missing input validation in trusted execution environments using language-model-assisted symbolic execution. These isolate sensitive code and data in hardware, yet analyzing their apps is costly and limited by hardware isolation. SymTEE lets language models autonomously generate mock environments, enabling auto security analysis without complex setup. Tests report 92.3 percent recall in detecting missing input validation flaws at an average cost of only 0.05 dollars, showing a practical, scalable path for trusted computing security.
Catalog record
| CREATOR | Chengyan Ma, Jieke Shi, Ruidong Han, Ye Liu, Yuqing Niu, David Lo |
|---|---|
| YEAR | 2026 |
| COLLECTION | PAPERS |
| FORMAT | TXT |
| FILE SIZE | 24003 |
| LICENSE | http://creativecommons.org/licenses/by/4.0/ |
| RIGHTS | CC BY |
| SOURCE | arXiv |
Source: https://arxiv.org/abs/2605.22058
Browse the full library · About the Tower of Babel
Full text
The opening of the work, from the library's hosted text:
Finding Missing Input Validation in TEEs via LLM-Assisted Symbolic Execution Conference: 2026 IEEE/ACM Third International Conference on AI Foundation Models and Software Engineering; April 12–13, 2026; Rio de Janeiro, Brazil 2026 IEEE/ACM Third International Conference on AI Foundation Models and Software Engineering (FORGE ’26), April 12–13, 2026, Rio de Janeiro, Brazil DOI: 10.1145/3793655.3793740 ISBN: 979-8-4007-2477-0/2026/04 Chengyan Ma, Jieke Shi, Ruidong Han, Ye Liu, Yuqing Niu, David Lo Abstract . Trusted Execution Environments (TEEs) provide hardware-enforced isolation that protects sensitive code and data from untrusted software. Despite their strong security guarantees, analyzing TEE applications remains challenging due to the high cost and complexity of configuring complete TEE build and runtime environments, as well as the limited observability imposed by hardware isolation. This paper presents SymTEE, a novel large language model (LLM)-assisted symbolic execution framework for detecting missing input validation issues in TEE applications without requiring real TEE setups. SymTEE begins by leveraging Abstract Syntax Tree (AST) analysis to extract TEE code slices that may lack sufficient input validation, and then employs an LLM (GPT-5 in our case) to automatically convert the extracted slices into KLEE-compatible harness programs containing lightweight mock execution environments for symbolic analysis. Evaluations on 26 vulnerabilities (11 real-world and 15 synthetic) show that SymTEE achieves 100% precision and 92.3% recall in detecting missing input validation vulnerabilities while incurring an average analysis cost of only $0.05. These results demonstrate the effectiveness and practicality of SymTEE’s pioneering paradigm of LLM-assisted symbolic execution, where LLMs autonomously generate mock environments to enable automated security analysis without complex setup, providing a more accessible and scalable framework for trusted computing systems. † † cc-license: by 1. Introduction Figure 1 . Architecture of a Trusted Execution Environment (TEE), which is isolated from the normal world and can only be accessed via secure APIs. A Trusted Execution Environment (TEE) is a segregated area within a processor and its memory that isolates sensitive code and data from potentially compromised software or operating systems ( 22 ; 25 ; 33 ) , thereby ensuring the confidentiality and integrity of critical computations and assets like cryptographic keys ( 3 ) and biometric information ( 2 ; 22 ) . Major hardware vendors, including Intel and ARM, have developed TEE infrastructures, with Intel Software Guard Extensions (SGX) ( 11 ) and ARM TrustZone ( 21 ) being two widely-adopted implementations. As shown in Figure 1 , they typically divide the computing environment into a normal world and a secure world (TEE). The normal world hosts untrusted components that cannot access or tamper with data in the secure world, which is protected by hardware-enforced isolation mechanisms like memory partitioning and encryption, and can only be accessed via secure application programming interfaces (APIs) provided by hardware vendors. TEEs have become a cornerstone of trustworthy computing, supporting applications such as mobile payments ( 1 ; 24 ; 36 ) , digital identity management ( 13 ; 25 ) , and many other security-critical services that collectively safeguard assets and user data. ⬇ 1 // GitHub Project: shuaifengyun/basicAlg_use (commit 327f23d) 2 // File: core/tee/crypto_ta_pbkdf2.c 3 @@ -261,6 +261,9 @@ void g_CryptoTaPbkdf_PBKDF2 (..., int dkLen ) 4 // Improper TEE usage: missing input validation of data from untrusted normal world 5 - TEE_MemMove ( output , resultBuf , dkLen ); 6 // Fix: Added input validation to prevent buffer overflow 7 + if ( dkLen > 512) 8 + return TEE_ERROR_BAD_PARAMETERS ; 9 + TEE_MemMove ( output , resultBuf , dkLen ); 10 return TEE_SUCCESS ; Figure 2 . Example of missing input length validation in a memory copy operation from the untrusted normal world to a fixed-size buffer within the TEE, found in a cryptographic library on GitHub ( shuaifengyun/basicAlg_use ). Our SymTEE successfully detected this issue and suggested a fix. However, developing secure TEE-based applications is challenging. Similar to the insecure practices often observed in cryptographic and other security-critical contexts ( 31 ; 30 ; 18 ) , many developers with limited security expertise may misuse or insecurely apply the secure APIs provided by hardware vendors when building TEE applications, thereby undermining security guarantees or even introducing new attack surfaces. A common class of vulnerabilities in TEE applications arises from insufficient validation and sanitization of input data received from the potentially compromised normal world, including improper or missing checks on data size, format, or validity ( 27 ) . Such flaws can lead to severe memory corruption issues such as buffer, stack, and heap overflows ( 23 ; 27 ) . Figure 2 illustrates this issue with a vulnerability found in a TEE-based cryptographic library on GitHub, where the developer failed to validate the input length of parameters received from the normal world. This omission can result in buffer overflows, turning the TEE from a security boundary into an exploitable target, where attackers can craft malicious inputs that corrupt memory and potentially compromise the secure environment. Detecting missing input validation issues is challenging because such bugs often occur only under specific input conditions and execution paths (e.g., when input sizes exceed buffer limits), making them difficult for static analysis to reliably confirm ( 23 ; 27 ) and often requiring dynamic analysis to capture their runtime semantics. However, the unique architecture of TEEs introduces multiple obstacles for dynamic analysis techniques such as fuzzing and symbolic execution, which have proven effective for conventional software ( 28 ; 4 ) . Concretely, TEEs are accessible only through vendor-defined secure interfaces that common security-oriented fuzzers ( 29 ) or symbolic executors ( 7 ) do not natively support ( 32 ; 22 ; 27 ) , forcing researchers to build custom harnesses and loaders that are often tedious and error-prone. Executing real TEEs further requires a specialized toolchain and environment for cross-compilation and signing on hardware with TEE support ( 25 ) , so even running a simple “hello-world” test case demands substantial setup effort and may be infeasible when appropriate hardware is unavailable. Moreover, TEE isolation prevents the normal world from observing or instrumenting the secure world, rendering standard debugging methods ineffective because crashes or coverage data cannot be collected without modifying the TEE or its APIs. Collectively, these constraints cause most off-the-shelf dynamic analysis tools to fail when analyzing TEE applications, thereby overlooking subtle input-validation flaws hidden within the secure world. In this paper, we present SymTEE, a Large Language Model (LLM)-assisted symbolic execution framework for detecting missing input validation issues in TEE applications. The core idea of SymTEE is to tackle the aforementioned challenges by leveraging LLMs to automatically generate mock environments that emulate TEE runtimes with minimal stub dependencies, eliminating the need for full TEE setups or specialized hardware. SymTEE starts with performing Abstract Syntax Tree (AST)-based analysis to extract code slices that may lack input validation, enabling focused analysis on high-risk code regions. Then, it uses an LLM (OpenAI GPT-5 in our case) to expand each code slice into a complete program with minimal stubs compatible with KLEE ( 7 ) , a dynamic symbolic execution engine, allowing symbolic execution to run locally without instrumenting a real TEE. Finally, SymTEE applies KLEE to explore execution paths and identify inputs that violate the assertion oracles generated in the previous step by the