Exploiting Bank Conflict-based Side-channel Timing Leakage of GPUs

被引:12
|
作者
Jiang, Zhen Hang [1 ]
Fei, Yunsi [2 ]
Kaeli, David [2 ]
机构
[1] Facebook, Seattle, WA 98109 USA
[2] Northeastern Univ, Elect & Comp Engn Dept, Boston, MA 02115 USA
基金
美国国家科学基金会;
关键词
Side-channel security; GPU security; microarchitectural attack;
D O I
10.1145/3361870
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
To prevent information leakage during program execution, modern software cryptographic implementations target constant-time function, where the number of instructions executed remains the same when program inputs change. However, the underlying microarchitecture behaves differently when processing different data inputs, impacting the execution time of the same instructions. These differences in execution time can covertly leak confidential information through a timing channel. Given the recent reports of covert channels present on commercial microprocessors, a number of microarchitectural features on CPUs have been re-examined from a timing leakage perspective. Unfortunately, a similar microarchitectural evaluation of the potential attack surfaces on GPUs has not been adequately performed. Several prior work has considered a timing channel based on the behavior of a GPU's coalescing unit. In this article, we identify a second finer-grained microarchitectural timing channel, related to the banking structure of the CPU's Shared Memory. By considering the timing channel caused by Shared Memory bank conflicts, we have developed a differential timing attack that can compromise table-based cryptographic algorithms. We implement our timing attack on an Nvidia Kepler K40 GPU and successfully recover the complete 128-bit encryption key of an Advanced Encryption Standard (AES) GPU implementation using 900,000 timing samples. We also evaluate the scalability of our attack method by attacking an implementation of the AES encryption algorithm that fully occupies the compute resources of the GPU. We extend our timing analysis onto other Nvidia architectures: Maxwell, Pascal, Volta, and Turing GPUs. We also discuss countermeasures and experiment with a novel multi-key implementation, evaluating its resistance to our side-channel timing attack and its associated performance overhead.
引用
收藏
页数:24
相关论文
共 50 条
  • [21] Evaluation of Timing Side-channel Leakage on a Multiple-target Dynamic Binary Translator
    Napoli, Otavio O.
    do Rosario, Vanderson Martins
    Aranha, Diego F.
    Borin, Edson
    2018 SYMPOSIUM ON HIGH PERFORMANCE COMPUTING SYSTEMS (WSCAD 2018), 2018, : 198 - 204
  • [22] Cryptographic Software IP Protection without Compromising Performance or Timing Side-channel Leakage
    Biswas, Arnab Kumar
    ACM TRANSACTIONS ON ARCHITECTURE AND CODE OPTIMIZATION, 2021, 18 (02)
  • [23] Side-channel leakage of masked CMOS gates
    Mangard, S
    Popp, T
    Gammel, BM
    TOPICS IN CRYPTOLOGY - CT-RSA 2005, PROCEEDINGS, 2005, 3376 : 351 - 365
  • [24] Evaluating the ROCKY Countermeasure for Side-Channel Leakage
    Miteloudi, Konstantina
    Chmielewski, Lukasz
    Batina, Lejla
    Mentens, Nele
    PROCEEDINGS OF THE 2021 IFIP/IEEE INTERNATIONAL CONFERENCE ON VERY LARGE SCALE INTEGRATION (VLSI-SOC), 2021, : 212 - 217
  • [25] A Frequency-based Leakage Assessment Methodology for Side-Channel Evaluations
    Lei, Wan
    Wang, Lihui
    Shan, Weijun
    Jiang, Kun
    Li, Qing
    2017 13TH INTERNATIONAL CONFERENCE ON COMPUTATIONAL INTELLIGENCE AND SECURITY (CIS), 2017, : 590 - 593
  • [26] Side-Channel Information Leakage of Code-Based Masked Implementations
    Cheng, Wei
    Rioul, Olivier
    Liu, Yi
    Beguinot, Julien
    Guilley, Sylvain
    2022 17TH CANADIAN WORKSHOP ON INFORMATION THEORY (CWIT), 2022, : 51 - 56
  • [27] Verification of Power-based Side-channel Leakage through Simulation
    Yao, Yuan
    Schaumont, Patrick
    Van Woudenberg, Jasper
    Breunesse, Cees-Bart
    Santillan, Edgar Mateos
    Stecyk, Steve
    2020 IEEE 63RD INTERNATIONAL MIDWEST SYMPOSIUM ON CIRCUITS AND SYSTEMS (MWSCAS), 2020, : 1112 - 1115
  • [28] A Timing Side-Channel Attack on a Mobile GPU
    Karimi, Elmira
    Jiang, Zhen Hang
    Fei, Yunsi
    Kaeli, David
    2018 IEEE 36TH INTERNATIONAL CONFERENCE ON COMPUTER DESIGN (ICCD), 2018, : 67 - 74
  • [29] Research on Side-channel Attack Based on Stochastic Model with Lower Leakage
    Liu, Zixin
    Zhu, Ting
    5TH ANNUAL INTERNATIONAL CONFERENCE ON INFORMATION SYSTEM AND ARTIFICIAL INTELLIGENCE (ISAI2020), 2020, 1575
  • [30] Side-channel Timing Attack of RSA on a GPU
    Luo, Chao
    Fei, Yunsi
    Kaeli, David
    ACM TRANSACTIONS ON ARCHITECTURE AND CODE OPTIMIZATION, 2019, 16 (03)