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

基于神经网络的定时泄漏检测与量化

Efficient Detection and Quantification of Timing Leaks with Neural Networks

University of Colorado Boulder(科罗拉多大学博尔德分校)

Saeid Tizpaz-Niari, Pavol Cerny, Sriram Sankaranarayanan, Ashutosh Trivedi

摘要:

通过定时侧信道的信息泄漏的检测和量化对于保证机密性是重要的。尽管静态分析仍然是用于检测定时侧信道的流行方法,但是对于现实世界的应用,其在计算上具有挑战性。此外,检测技术通常限于“是”或“否”的答案。在实践中,真实世界的应用程序可能需要泄漏有关秘密的信息。因此,量化技术是必要的,以评估信息泄漏的威胁。由于这两个问题对于静态分析技术来说都非常困难或不可能,因此我们提出了一种动态分析方法。我们的新方法是将问题分为两个任务。首先,我们学习程序的时序模型作为神经网络。其次,我们分析神经网络来量化信息泄漏。正如我们的实验所证明的,这两个任务在实践中是可行的-使该方法比最先进的侧通道检测器和量化器有了显着的改进。我们的主要技术贡献是(a)一个神经网络架构,使侧信道发现和(b)基于MILP的算法来估计侧信道强度。在一组微基准测试和实际应用中,我们证明了神经网络模型可以用成千上万的方法来学习程序的时序行为。我们还表明,可以有效地分析具有数千个神经元的神经网络,以检测和量化通过定时侧通道的信息泄漏。

英文摘要:

Detection and quantification of information leaks through timing side channels are important to guarantee confidentiality. Although static analysis remains the prevalent approach for detecting timing side channels, it is computationally challenging for real-world applications. In addition, the detection techniques are usually restricted to 'yes' or 'no' answers. In practice, real-world applications may need to leak information about the secret. Therefore, quantification techniques are necessary to evaluate the resulting threats of information leaks. Since both problems are very difficult or impossible for static analysis techniques, we propose a dynamic analysis method. Our novel approach is to split the problem into two tasks. First, we learn a timing model of the program as a neural network. Second, we analyze the neural network to quantify information leaks. As demonstrated in our experiments, both of these tasks are feasible in practice --- making the approach a significant improvement over the state-of-the-art side channel detectors and quantifiers. Our key technical contributions are (a) a neural network architecture that enables side channel discovery and (b) an MILP-based algorithm to estimate the side-channel strength. On a set of micro-benchmarks and real-world applications, we show that neural network models learn timing behaviors of programs with thousands of methods. We also show that neural networks with thousands of neurons can be efficiently analyzed to detect and quantify information leaks through timing side channels.

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

↑