Trim My View:一种基于 LLM 的机器人固件模块检索代码查询系统
Trim My View: An LLM-Based Code Query System for Module Retrieval in Robotic Firmware
AI总结:
本文提出一种结合二进制分解、反编译与 LLM 函数摘要的经济型引擎,用于识别被剥离元数据的机器人固件二进制模块并生成自然语言描述,基于 ArduPilot 467 个模块的实验表明 CodeStral 取得 0.68 的平均 F1 分数。
摘要:
软件编译过程往往会掩盖系统的原始设计,使得仅通过检查生成的二进制代码难以识别各个组件并辨别其用途。尽管反编译技术试图从机器码中恢复更高级别的源代码,但它们无法完全还原原始函数的语义。此外,二进制文件通常会被剥离元数据,这使得对复杂二进制软件进行逆向工程极具挑战性。\n在本文中,我们展示了如何结合二进制分解技术、反编译步骤以及基于 LLM 的函数摘要,构建一个经济的引擎,用于识别被剥离的二进制文件中的模块,并将其与高级自然语言描述相关联。我们使用三个底层开源 LLM——CodeQwen、DeepSeek-Coder 和 CodeStral 实例化了该技术,并测量了其在识别机器人固件模块方面的有效性。该实验评估涉及来自 ArduPilot 软件套件四个设备的 467 个模块,结果表明,表现最佳的 LLM CodeStral 的平均 F1 分数为 0.68,在线运行时间仅需几秒钟。
英文摘要:
The software compilation process has a tendency to obscure the original design of the system and makes it difficult both to identify individual components and discern their purpose simply by examining the resulting binary code. Although decompilation techniques attempt to recover higher-level source code from the machine code in question, they are not fully able to restore the semantics of the original functions. Furthermore, binaries are often stripped of metadata, and this makes it challenging to reverse engineer complex binary software. In this paper we show how a combination of binary decomposition techniques, decompilation passes, and LLM-powered function summarization can be used to build an economical engine to identify modules in stripped binaries and associate them with high-level natural language descriptions. We instantiated this technique with three underlying open-source LLMs -- CodeQwen, DeepSeek-Coder and CodeStral -- and measured its effectiveness in identifying modules in robotics firmware. This experimental evaluation involved 467 modules from four devices from the ArduPilot software suite, and showed that CodeStral, the best-performing backend LLM, achieves an average F1-score of 0.68 with an online running time of just a handful of seconds.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。