arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2605.22058cs.SEcs.CR
收藏

通过LLM辅助符号执行寻找TEE中的缺失输入验证

Finding Missing Input Validation in TEEs via LLM-Assisted Symbolic Execution

Singapore Management University(新加坡管理大学)

Chengyan Ma, Jieke Shi, Ruidong Han, Ye Liu, Yuqing Niu, David Lo

AI总结:

本文提出SymTEE,一种利用LLM辅助符号执行检测TEE应用中缺失输入验证问题的框架,通过AST分析提取可能缺乏充分输入验证的代码片段,并利用LLM生成轻量级mock环境进行符号分析,实验表明其在检测漏洞方面具有高精度和召回率。

摘要:

可信执行环境(TEE)提供硬件强制隔离,保护敏感代码和数据免受不可信软件的侵害。尽管其具有强大的安全保证,但分析TEE应用仍然具有挑战性,因为完全配置TEE构建和运行时环境的成本和复杂性很高,且硬件隔离限制了可观测性。本文提出了SymTEE,一种新的大型语言模型(LLM)辅助符号执行框架,用于在不需实际TEE设置的情况下检测TEE应用中的缺失输入验证问题。SymTEE首先利用抽象语法树(AST)分析提取可能缺乏足够输入验证的TEE代码片段,然后利用LLM(我们的情况是GPT-5)自动将提取的片段转换为KLEE兼容的Harness程序,其中包含轻量级mock执行环境用于符号分析。在26个漏洞(11个真实世界和15个合成)上的评估显示,SymTEE在检测缺失输入验证漏洞方面实现了100%的精度和92.3%的召回率,平均分析成本仅为0.05美元。这些结果证明了SymTEE开创性的LLM辅助符号执行范式的有效性和实用性,其中LLM自主生成mock环境,能够实现自动化安全分析而无需复杂的设置,提供了一个更可访问且可扩展的受信任计算系统框架。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑