Electronics (Apr 2023)

Applying Address Encryption and Timing Noise to Enhance the Security of Caches

  • Dehua Wu,
  • Sha Tao,
  • Wanlin Gao

DOI
https://doi.org/10.3390/electronics12081799
Journal volume & issue
Vol. 12, no. 8
p. 1799

Abstract

Read online

Encrypting the mapping relationship between physical and cache addresses has been a promising technique to prevent conflict-based cache side-channel attacks. However, this method is not foolproof and the attackers can still build a side-channel despite the increased difficulty of finding the minimal eviction set. To address this issue, we propose a new protection method that integrates both address encryption and timing noise extension mechanisms. By adding the timing noise extension mechanism to the address encryption method, we can randomly generate cache misses that prevent the attackers from pruning the eviction set. Our analysis shows that the timing noise extension mechanism can cause the attackers to fail in obtaining accurate timing information for accessing memory. Furthermore, our proposal reduces the timing noise generating rate, minimizing performance overhead. Our experiments on SPEC CPU 2017 show that the integrated mechanism only resulted in a tiny performance overhead of 2.9%.

Keywords