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

UVSCAN:检测物联网固件中第三方组件使用违规

UVSCAN: Detecting Third-Party Component Usage Violations in IoT Firmware

Binbin Zhao, Shouling Ji, Xuhong Zhang, Yuan Tian, Qinying Wang, Yuwen Pu, Chenyang Lyu, Raheem Beyah

AI总结:

UVScan利用NLP从第三方组件文档提取规范,并引导二进制分析,自动检测物联网固件中跨架构的组件使用违规,精确率和召回率超70%。

摘要:

如今,物联网设备在固件中集成了大量第三方组件(TPCs)以缩短开发周期。第三方组件通常有严格的使用规范,例如检查函数的返回值。违反第三方组件的使用规范可能导致严重后果,例如空指针解引用。因此,如果大量第三方组件集成未正确实施,将导致物联网设备中普遍存在漏洞。在第三方组件集成中自动检测漏洞面临多个挑战:(1)第三方组件文档中的高层规范与物联网固件中的低层实现之间存在差距。(2)物联网固件大多是闭源二进制文件,从源代码编译时丢失了大量信息,且具有多样化的架构。为应对这些挑战,我们设计并实现了UVScan,一个自动化且可扩展的系统,用于检测物联网固件中的第三方组件使用违规。在UVScan中,我们首先提出了一种基于自然语言处理(NLP)的新型规则提取框架,该框架从不一致格式的第三方组件文档中提取API规范。然后,我们设计了一个规则驱动的NLP引导的二进制分析引擎,该引擎将高层第三方组件文档中的逻辑信息映射到低层二进制文件,并检测不同架构下物联网固件中的第三方组件使用违规。我们从四个角度对四个流行的第三方组件和六个真实数据集评估了UVScan。结果表明,UVScan实现了超过70%的精确率和召回率,并且与即使是源代码级别的API误用检测器相比,也有显著的性能提升。

英文摘要:

Nowadays, IoT devices integrate a wealth of third-party components (TPCs) in firmware to shorten the development cycle. TPCs usually have strict usage specifications, e.g., checking the return value of the function. Violating the usage specifications of TPCs can cause serious consequences, e.g., NULL pointer dereference. Therefore, this massive amount of TPC integrations, if not properly implemented, will lead to pervasive vulnerabilities in IoT devices. Detecting vulnerabilities automatically in TPC integration is challenging from several perspectives: (1) There is a gap between the high-level specifications from TPC documents, and the low-level implementations in the IoT firmware. (2) IoT firmware is mostly the closed-source binary, which loses a lot of information when compiling from the source code and has diverse architectures. To address these challenges, we design and implement UVScan, an automated and scalable system to detect TPC usage violations in IoT firmware. In UVScan, we first propose a novel natural language processing (NLP)-based rule extraction framework, which extracts API specifications from inconsistently formatted TPC documents. We then design a rule-driven NLP-guided binary analysis engine, which maps the logical information from the high-level TPC document to the low-level binary, and detects TPC usage violations in IoT firmware across different architectures. We evaluate UVScan from four perspectives on four popular TPCs and six ground-truth datasets. The results show that UVScan achieves more than 70% precision and recall, and has a significant performance improvement compared with even the source-level API misuse detectors.

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

↑