arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2408.15372cs.CR
收藏

AutoPatch:面向实时嵌入式设备的自动化热补丁生成

AutoPatch: Automated Generation of Hotpatches for Real-Time Embedded Devices

Mohsen Salehi, Karthik Pattabiraman

AI总结:

提出 AutoPatch,一种通过静态分析官方补丁自动生成功能等价热补丁的新技术,无需硬件或虚拟机支持,在四种嵌入式设备上修复超90%的CVE,平均延迟低于12.7μs,性能优于 RapidPatch。

摘要:

医疗或工业设备等实时嵌入式设备日益成为网络攻击的目标。及时打补丁对于减轻此类攻击对这些设备造成的严重后果至关重要。热补丁是一种在不重启任务关键型嵌入式设备的情况下为其应用补丁的方法。然而,现有的热补丁方法要求开发人员手动为目标系统编写热补丁,这不仅耗时而且容易出错。为了解决这些问题,我们提出了 AutoPatch,这是一种新的热补丁技术,通过对官方补丁进行静态分析,自动生成功能等价的热补丁。AutoPatch 引入了一种新的软件触发方法,支持多种嵌入式设备,并保留了官方补丁的功能。与先前的工作不同,AutoPatch 不依赖硬件支持来触发补丁,也不依赖在专用虚拟机中执行补丁。我们使用 LLVM 编译器实现了 AutoPatch,并在运行流行 RTOS 的四种具有不同规格和架构的嵌入式设备上,利用 62 个真实 CVE 评估了其效率、有效性和通用性。我们发现 AutoPatch 能够修复超过 90% 的 CVE,并成功解决漏洞。结果显示,修复漏洞的平均总延迟低于 12.7 $μs$,比最先进的方法 RapidPatch 性能提升了 50%。此外,我们的平均内存开销略低于他们(23%)。最后,AutoPatch 能够在无需任何修改的情况下为所有四种设备生成热补丁。

英文摘要:

Real-time embedded devices like medical or industrial devices are increasingly targeted by cyber-attacks. Prompt patching is crucial to mitigate the serious consequences of such attacks on these devices. Hotpatching is an approach to apply a patch to mission-critical embedded devices without rebooting them. However, existing hotpatching approaches require developers to manually write the hotpatch for target systems, which is time-consuming and error-prone. To address these issues, we propose AutoPatch, a new hotpatching technique that automatically generates functionally equivalent hotpatches via static analysis of the official patches. AutoPatch introduces a new software triggering approach that supports diverse embedded devices, and preserves the functionality of the official patch. In contrast to prior work, AutoPatch does not rely on hardware support for triggering patches, or on executing patches in specialized virtual machines. We implemented AutoPatch using the LLVM compiler, and evaluated its efficiency, effectiveness and generality using 62 real CVEs on four embedded devices with different specifications and architectures running popular RTOSes. We found that AutoPatch can fix more than 90% of CVEs, and resolve the vulnerability successfully. The results revealed an average total delay of less than 12.7 $μs$ for fixing the vulnerabilities, representing a performance improvement of 50% over RapidPatch, a state-of-the-art approach. Further, our memory overhead, on average, was slightly lower than theirs (23%). Finally, AutoPatch was able to generate hotpatches for all four devices without any modifications.

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

↑