Cipherfix: Mitigating Ciphertext Side-Channel Attacks in Software

被引:0
|
作者
Wichelmann, Jan [1 ]
Paetschke, Anna [1 ]
Wilke, Luca [1 ]
Eisenbarth, Thomas [1 ]
机构
[1] Univ Lubeck, Lubeck, Germany
关键词
D O I
暂无
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Trusted execution environments (TEEs) provide an environment for running workloads in the cloud without having to trust cloud service providers, by offering additional hardwareassisted security guarantees. However, main memory encryption as a key mechanism to protect against system-level attackers trying to read the TEE's content and physical, off-chip attackers, is insufficient. The recent Cipherleaks attacks infer secret data from TEE-protected implementations by analyzing ciphertext patterns exhibited due to deterministic memory encryption. The underlying vulnerability, dubbed the ciphertext side-channel, is neither protected by state-of-the-art counter-measures like constant-time code nor by hardware fixes. Thus, in this paper, we present a software-based, drop-in solution that can harden existing binaries such that they can be safely executed under TEEs vulnerable to ciphertext side-channels, without requiring recompilation. We combine taint tracking with both static and dynamic binary instrumentation to find sensitive memory locations, and mitigate the leakage by masking secret data before it gets written to memory. This way, although the memory encryption remains deterministic, we destroy any secret-dependent patterns in encrypted memory. We show that our proof-of-concept implementation protects various constant-time implementations against ciphertext side-channels with reasonable overhead.
引用
收藏
页码:6789 / 6806
页数:18
相关论文
共 50 条
  • [1] Side-Channel Attacks on Cryptographic Software
    Lawson, Nate
    [J]. IEEE SECURITY & PRIVACY, 2009, 7 (06) : 65 - 68
  • [2] Mitigating Timing Side-Channel Attacks in Software-Defined Networks: Detection and Response
    Shoaib, Faizan
    Chow, Yang-Wai
    Vlahu-Gjorgievska, Elena
    Nguyen, Chau
    [J]. TELECOM, 2023, 4 (04): : 877 - 900
  • [3] Security Network On-Chip for Mitigating Side-Channel Attacks
    Kenarangi, Farid
    Partin-Vaisband, Inna
    [J]. 2019 ACM/IEEE INTERNATIONAL WORKSHOP ON SYSTEM LEVEL INTERCONNECT PREDICTION (SLIP), 2019,
  • [4] Shielding Software From Privileged Side-Channel Attacks
    Dong, Xiaowan
    Shen, Zhuojia
    Criswell, John
    Cox, Alan L.
    Dwarkadas, Sandhya
    [J]. PROCEEDINGS OF THE 27TH USENIX SECURITY SYMPOSIUM, 2018, : 1441 - 1458
  • [5] Design of a Set of Software Tools for Side-Channel Attacks
    Fuentes, A.
    Hernandez, L.
    Martin, A.
    Alarcos, B.
    [J]. IEEE LATIN AMERICA TRANSACTIONS, 2015, 13 (06) : 1966 - 1978
  • [6] Reveal the Invisible Secret: Chosen-Ciphertext Side-Channel Attacks on NTRU
    Xu, Zhuang
    Pemberton, Owen
    Oswald, David
    Zheng, Zhiming
    [J]. SMART CARD RESEARCH AND ADVANCED APPLICATIONS, CARDIS 2022, 2023, 13820 : 227 - 247
  • [7] RIC: Relaxed Inclusion Caches for Mitigating LLC Side-Channel Attacks
    Kayaalp, Mehmet
    Khasawneh, Khaled N.
    Esfeden, Hodjat Asghari
    Elwell, Jesse
    Abu-Ghazaleh, Nael
    Ponomarev, Dmitry
    Jaleel, Aamer
    [J]. PROCEEDINGS OF THE 2017 54TH ACM/EDAC/IEEE DESIGN AUTOMATION CONFERENCE (DAC), 2017,
  • [8] Cloud Aid - A Cloud Computing Tool for Mitigating Side-Channel Attacks
    Gomes, Ricardo Bianchin
    Medina, Roseclea Duarte
    Moro, Fernando Gomes
    [J]. NOMS 2018 - 2018 IEEE/IFIP NETWORK OPERATIONS AND MANAGEMENT SYMPOSIUM, 2018,
  • [9] Parasite: Mitigating Physical Side-Channel Attacks Against Neural Networks
    Chabanne, Herve
    Danger, Jean-Luc
    Guiga, Linda
    Kuhne, Ulrich
    [J]. SECURITY, PRIVACY, AND APPLIED CRYPTOGRAPHY ENGINEERING, SPACE 2021, 2022, 13162 : 148 - 167
  • [10] Defensive Charging: Mitigating Power Side-Channel Attacks on Charging Smartphones
    Matovu, Richard
    Serwadda, Abdul
    Bilbao, Argenis V.
    Griswold-Steiner, Isaac
    [J]. PROCEEDINGS OF THE TENTH ACM CONFERENCE ON DATA AND APPLICATION SECURITY AND PRIVACY, CODASPY 2020, 2020, : 179 - 190