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

大语言模型辅助的程序去膨胀

Large Language Models-Aided Program Debloating

Bo Lin, Shangwen Wang, Yihao Qin, Liqian Chen, Xiaoguang Mao

AI总结:

本文提出LEADER框架,利用大语言模型的语义理解与决策能力,通过文档引导测试增强和多顾问神经符号流水线,在程序去膨胀中同时兼顾功能保持与安全增强,并在基准测试中超越现有工具CovA。

摘要:

随着软件为了适应多样化的功能和平台而日益复杂,软件膨胀已成为一个重大挑战,对性能和安全性产生不利影响。然而,现有方法未能充分解决去膨胀的双重目标:通过保留必要功能来维持功能性,以及通过减少安全问题来增强安全性。具体而言,当前的软件去膨胀技术通常依赖基于输入的分析,将用户输入作为所需功能规范的代理。然而,这些方法经常对所提供的输入过度拟合,导致功能损失和潜在的安全漏洞。为了解决这些局限性,我们提出了LEADER,一个由大语言模型(LLMs)增强的程序去膨胀框架,该框架利用了大语言模型的语义理解能力、生成能力和决策优势。LEADER主要由两个模块组成:(1)一个文档引导的测试增强模块,旨在保持功能性,该模块利用大语言模型理解程序文档,并生成足够的测试以全面覆盖所需功能;(2)一个多顾问辅助的程序去膨胀模块,该模块采用神经符号流水线,确保在去膨胀过程中能够感知软件的安全性。该模块结合去膨胀顾问和安全顾问进行分析,并采用大语言模型作为决策者,以安全地消除不需要的代码。在广泛使用的基准上的大量评估证明了LEADER的有效性。这些结果表明,LEADER在功能性和安全性方面超越了最先进的工具CovA。这些结果凸显了LEADER通过有效平衡功能性和安全性,在程序去膨胀领域树立新标准的潜力。

英文摘要:

As software grows in complexity to accommodate diverse features and platforms, software bloating has emerged as a significant challenge, adversely affecting performance and security. However, existing approaches inadequately address the dual objectives of debloating: maintaining functionality by preserving essential features and enhancing security by reducing security issues. Specifically, current software debloating techniques often rely on input-based analysis, using user inputs as proxies for the specifications of desired features. However, these approaches frequently overfit provided inputs, leading to functionality loss and potential security vulnerabilities. To address these limitations, we propose LEADER, a program debloating framework enhanced by Large Language Models (LLMs), which leverages their semantic understanding, generative capabilities, and decision-making strengths. LEADER mainly consists of two modules: (1) a documentation-guided test augmentation module designed to preserve functionality, which leverages LLMs to comprehend program documentation and generates sufficient tests to cover the desired features comprehensively, and (2) a multi-advisor-aided program debloating module that employs a neuro-symbolic pipeline to ensure that the security of the software can be perceived during debloating. This module combines debloating and security advisors for analysis and employs an LLM as a decision-maker to eliminate undesired code securely. Extensive evaluations on widely used benchmarks demonstrate the efficacy of LEADER. These results demonstrate that LEADER surpasses the state-of-the-art tool CovA in functionality and security. These results underscore the potential of LEADER to set a new standard in program debloating by effectively balancing functionality and security.

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

↑