arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2208.14942cs.CRcs.SE
收藏

Microwalk-CI:面向 JavaScript 应用的实用侧信道分析

Microwalk-CI: Practical Side-Channel Analysis for JavaScript Applications

Jan Wichelmann, Florian Sieck, Anna Pätschke, Thomas Eisenbarth

AI总结:

针对 JavaScript 密码学库缺乏易用侧信道检测工具的问题,本文提出 Microwalk-CI 框架,支持泄漏定位量化、执行轨迹生成与 CI 集成,并在多个流行库中发现严重泄漏。

摘要:

密码学实现中依赖于秘密的计时行为会导致可利用的漏洞,从而削弱其安全性。多年来,人们已经提出了许多用于自动检测计时泄漏、甚至证明不存在计时泄漏的工具。然而,IEEE S&P 2022 的一项近期研究表明,尽管许多开发者了解一种或多种分析工具,但他们在将这些工具集成到自身工作流时面临很大困难,因为现有工具使用繁琐,而且将发现的泄漏映射到其来源代码片段需要专业知识。此外,现有工具主要关注 C 等编译型语言,或分析二进制文件,而行业和开源社区已经转向解释型语言,其中最显著的是 JavaScript。在本工作中,我们提出 Microwalk-CI,这是一种新型侧信道分析框架,可轻松集成到 JavaScript 开发工作流中。首先,我们用一种新的分析算法扩展现有动态方法,该算法能够高效定位并量化泄漏,使其适合在实际开发中使用。随后,我们提出一种从 JavaScript 应用生成执行轨迹的技术,这些轨迹可进一步用我们的算法以及最初为二进制分析设计的其他算法进行分析。最后,我们讨论如何将 Microwalk-CI 集成到持续集成(CI)流水线中,以实现高效且持续的监控。我们通过对若干流行的 JavaScript 密码学库进行全面评估来评价该分析框架,并发现了许多严重泄漏。

英文摘要:

Secret-dependent timing behavior in cryptographic implementations has resulted in exploitable vulnerabilities, undermining their security. Over the years, numerous tools to automatically detect timing leakage or even to prove their absence have been proposed. However, a recent study at IEEE S&P 2022 showed that, while many developers are aware of one or more analysis tools, they have major difficulties integrating these into their workflow, as existing tools are tedious to use and mapping discovered leakages to their originating code segments requires expert knowledge. In addition, existing tools focus on compiled languages like C, or analyze binaries, while the industry and open-source community moved to interpreted languages, most notably JavaScript. In this work, we introduce Microwalk-CI, a novel side-channel analysis framework for easy integration into a JavaScript development workflow. First, we extend existing dynamic approaches with a new analysis algorithm, that allows efficient localization and quantification of leakages, making it suitable for use in practical development. We then present a technique for generating execution traces from JavaScript applications, which can be further analyzed with our and other algorithms originally designed for binary analysis. Finally, we discuss how Microwalk-CI can be integrated into a continuous integration (CI) pipeline for efficient and ongoing monitoring. We evaluate our analysis framework by conducting a thorough evaluation of several popular JavaScript cryptographic libraries, and uncover a number of critical leakages.

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

↑