RECON:一种增强LLM的逆向约束分析框架
RECON: An LLM-Enhanced Backward Constraint Analysis Framework
AI总结:
提出RECON框架,结合LLM语义理解与静态分析,从Android字节码中提取精确执行约束,比传统符号执行快5.8倍且成功率达100%。
摘要:
尽管传统技术(如符号执行)为程序分析中的精确约束推理提供了原则性基础,但它们难以扩展到现代软件系统,主要原因包括路径爆炸、函数建模需求以及低级程序表示中语义意图的丢失。在诸如Android等复杂执行环境中,由于广泛的框架交互和事件驱动行为,这些限制更加突出。因此,在本文中,我们提出了一种新颖的大型语言模型(LLM)增强的逆向约束分析框架,该框架结合了静态程序分析的精确性与LLM的语义理解能力,从Android字节码中提取精确的执行约束。我们的方法名为RECON,从目标方法到应用程序入口点执行逆向路径发现,发现方法级控制流约束,并利用LLM推理将字节码条件转换为可解释的规范。我们使用五种LLM在78个Android约束提取场景中评估了RECON,并将其与真实世界应用上的传统符号执行进行了比较。结果表明,我们的方法比传统符号执行快5.8倍,成功率达100%,同时保持逻辑等价性并提供显著更精确和可解释的输出。我们进一步在100个样本上评估了RECON用于恶意软件分析。结果表明,在生成导致危险API行为执行的语义约束以及检测跨多个执行路径的复杂约束方面,成功率达84%。
英文摘要:
While traditional techniques, such as symbolic execution, provide a principled foundation for precise constraint reasoning in program analysis, they struggle to scale to modern software systems mainly due to path explosion, the need for function modeling, and the loss of semantic intent at low-level program representations. In complex execution environments such as Android, characterized by extensive framework interactions and event-driven behavior, these limitations are even more amplified. Thus, in this paper, we present a novel large language model (LLM)-enhanced backward constraint analysis framework that combines the precision of static program analysis with LLM's semantic understanding to extract precise execution constraints from Android bytecode. Our approach, titled RECON, performs backward path discovery from target method(s) to the application entry point(s), discovers method-level control-flow constraints, and leverages LLM reasoning to transform bytecode conditions into interpretable specifications. We evaluated RECON using five LLMs across 78 Android constraint-extraction scenarios and compared it with traditional symbolic execution on real-world applications. Results demonstrate that our approach operates 5.8X faster than traditional symbolic execution, with a 100% success rate, while maintaining logical equivalence and providing significantly more precise and interpretable output. We further evaluated RECON for malware analysis on 100 samples. The results indicate an 84% success rate in generating semantic constraints that lead to the execution of dangerous API behaviors and in detecting complex constraints across multiple execution paths.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。