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

通过逐段编译和加载消除软件膨胀

Debloating Software through Piece-Wise Compilation and Loading

Anh Quach, Aravind Prakash, Lok Kwong Yan

摘要:

程序臃肿。我们的研究表明,在Ubuntu桌面环境(2016年程序)中,平均只有5%的libc被使用;最重的用户,vlc媒体播放器,只需要18%。在本文中:(1)我们提出了一个基于编译器工具链的debloating框架,可以成功地debloat程序(共享/静态库和可执行文件)。我们的解决方案可以在Ubuntu Desktop 16.04上成功编译和加载大多数库。(2)我们演示了从coreutils中删除79%以上的代码,从SPEC CPU 2006基准程序中删除86%的代码,而不影响功能。我们表明,即使是复杂的程序,如Firefox和curl可以debloated,而无需重新编译。(3)我们通过消除coreutils套件中超过71%的可重用代码小工具来展示debloating的安全影响,并表明包含真实世界漏洞的未使用代码也可以成功消除,而不会对程序产生不利影响。(4)我们的加载时间开销很低。

英文摘要:

Programs are bloated. Our study shows that only 5% of libc is used on average across the Ubuntu Desktop environment (2016 programs); the heaviest user, vlc media player, only needed 18%. In this paper: (1) We present a debloating framework built on a compiler toolchain that can successfully debloat programs (shared/static libraries and executables). Our solution can successfully compile and load most libraries on Ubuntu Desktop 16.04. (2) We demonstrate the elimination of over 79% of code from coreutils and 86% of code from SPEC CPU 2006 benchmark programs without affecting functionality. We show that even complex programs such as Firefox and curl can be debloated without a need to recompile. (3) We demonstrate the security impact of debloating by eliminating over 71% of reusable code gadgets from the coreutils suite and show that unused code that contains real-world vulnerabilities can also be successfully eliminated without adverse effects on the program. (4) We incur a low load time overhead.

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

↑