分层二元模板法:有效检测引物和接头引入的泄漏
Layered Binary Templating: Efficient Detection of Compiler- and Linker-introduced Leakage
摘要:
缓存模板攻击证明了共享库中用户输入的自动泄漏。但是,对于大型二进制文件,运行时非常高。其他自动化方法集中于加密实现和媒体软件,但不直接适用于用户输入。因此,在巨大的代码库内以高速缓存行粒度发现和消除所有用户输入侧信道泄漏是不切实际的。本文提出了一种新的通用缓存模板攻击技术,LBTA,分层二进制模板攻击。LBTA使用多个粗粒度侧通道层作为缓存行粒度模板的扩展,以加快缓存模板攻击的运行时间。我们描述了LBTA与不同粒度的具体侧通道,从64 B到2MB在实践中和理论上超越一个可变的层数。特别地,软件级页面缓存侧通道与硬件级L3缓存侧通道的组合已经将模板化运行时间减少了三个数量级。我们将LBTAs应用于不同的软件项目,从而在编译和链接过程中发现数据重复删除和死剥离作为新的安全问题。我们表明,这些机制引入了大的空间距离在二进制文件中的数据访问在一个pencil,使可靠的泄漏的pencil。在基于Chromium的应用程序上使用LBTA,我们可以构建一个完全无特权的基于缓存的键盘记录器。我们的研究结果表明,所有基于Chromium的应用程序的用户输入都受到影响,我们在一系列流行的应用程序上证明了这一点,包括Signal,Threema,Discord和密码管理器应用程序,如passky。由于这不是个别应用程序的缺陷,而是框架的缺陷,因此我们得出结论,所有使用框架的应用程序也将受到影响,即,数百个APP
英文摘要:
Cache template attacks demonstrated automated leakage of user input in shared libraries. However, for large binaries, the runtime is prohibitively high. Other automated approaches focused on cryptographic implementations and media software but are not directly applicable to user input. Hence, discovering and eliminating all user input side-channel leakage on a cache-line granularity within huge code bases are impractical. In this paper, we present a new generic cache template attack technique, LBTA, layered binary templating attacks. LBTA uses multiple coarser-grained side channel layers as an extension to cache-line granularity templating to speed up the runtime of cache templating attacks. We describe LBTA with a variable number of layers with concrete side channels of different granularity, ranging from 64 B to 2MB in practice and in theory beyond. In particular the software-level page cache side channel in combination with the hardware-level L3 cache side channel, already reduces the templating runtime by three orders of magnitude. We apply LBTAs to different software projects and thereby discover data deduplication and dead-stripping during compilation and linking as novel security issues. We show that these mechanisms introduce large spatial distances in binaries for data accessed during a keystroke, enabling reliable leakage of keystrokes. Using LBTA on Chromium-based applications, we can build a full unprivileged cache-based keylogger. Our findings show that all user input to Chromium-based apps is affected and we demonstrate this on a selection of popular apps including Signal, Threema, Discord, and password manager apps like passky. As this is not a flaw of individual apps but the framework, we conclude that all apps that use the framework will also be affected, i.e., hundreds of apps.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。