Leaking secrets in homomorphic encryption with side-channel attacks
Leaking secrets in homomorphic encryption with side-channel attacks
复制标题
DOI:
10.1007/s13389-023-00340-2
复制
发表时间:
2024-01
影响因子:
1.9
通讯作者:
Furkan Aydin;Aydin Aysu
中科院分区:
文献类型:
--
作者:
Furkan Aydin;Aydin Aysu
Homomorphic encryption (HE) allows computing encrypted data in the ciphertext domain without knowing the encryption key. It is possible, however, to break fully homomorphic encryption (FHE) algorithms by using side channels. This article demonstrates side-channel leakages of the Microsoft SEAL HE library. The proposed attack can steal encryption keys during the key generation phase by abusing the leakage of ternary value assignments that occurs during the number theoretic transform (NTT) algorithm. We propose two attacks, one for-O0flag non-optimized code implementation which targetsadditionandsubtractionoperations, and one for-O3flag compiler optimization which targetsguardandmul_rootoperations. In particular, the attacks can steal the secret key coefficients from asinglepower/electromagnetic measurement trace of SEAL’s NTT implementation. To achieve high accuracy with asingle-trace, we develop novel machine-learning side-channel profilers. On an ARM Cortex-M4F processor, our attacks are able to extract secret key coefficients with an accuracy of 98.3% when compiler optimization is disabled, and 98.6% when compiler optimization is enabled. We finally demonstrate that our attack can evade an application of the random delay insertion defense.