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

Jan Wichelmann, Florian Sieck, Anna Pätschke, Thomas Eisenbarth
8/31/2022
26 citations
cs.CRcs.SE

Official code: microwalk-project/Microwalk (87 stars, C#, MIT, last commit 2025-11-15).

Abstract

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

MIT

A microarchitectural leakage detection framework using dynamic instrumentation.

8710C#, JavaScriptJul 30, 20181 years agoMIT
cryptodynamic-instrumentationside-channel-attacks

Similar Papers

Cite this paper

@article{wichelmann2022microwalkci,
  title  = {Microwalk-CI: Practical Side-Channel Analysis for JavaScript Applications},
  author = {Jan Wichelmann and Florian Sieck and Anna Pätschke and Thomas Eisenbarth},
  year   = {2022},
  eprint = {2208.14942},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2208.14942}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2208.14942.svg)](https://codeofpaper.com/paper/2208.14942)

Discussion