Fuzzing BusyBox:利用LLM与崩溃复用挖掘嵌入式漏洞
Fuzzing BusyBox: Leveraging LLM and Crash Reuse for Embedded Bug Unearthing
AI总结:
针对嵌入式设备中广泛使用的BusyBox的漏洞问题,提出利用LLM生成目标特定初始种子增强模糊测试、复用相似目标崩溃数据的两种技术,无需传统模糊测试即可在最新BusyBox中发现崩溃,提升嵌入式漏洞检测效率。
摘要:
BusyBox是一款将300多个核心Linux命令整合到单个可执行文件中的开源软件,在基于Linux的嵌入式设备中无处不在。BusyBox中的漏洞可能造成深远影响,波及大量设备。本研究受BusyBox广泛应用的推动,对其展开分析。研究发现,现实世界的嵌入式产品中普遍存在旧版本BusyBox,这促使我们对BusyBox开展模糊测试(fuzz testing)。模糊测试是一种关键的软件测试方法,旨在引发崩溃,随后对崩溃进行分析以挖掘漏洞。在本研究中,我们提出两种强化软件测试的技术。第一种技术通过利用大语言模型(Large Language Models, LLM)生成针对特定目标的初始种子,来增强模糊测试效果。研究表明,使用LLM生成的初始种子时,崩溃数量大幅增加,凸显了LLM能够高效解决生成特定目标初始种子这一通常耗时费力的任务的潜力。第二种技术是在对新目标启动模糊测试之前,复用从类似已模糊测试目标中先前获取的崩溃数据。该方法通过在开始模糊测试前直接向新目标提供崩溃数据,简化了耗时的模糊测试流程。我们无需开展传统模糊测试,就在最新的BusyBox目标中成功识别出崩溃,凸显了LLM和崩溃复用技术在强化软件测试、提升嵌入式系统漏洞检测方面的有效性。此外,我们还进行了人工分类,以明确最新版BusyBox中崩溃的性质。
英文摘要:
BusyBox, an open-source software bundling over 300 essential Linux commands into a single executable, is ubiquitous in Linux-based embedded devices. Vulnerabilities in BusyBox can have far-reaching consequences, affecting a wide array of devices. This research, driven by the extensive use of BusyBox, delved into its analysis. The study revealed the prevalence of older BusyBox versions in real-world embedded products, prompting us to conduct fuzz testing on BusyBox. Fuzzing, a pivotal software testing method, aims to induce crashes that are subsequently scrutinized to uncover vulnerabilities. Within this study, we introduce two techniques to fortify software testing. The first technique enhances fuzzing by leveraging Large Language Models (LLM) to generate target-specific initial seeds. Our study showed a substantial increase in crashes when using LLM-generated initial seeds, highlighting the potential of LLM to efficiently tackle the typically labor-intensive task of generating target-specific initial seeds. The second technique involves repurposing previously acquired crash data from similar fuzzed targets before initiating fuzzing on a new target. This approach streamlines the time-consuming fuzz testing process by providing crash data directly to the new target before commencing fuzzing. We successfully identified crashes in the latest BusyBox target without conducting traditional fuzzing, emphasizing the effectiveness of LLM and crash reuse techniques in enhancing software testing and improving vulnerability detection in embedded systems. Additionally, manual triaging was performed to identify the nature of crashes in the latest BusyBox.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。