MicroWalk: A Framework for Finding Side Channels in Binaries

Jan Wichelmann, Ahmad Moghimi, Thomas Eisenbarth, Berk Sunar
8/16/2018
cs.CR

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

Abstract

Microarchitectural side channels expose unprotected software to information leakage attacks where a software adversary is able to track runtime behavior of a benign process and steal secrets such as cryptographic keys. As suggested by incremental software patches for the RSA algorithm against variants of side-channel attacks within different versions of cryptographic libraries, protecting security-critical algorithms against side channels is an intricate task. Software protections avoid leakages by operating in constant time with a uniform resource usage pattern independent of the processed secret. In this respect, automated testing and verification of software binaries for leakage-free behavior is of importance, particularly when the source code is not available. In this work, we propose a novel technique based on Dynamic Binary Instrumentation and Mutual Information Analysis to efficiently locate and quantify memory based and control-flow based microarchitectural leakages. We develop a software framework named \tool~for side-channel analysis of binaries which can be extended to support new classes of leakage. For the first time, by utilizing \tool, we perform rigorous leakage analysis of two widely-used closed-source cryptographic libraries: \emph{Intel IPP} and \emph{Microsoft CNG}. We analyze $15$ different cryptographic implementations consisting of $112$ million instructions in about $105$ minutes of CPU time. By locating previously unknown leakages in hardened implementations, our results suggest that \tool~can efficiently find microarchitectural leakages in software binaries.

View on arXivView PDF

Code Implementations(1)

MIT

A microarchitectural leakage detection framework using dynamic instrumentation.

8710C, C#Jul 30, 201811 months agoMIT
cryptodynamic-instrumentationside-channel-attacks

Similar Papers

Cite this paper

@article{wichelmann2018microwalk,
  title  = {MicroWalk: A Framework for Finding Side Channels in Binaries},
  author = {Jan Wichelmann and Ahmad Moghimi and Thomas Eisenbarth and Berk Sunar},
  year   = {2018},
  eprint = {1808.05575},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1808.05575}
}

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/1808.05575.svg)](https://codeofpaper.com/paper/1808.05575)

Discussion