Skip to main content
QUICK REVIEW

[论文解读] TPM-FAIL: TPM meets Timing and Lattice Attacks

Daniel Moghimi, Berk Sunar|arXiv (Cornell University)|Nov 1, 2019
Security and Verification in ComputingComputer Science被引用 14
一句话总结

本文展示了TPM 2.0设备中的时序侧信道漏洞——具体而言,在英特尔的固件实现TPM和意法半导体的硬件TPM中——可利用基于格的密码分析技术,在不到两分钟内恢复256位ECDSA和ECSchnorr私钥,且在英特尔fTPM上仅需约1,300次观测即可完成;在获得CC EAL 4+认证的硬件TPM上,也仅需少于40,000次观测即可恢复私钥。

ABSTRACT

Trusted Platform Module (TPM) serves as a hardware-based root of trust that protects cryptographic keys from privileged system and physical adversaries. In this work, we perform a black-box timing analysis of TPM 2.0 devices deployed on commodity computers. Our analysis reveals that some of these devices feature secret-dependent execution times during signature generation based on elliptic curves. In particular, we discovered timing leakage on an Intel firmware-based TPM as well as a hardware TPM. We show how this information allows an attacker to apply lattice techniques to recover 256-bit private keys for ECDSA and ECSchnorr signatures. On Intel fTPM, our key recovery succeeds after about 1,300 observations and in less than two minutes. Similarly, we extract the private ECDSA key from a hardware TPM manufactured by STMicroelectronics, which is certified at Common Criteria (CC) EAL 4+, after fewer than 40,000 observations. We further highlight the impact of these vulnerabilities by demonstrating a remote attack against a StrongSwan IPsec VPN that uses a TPM to generate the digital signatures for authentication. In this attack, the remote client recovers the server's private authentication key by timing only 45,000 authentication handshakes via a network connection. The vulnerabilities we have uncovered emphasize the difficulty of correctly implementing known constant-time techniques, and show the importance of evolutionary testing and transparent evaluation of cryptographic implementations. Even certified devices that claim resistance against attacks require additional scrutiny by the community and industry, as we learn more about these attacks.

研究动机与目标

  • 调查TPM 2.0设备在椭圆曲线签名生成过程中是否表现出与秘密相关的时序行为。
  • 评估从TPM中因时序侧信道泄露而恢复256位ECDSA和ECSchnorr私钥的可行性。
  • 通过网络级时序测量,演示对使用StrongSwan IPsec VPN的远程私钥恢复攻击。
  • 指出当前常量时间实现实践与密码硬件认证流程的局限性。

提出的方法

  • 对部署在通用系统中的TPM 2.0设备进行黑盒时序分析,测量签名生成过程中执行时间的变化。
  • 在ECDSA和ECSchnorr签名操作期间,从固件实现(英特尔fTPM)和硬件实现(意法半导体)TPM中收集时序测量数据。
  • 对收集到的时序数据应用基于格的密码分析技术,从观测到的时序泄露中恢复私钥。
  • 通过测量45,000次基于网络的认证握手时序,构建对StrongSwan IPsec VPN的远程攻击,成功提取服务器私钥。
  • 使用统计建模方法,将时序变化与椭圆曲线运算中的秘密标量值相关联。
  • 评估尽管声称实现了常量时间实现和通过了通用准则认证,时序泄露的利用效果是否依然显著。

实验结果

研究问题

  • RQ1是否能够利用时序侧信道泄露,在ECDSA和ECSchnorr签名生成过程中从TPM 2.0设备中恢复256位私钥?
  • RQ2像意法半导体硬件TPM(CC EAL 4+)这样的认证TPM在多大程度上仍对基于时序的密钥恢复攻击保持脆弱?
  • RQ3利用时序侧信道从TPM保护的系统中提取私钥的远程网络攻击在实际中有多大的可行性?
  • RQ4TPM中的时序泄露对广泛部署的加密协议(如IPsec)的安全性有何影响?
  • RQ5基于格的技术是否能有效从现实TPM实现中低精度时序测量中恢复秘密?

主要发现

  • 英特尔固件实现TPM(fTPM)在ECDSA和ECSchnorr签名生成过程中表现出与秘密相关的时序行为,仅需约1,300次时序观测,且在两分钟内即完成私钥恢复。
  • 意法半导体硬件TPM(经CC EAL 4+认证)在少于40,000次时序观测后即被攻破,表明认证并不能保证对时序攻击的抵抗力。
  • 通过测量45,000次基于网络的认证握手时序,成功对StrongSwan IPsec VPN实施了远程攻击,实现完整私钥恢复。
  • 该攻击成功实施,尽管TPM声称实现了常量时间实现,表明即使在形式化验证和认证的系统中,细微的侧信道泄露仍可能持续存在。
  • 基于格的密码分析在仅有限观测次数和不完美时序分辨率下,仍能有效恢复256位椭圆曲线私钥。
  • 结果凸显了正确实现常量时间代码的困难性,强调了需要持续的社区审查和对密码实现的演进式测试。

阅读本论文

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

在 Nubint 中阅读本论文

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