arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2109.12209cs.CRcs.SE
收藏

基于SSE分析的Linux嵌入式固件污点类型漏洞发现

Finding Taint-Style Vulnerabilities in Linux-based Embedded Firmware with SSE-based Alias Analysis

Kai Cheng, Tao Liu, Le Guan, Peng Liu, Hong Li, Hongsong Zhu, Limin Sun

摘要:

虽然使用静态分析来检测基于Linux的嵌入式固件中的污点式漏洞的重要性被广泛认可,但是现有方法受到三个主要限制的困扰。(a)基于符号执行的方法可能会错过别名信息,因此会有很高的假阴性率。(b)基于VSA(值集分析)的方法通常提供过度近似的指针范围。因此,可能会产生许多假阳性。(c)现有的工作检测污点风格的漏洞不考虑间接调用解决方案,而间接调用中经常使用面向互联网的嵌入式设备。因此,可能会产生许多假阴性。在这项工作中,我们提出了一个精确的需求驱动的流,上下文和字段敏感的别名分析方法。在此基础上,我们还设计了一种新的间接调用解析方案。结合消毒规则检查,我们的解决方案发现污染风格的漏洞静态污点分析。我们用一个名为EmTaint的原型实现了我们的想法,并对来自六个流行供应商的35个真实嵌入式固件样本进行了评估。EmTaint发现了至少192个bug,包括41个n-day bug和151个0-day bug。在撰写本文时,至少有115个CVE/PSV编号已从报告的漏洞子集中分配。与KARONTE和SaTC等最先进的工具相比,EmTaint在更短的时间内在同一数据集上发现了更多的错误。

英文摘要:

Although the importance of using static analysis to detect taint-style vulnerabilities in Linux-based embedded firmware is widely recognized, existing approaches are plagued by three major limitations. (a) Approaches based on symbolic execution may miss alias information and therefore suffer from a high false-negative rate. (b) Approaches based on VSA (value set analysis) often provide an over-approximate pointer range. As a result, many false positives could be produced. (c) Existing work for detecting taint-style vulnerability does not consider indirect call resolution, whereas indirect calls are frequently used in Internet-facing embedded devices. As a result, many false negatives could be produced. In this work, we propose a precise demand-driven flow-, context- and field-sensitive alias analysis approach. Based on this new approach, we also design a novel indirect call resolution scheme. Combined with sanitization rule checking, our solution discovers taint-style vulnerabilities by static taint analysis. We implemented our idea with a prototype called EmTaint and evaluated it against 35 real-world embedded firmware samples from six popular vendors. EmTaint discovered at least 192 bugs, including 41 n-day bugs and 151 0-day bugs. At least 115 CVE/PSV numbers have been allocated from a subset of the reported vulnerabilities at the time of writing. Compared to state-of-the-art tools such as KARONTE and SaTC, EmTaint found significantly more bugs on the same dataset in less time.

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

↑