“Here is a particularly nice paper (proper methodology, well-explained intro, etc.) showing one example”
Malware Guard Extension: Using SGX to Conceal Cache Attacks
恶意 SGX enclave 对同机 enclave 发起 Prime+Probe 缓存侧信道攻击
展示一个运行在真实 SGX 硬件上的恶意 enclave,能对同机的其他 enclave 发起细粒度的软件侧信道攻击,并利用 SGX 的保护机制隐藏自身,在原生环境和多个 Docker 容器之间都可行。对运行采用常数时间乘法的最新 RSA 实现的 enclave 做 Prime+Probe 缓存攻击:半同步攻击下从单条轨迹提取 96% 的 RSA 私钥,自动化攻击可在 5 分钟内由 11 条轨迹提取完整私钥。
评论者把它当作缓存侧信道攻击能从虚拟机或 enclave 中窃取数据的范例论文,用来说明缓存隔离难以保护 enclave,以及常数时间密码实现很难做对、也难以跨平台移植。
学习路径
读这篇之前,按顺序读书架上的 2 篇 · 参考文献来自 OpenAlex,顺序和要点由 Claude Code 排出这条路径帮我了解不依赖特权的 JavaScript 缓存攻击和软件诱发硬件故障,再读恶意 SGX enclave 如何用 Prime+Probe 隐藏缓存攻击。
- 1
它给出了无需特权的缓存攻击实践,Prime+Probe 的思想来自这类工作。
读Prime+Probe 缓存攻击的原理与如何在受限环境中实现。
- 2
同样展示了在受限软件环境下利用微架构行为发起攻击,是目标论文威胁模型的参照。
读不依赖特权指令的攻击实现思路;不必深究 DRAM 细节。
- 3Malware Guard Extension: Using SGX to Conceal Cache Attacks
目标论文:恶意 SGX enclave 对同机 enclave 发起缓存攻击。
读SGX 的隔离与攻击模型、Prime+Probe 在 enclave 内的实现,以及攻击如何绕过检测。
HN 书评
推荐在前,同类按时间 · 每篇最多保留 20 条,统计用全部提及“Yes it was specifically called out in someone's tweet I'm trying to find but I believe this was mentioned in the paper.”
“it would run in a part of the processor that Google presumably cannot access (or measure [2]).”
“The problem is, as this paper demonstrates (along with many others) coding up a constant time crypto and especially making it portable over time and architectures, is nearly impossible.”
- Malware Guard Extension: Using SGX to Conceal Cache Attacks ↗razer6 · 2017-03-06 · 2 分
- Malware Guard Extension: Using SGX to Conceal Cache Attacks ↗campuscodi · 2017-03-11 · 1 分