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 条
  • [41] Confident Leakage Assessment - A Side-Channel Evaluation Framework based on Confidence Intervals
    Bache, Florian
    Plump, Christina
    Gueneysu, Tim
    PROCEEDINGS OF THE 2018 DESIGN, AUTOMATION & TEST IN EUROPE CONFERENCE & EXHIBITION (DATE), 2018, : 1117 - 1122
  • [42] A New Foe in GPUs: Power Side-Channel Attacks on Neural Network
    Jeon, Hyeran
    Karimian, Nima
    Lehman, Tamara
    PROCEEDINGS OF THE 2021 TWENTY SECOND INTERNATIONAL SYMPOSIUM ON QUALITY ELECTRONIC DESIGN (ISQED 2021), 2021, : 313 - 313
  • [43] Owl: Differential-based Side-Channel Leakage Detection for CUDA Applications
    Zhao, Yu
    Xue, Wenjie
    Chen, Weijie
    Qiang, Weizhong
    Zou, Deqing
    Jin, Hai
    2024 54TH ANNUAL IEEE/IFIP INTERNATIONAL CONFERENCE ON DEPENDABLE SYSTEMS AND NETWORKS, DSN 2024, 2024, : 362 - 376
  • [44] Practical Timing Side-Channel Attacks on Memory Compression
    Schwarzl, Martin
    Borrello, Pietro
    Saileshwar, Gururaj
    Mueller, Hanna
    Schwarz, Michael
    Gruss, Daniel
    2023 IEEE SYMPOSIUM ON SECURITY AND PRIVACY, SP, 2023, : 1186 - 1203
  • [45] Timing Side-channel Attacks and Countermeasures in CPU Microarchitectures
    Zhang, Jiliang
    Chen, Congcong
    Cui, Jinhua
    Li, Keqin
    ACM COMPUTING SURVEYS, 2024, 56 (07)
  • [46] Exploiting side-channel leaks in web traffic of incremental search
    Li, Ding
    Lin, Wei
    Lu, Bin
    Zhu, Yuefei
    COMPUTERS & SECURITY, 2021, 111
  • [47] Exploiting the Physical Disparity: Side-Channel Attacks on Memory Encryption
    Unterluggauer, Thomas
    Mangard, Stefan
    CONSTRUCTIVE SIDE-CHANNEL ANALYSIS AND SECURE DESIGN, COSADE 2016, 2016, 9689 : 3 - 18
  • [48] Exploiting On-chip Power Management for Side-Channel Security
    Singh, Arvind
    Kar, Monodeep
    Mathew, Sanu
    Rajan, Anand
    De, Vivek
    Mukhopadhyay, Saibal
    PROCEEDINGS OF THE 2018 DESIGN, AUTOMATION & TEST IN EUROPE CONFERENCE & EXHIBITION (DATE), 2018, : 401 - 406
  • [49] Task Parameters Analysis in Schedule-Based Timing Side-Channel Attack
    Liu, Songran
    Yi, Wang
    IEEE ACCESS, 2020, 8 : 157103 - 157115
  • [50] A side-channel attack method based on chosen plaintext-timing difference
    Sun C.-H.
    Li H.
    Yang Y.
    Lü C.
    Huanan Ligong Daxue Xuebao/Journal of South China University of Technology (Natural Science), 2011, 39 (02): : 100 - 107