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 条
  • [41] A lightweight ISE for ChaCha on RISC-V
    Marshall, Ben
    Page, Daniel
    Thinh Hung Pham
    2021 IEEE 32ND INTERNATIONAL CONFERENCE ON APPLICATION-SPECIFIC SYSTEMS, ARCHITECTURES AND PROCESSORS (ASAP 2021), 2021, : 25 - 32
  • [42] Towards Transparent Dynamic Binary Translation from RISC-V to a CGRA
    Wirsch, Ramon
    Hochberger, Christian
    ARCHITECTURE OF COMPUTING SYSTEMS (ARCS 2021), 2021, 12800 : 118 - 132
  • [43] SpecTerminator: Blocking Speculative Side Channels Based on Instruction Classes on RISC-V
    Jin, Hai
    He, Zhuo
    Qiang, Weizhong
    ACM TRANSACTIONS ON ARCHITECTURE AND CODE OPTIMIZATION, 2022, 20 (01)
  • [44] Closing the RISC-V Compliance Gap: Looking from the Negative Testing Side
    Herdt, Vladimir
    Gross, Daniel
    Drechsler, Rolf
    PROCEEDINGS OF THE 2020 57TH ACM/EDAC/IEEE DESIGN AUTOMATION CONFERENCE (DAC), 2020,
  • [45] Thermal Performance Analysis of Mempool RISC-V Multicore SoC
    Venkateswarlu, Sankatali
    Mishra, Subrat
    Oprins, Herman
    Vermeersch, Bjorn
    Brunion, Moritz
    Han, Jun-Han
    Stan, Mircea R.
    Weckx, Pieter
    Catthoor, Francky
    IEEE TRANSACTIONS ON VERY LARGE SCALE INTEGRATION (VLSI) SYSTEMS, 2022, 30 (11) : 1668 - 1676
  • [46] ABBY: Automating leakage modelling for side-channel analysis
    Bazangani, Omid
    Iooss, Alexandre
    Buhan, Ileana
    Batina, Lejla
    PROCEEDINGS OF THE 19TH ACM ASIA CONFERENCE ON COMPUTER AND COMMUNICATIONS SECURITY, ACM ASIACCS 2024, 2024, : 231 - 244
  • [47] Side-Channel Leakage Analysis of Inner Product Masking
    Li, Yuyuan
    Li, Lang
    Ou, Yu
    CMC-COMPUTERS MATERIALS & CONTINUA, 2024, 79 (01): : 1245 - 1262
  • [48] A Security RISC: Microarchitectural Attacks on Hardware RISC-V CPUs
    Gerlach, Lukas
    Weber, Daniel
    Zhang, Ruiyi
    Schwarz, Michael
    2023 IEEE SYMPOSIUM ON SECURITY AND PRIVACY, SP, 2023, : 2321 - 2338
  • [49] PicoRio: An Open-Source, RISC-V Small-Board Computer to Elevate the RISC-V Software Ecosystem
    Zhangxi Tan
    Lin Zhang
    David Patterson
    Yi Li
    Tsinghua Science and Technology, 2021, 26 (03) : 384 - 386
  • [50] PicoRio: An Open-Source, RISC-V Small-Board Computer to Elevate the RISC-V Software Ecosystem
    Tan, Zhangxi
    Zhang, Lin
    Patterson, David
    Li, Yi
    TSINGHUA SCIENCE AND TECHNOLOGY, 2021, 26 (03) : 384 - 386