Lexo:通过LLM辅助程序再生消除隐蔽的供应链攻击
Lexo: Eliminating Stealthy Supply-Chain Attacks via LLM-Assisted Program Regeneration
AI总结:
Lexo通过LLM辅助程序再生技术,有效消除隐蔽的供应链攻击,实现高效、兼容的恶意代码清除。
摘要:
软件供应链攻击是开源软件生态系统中一个重要的持续性问题。这些攻击保持了组件所实现的标准功能,但还会在组件到达目标环境时隐藏恶意功能。Lexo通过自动学习和再生潜在恶意组件的无漏洞版本来解决此类隐蔽攻击。Lexo首先生成一组输入输出对以建模组件的完整可观测行为,然后利用这些对来合成原始组件的新版本。新组件实现了原始功能,但避免了隐蔽的恶意行为。在整个再生过程中,Lexo咨询多个不同的大型语言模型(LLMs),使用正确性和覆盖率指标来引导这些实例,并对其结果进行限制。在对100多个真实世界包的评估中,包括高知名度的隐蔽供应链攻击,表明Lexo能够跨多个领域扩展,高效地再生代码(平均<30m),保持兼容性,并在几个真实世界供应链攻击中成功消除恶意代码,即使当最先进的LLM在给定组件源代码并提示进行处理时未能消除恶意代码。
英文摘要:
Software supply-chain attacks are an important and ongoing concern in the open source software ecosystem. These attacks maintain the standard functionality that a component implements, but additionally hide malicious functionality activated only when the component reaches its target environment. Lexo addresses such stealthy attacks by automatically learning and regenerating vulnerability-free versions of potentially malicious components. Lexo first generates a set of input-output pairs to model a component's full observable behavior, which it then uses to synthesize a new version of the original component. The new component implements the original functionality but avoids stealthy malicious behavior. Throughout this regeneration process, Lexo consults several distinct instances of Large Language Models (LLMs), uses correctness and coverage metrics to shepherd these instances, and guardrails their results. An evaluation on 100+ real-world packages, including high-profile stealthy supply-chain attacks, indicates that Lexo scales across multiple domains, regenerates code efficiently (<30m on average), maintains compatibility, and succeeds in eliminating malicious code in several real-world supply-chain-attacks, even in cases when a state-of-the-art LLM fails to eliminate malicious code when given the source code of the component and prompted to do so.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。