REMaQE:从可执行文件中逆向工程数学方程
REMaQE: Reverse Engineering Math Equations from Executables
AI总结:
本文提出自动化框架 REMaQE,从二进制可执行文件中逆向工程数学方程,支持寄存器、栈、全局内存、指针参数及 C++ 面向对象实现,在 25,096 个二进制文件上成功恢复方程,并发现 Linux 内核工具 tmon 的 bug。
摘要:
针对工业控制系统和网络物理系统嵌入式设备的网络安全攻击,可能造成灾难性的物理损坏和经济损失。攻击者可通过感染设备二进制文件植入恶意软件,篡改系统运行的物理特性来实现攻击。缓解此类攻击需要借助逆向工程工具,恢复足够的语义知识,即已实现算法的数学方程。传统逆向工程工具能将二进制文件反编译为低级代码,但缺乏语义洞察力。本文提出从二进制可执行文件中逆向工程数学方程的自动化框架 REMaQE。相比现有技术,REMaQE 能处理通过寄存器、栈、全局内存或指针访问的方程参数,并支持对 C++ 类等面向对象实现进行逆向工程。使用 REMaQE,我们在 Linux 内核热监控工具“tmon”中发现了一个 bug。为评估 REMaQE,我们生成了包含 25,096 个二进制文件的数据集,这些文件中的数学方程分别用 C 和 Simulink 实现。REMaQE 成功为全部 25,096 个二进制文件恢复了语义匹配的方程。REMaQE 平均执行时间为 0.48 秒,处理复杂方程最多需 2 秒。其实时执行能力使其能集成到交互式面向数学的逆向工程工作流中。
英文摘要:
Cybersecurity attacks on embedded devices for industrial control systems and cyber-physical systems may cause catastrophic physical damage as well as economic loss. This could be achieved by infecting device binaries with malware that modifies the physical characteristics of the system operation. Mitigating such attacks benefits from reverse engineering tools that recover sufficient semantic knowledge in terms of mathematical equations of the implemented algorithm. Conventional reverse engineering tools can decompile binaries to low-level code, but offer little semantic insight. This paper proposes the REMaQE automated framework for reverse engineering of math equations from binary executables. Improving over state-of-the-art, REMaQE handles equation parameters accessed via registers, the stack, global memory, or pointers, and can reverse engineer object-oriented implementations such as C++ classes. Using REMaQE, we discovered a bug in the Linux kernel thermal monitoring tool "tmon". To evaluate REMaQE, we generate a dataset of 25,096 binaries with math equations implemented in C and Simulink. REMaQE successfully recovers a semantically matching equation for all 25,096 binaries. REMaQE executes in 0.48 seconds on average and in up to 2 seconds for complex equations. Real-time execution enables integration in an interactive math-oriented reverse engineering workflow.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。