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

更少真的是更多吗?为什么通过软件去膨胀减少代码重用小工具数量不一定会提高安全性

Is Less Really More? Why Reducing Code Reuse Gadget Counts via Software Debloating Doesn't Necessarily Indicate Improved Security

Michael D. Brown, Santosh Pande

摘要:

几乎所有的现代软件都存在膨胀问题,这对其性能和安全性产生了负面影响。为了解决这个问题,已经提出了几种自动化技术来解浮动软件。在许多这些工作中,用来证明改进的安全性的一个关键指标是代码重用小工具计数减少。此度量的使用基于流行的想法,即减少软件包中可用的小工具的数量会减少其攻击面,并使攻击者更难以安装基于小工具的代码重用漏洞,例如面向返回的编程(ROP)。在本文中,我们挑战这一想法,并通过各种现实的debloating方案显示固有的小工具计数减少指标的缺陷。具体来说,我们证明了软件debloating可以实现高的小工具计数减少率,但未能限制攻击者的能力,构建一个漏洞。更糟糕的是,在某些情况下,高的小工具数量减少率掩盖了软件去浮动通过引入新的有用小工具而使安全性更差的情况。为了解决这些问题,我们提出了一套四个新的度量标准,通过软件debloating是面向质量的,而不是面向数量的安全改进实现。我们表明,这些指标可以识别时debloating负面影响的安全性,并有效地计算使用我们的静态二进制分析工具,小工具集分析器。最后,我们证明了这些指标的实用性在两个现实的案例研究:迭代debloating和debloater评估。

英文摘要:

Nearly all modern software suffers from bloat that negatively impacts its performance and security. To combat this problem, several automated techniques have been proposed to debloat software. A key metric used in many of these works to demonstrate improved security is code reuse gadget count reduction. The use of this metric is based on the prevailing idea that reducing the number of gadgets available in a software package reduces its attack surface and makes mounting a gadget-based code reuse exploit such as return-oriented programming (ROP) more difficult for an attacker. In this paper, we challenge this idea and show through a variety of realistic debloating scenarios the flaws inherent to the gadget count reduction metric. Specifically, we demonstrate that software debloating can achieve high gadget count reduction rates, yet fail to limit an attacker's ability to construct an exploit. Worse yet, in some scenarios high gadget count reduction rates conceal instances in which software debloating makes security worse by introducing new, useful gadgets. To address these issues, we propose a set of four new metrics for measuring security improvements realized through software debloating that are quality-oriented rather than quantity-oriented. We show that these metrics can identify when debloating negatively impacts security and be efficiently calculated using our static binary analysis tool, the Gadget Set Analyzer. Finally, we demonstrate the utility of these metrics in two realistic case studies: iterative debloating and debloater evaluation.

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

↑