MAMBO-V: Dynamic Side-Channel Leakage Analysis on RISC-V

被引:0
|
作者
Wichelmann, Jan [1 ]
Peredy, Christopher [1 ]
Sieck, Florian [1 ]
Paetschke, Anna [1 ]
Eisenbarth, Thomas [1 ]
机构
[1] Univ Lubeck, Lubeck, Germany
关键词
RISC-V; Side-channel attacks; Dynamic binary instrumentation; Software security;
D O I
10.1007/978-3-031-35504-2_1
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
RISC-V is an emerging technology, with applications ranging from embedded devices to high-performance servers. Therefore, more and more security-critical workloads will be conducted with code that is compiled for RISC-V. Well-known microarchitectural side-channel attacks against established platforms like x86 apply to RISC-V CPUs as well. As RISC-V does not mandate any hardware-based side-channel countermeasures, a piece of code compiled for a generic RISC-V CPU in a cloud server cannot make safe assumptions about the microarchitecture on which it is running. Existing tools for aiding software-level precautions by checking side-channel vulnerabilities on source code or x86 binaries are not compatible with RISC-V machine code. In this work, we study the requirements and goals of architecture-specific leakage analysis for RISC-V and illustrate how to achieve these goals with the help of fast and precise dynamic binary analysis. We implement all necessary building blocks for finding side-channel leakages on RISC-V, while relying on existing mature solutions when possible. Our leakage analysis builds upon the modular side-channel analysis framework Microwalk, that examines execution traces for leakage through secret-dependent memory accesses or branches. To provide suitable traces, we port the ARM dynamic binary instrumentation tool MAMBO to RISC-V. Our port named MAMBO-V can instrument arbitrary binaries which use the 64-bit general purpose instruction set. We evaluate our toolchain on several cryptographic libraries with RISC-V support and identify multiple leakages.
引用
收藏
页码:3 / 23
页数:21
相关论文
共 50 条
  • [31] Towards a firmware TPM on RISC-V
    Boubakri, Marouene
    Chiatante, Fausto
    Zouari, Belhassen
    PROCEEDINGS OF THE 2021 DESIGN, AUTOMATION & TEST IN EUROPE CONFERENCE & EXHIBITION (DATE 2021), 2021, : 647 - 650
  • [32] Maxpool operator for RISC-V processor
    Nevezi-Strango, David
    Rotar, Danut
    Valcan, Sorin
    Gaianu, Mihail
    2023 25TH INTERNATIONAL SYMPOSIUM ON SYMBOLIC AND NUMERIC ALGORITHMS FOR SCIENTIFIC COMPUTING, SYNASC 2023, 2023, : 246 - 250
  • [33] RISC-V的“芯”技术
    俞灵琦
    华东科技, 2021, (02) : 18 - 21
  • [35] Design of IOMMU Based on RISC-V
    Wang, Zhendao
    Ban, Guilong
    Hu, Jin
    Jiao, Xufeng
    Hunan Daxue Xuebao/Journal of Hunan University Natural Sciences, 2024, 51 (06): : 187 - 194
  • [36] Side-channel leakage models for RISC instruction set architectures from empirical data
    Seuschek, Hermann
    Rass, Stefan
    MICROPROCESSORS AND MICROSYSTEMS, 2016, 47 : 74 - 81
  • [37] Side-Channel Leakage Models for RISC Instruction Set Architectures from Empirical Data
    Seuschek, Hermann
    Rass, Stefan
    2015 EUROMICRO CONFERENCE ON DIGITAL SYSTEM DESIGN (DSD), 2015, : 423 - 430
  • [38] Hardware Accelerated FrodoKEM on RISC-V
    Karl, Patrick
    Fritzmann, Tim
    Sigl, Georg
    2022 25TH INTERNATIONAL SYMPOSIUM ON DESIGN AND DIAGNOSTICS OF ELECTRONIC CIRCUITS AND SYSTEMS (DDECS), 2022, : 154 - 159
  • [39] RISC-V Extension for Lightweight Cryptography
    Tehrani, Etienne
    Graba, Tarik
    Merabet, Abdelmalek Si
    Danger, Jean-Luc
    2020 23RD EUROMICRO CONFERENCE ON DIGITAL SYSTEM DESIGN (DSD 2020), 2020, : 222 - 228
  • [40] A Compiler Comparison in the RISC-V Ecosystem
    Poorhosseini, Mehrdad
    Nebel, Wolfgang
    Gruettner, Kim
    2020 INTERNATIONAL CONFERENCE ON OMNI-LAYER INTELLIGENT SYSTEMS (IEEE COINS 2020), 2020, : 80 - 85