Search papers, labs, and topics across Lattice.
This paper introduces SymTEE, a framework that uses LLMs to automatically generate KLEE-compatible harness programs from TEE code slices, enabling symbolic execution for vulnerability detection without requiring a real TEE setup. By leveraging AST analysis and GPT-5, SymTEE converts potentially vulnerable code into analyzable programs with lightweight mock environments. Evaluation on 26 vulnerabilities demonstrates 100% precision and 92.3% recall in detecting missing input validation issues, at a cost of $0.05 per analysis.
Skip the costly TEE setup: SymTEE uses LLMs to automatically create mock environments for symbolic execution, slashing the complexity of finding vulnerabilities in trusted computing systems.
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.