Skip to main content
QUICK REVIEW

[论文解读] JackHammer: Efficient Rowhammer on Heterogeneous FPGA-CPU Platforms

Zane Weissman, Thore Tiemann|arXiv (Cornell University)|Jun 19, 2020
Security and Verification in ComputingComputer Science参考文献 54被引用 14
一句话总结

本文提出 JackHammer,一种针对 Intel Arria 10 GX FPGA-CPU 平台主机 CPU 主内存的新型 Rowhammer 攻击,攻击者通过 FPGA 发起攻击。通过绕过 CPU 缓存并直接针对 DRAM 行,JackHammer 的速度是基于 CPU 的 Rowhammer 的两倍,位翻转率提高四倍,从而在 WolfSSL 的 RSA 签名等密码学代码中实现高效的故障注入,相较于纯 CPU 攻击具有 25% 的性能优势。

ABSTRACT

After years of development, FPGAs are finally making an appearance on multi-tenant cloud servers. Heterogeneous FPGA-CPU microarchitectures require reassessment of common assumptions about isolation and security boundaries, as they introduce new attack vectors and vulnerabilities. In this work, we analyze the memory and cache subsystem and study Rowhammer and cache attacks enabled by two proposed heterogeneous FPGA-CPU platforms from Intel: the Arria 10 GX with an integrated FPGA-CPU platform, and the Arria 10 GX PAC expansion card which connects the FPGA to the CPU via the PCIe interface. We demonstrate JackHammer, a novel, efficient, and stealthy Rowhammer from the FPGA to the host’s main memory. Our results indicate that a malicious FPGA can perform twice as fast as a typical Rowhammer from the CPU on the same system and causes around four times as many bit flips as the CPU attack. We demonstrate the efficacy of JackHammer from the FPGA through a realistic fault attack on the WolfSSL RSA signing implementation that reliably causes a fault after an average of fifty-eight RSA signatures, 25% faster than a CPU Rowhammer. In some scenarios our JackHammer attack produces faulty signatures more than three times more often and almost three times faster than a conventional CPU Rowhammer. Finally, we systematically analyze new cache attacks in these environments following demonstration of a cache covert channel across FPGA and CPU.

研究动机与目标

  • 研究异构 FPGA-CPU 系统中的硬件漏洞,特别是云环境中 FPGA 与 CPU 共存于不同安全域的情况。
  • 分析 Intel Arria 10 GX FPGA-CPU 平台的内存与缓存子系统,以发现新的攻击向量。
  • 开发并评估一种从 FPGA 到主机 CPU 主内存的新型 Rowhammer 攻击(JackHammer)。
  • 通过基于 FPGA 的 Rowhammer 攻击,演示对密码学实现(如 WolfSSL 的 RSA 签名)的实际故障攻击。
  • 探索并演示 FPGA-CPU 和 FPGA-FPGA 边界上的缓存隐蔽信道与侧信道攻击。

提出的方法

  • 逆向分析了 Intel Arria 10 GX FPGA-CPU 平台的缓存行为与内存访问模式,涵盖集成式与 PCIe 连接式配置。
  • 设计了 JackHammer,一种由 FPGA 执行的 Rowhammer 变种,可绕过 CPU 缓存,直接对 DRAM 行进行攻击。
  • 在两个平台上实现并基准测试了 JackHammer:一种集成式 Arria 10 GX(含 CPU)与一种基于 PCIe 的 Arria 10 GX PAC,使用 OPAE 进行 FPGA 访问。
  • 通过在私钥组件中诱导位翻转,对 WolfSSL 的 RSA-CRT 签名实现进行了故障注入攻击。
  • 开发并测量了 FPGA 与 CPU 之间的缓存隐蔽信道,实现了 1.5–1.8 Mbit/s 的数据传输速率。
  • 评估了多种缓解措施,包括提高 DRAM 刷新率、缓存分区、禁用 hugepages 以及签名验证,以减轻攻击。

实验结果

研究问题

  • RQ1在同构的异构 FPGA-CPU 平台中,安装在 FPGA 上的攻击是否比同一系统中的 CPU 更高效地执行 Rowhammer 攻击?
  • RQ2基于 FPGA 的 Rowhammer 在多大程度上可以绕过 CPU 层级的监控与缓存机制,从而实现更高的故障率与更低的延迟?
  • RQ3在共享内存、多租户的云环境中,FPGA 到 CPU 以及 FPGA 到 FPGA 的缓存侧信道攻击具有何种实际影响?
  • RQ4基于 FPGA 的 Rowhammer 在实际密码学软件(如 WolfSSL 的 RSA 实现)中诱导故障的有效性如何?
  • RQ5哪些系统级缓解措施能有效减轻 FPGA 托管的 Rowhammer 攻击与缓存侧信道攻击?

主要发现

  • JackHammer 在同一系统上的运行速度是基于 CPU 的 Rowhammer 攻击的两倍,在 WolfSSL 的 RSA 签名中故障注入方面具有 25% 的性能优势。
  • 基于 FPGA 的攻击每秒产生的位翻转数量是基于 CPU 的 Rowhammer 的四倍,表明其故障注入效率显著更高。
  • 在某些场景下,JackHammer 导致错误 RSA 签名的频率超过传统 CPU Rowhammer 的三倍,且速度几乎快了三倍。
  • 成功演示了从 FPGA 到 CPU 的缓存隐蔽信道,数据传输速率达 1.5–1.8 Mbit/s。
  • 将 DRAM 行刷新率提高至 32 ms 后,CPU 和 FPGA 攻击的成功率均降至 1% 以下,表明提高刷新率可显著缓解 Rowhammer 攻击。
  • 在 2019 年 11 月 25 日披露后,WolfSSL 的 RSA 实现中的漏洞已通过签名验证机制在版本 4.3.0 中修复。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。