# 可信平台模块

可信平台模块（TPM）是一种微芯片，或等效的固件实现，旨在提供与安全相关的基本功能，主要涉及加密密钥。该芯片置于主板上（或内置于处理器中），通过硬件内部的总线与系统其余部分相连；配备TPM的机器能够生成加密密钥，并以只有TPM自身才能解密这些密钥的方式对其进行加密。<sup>[1](https://learn.microsoft.com/en-gb/windows/security/hardware-security/tpm/tpm-fundamentals)</sup> TPM是由[可信计算组织](https://www.edgepedia.org/zh/trusted-computing-group)（TCG）定义的标准[硬件信任根](https://www.edgepedia.org/zh/hardware-root-of-trust)，该行业联盟的TPM 2.0库规范已被采纳为国际标准ISO/IEC 11889:2015。<sup>[2](https://trustedcomputinggroup.org/resource/tpm-library-specification/0/)</sup><sup> • </sup><sup>[3](https://trustedcomputinggroup.org/trusted-computing-group-tpm-2-0-library-specification-approved-isoiec-international-standard-date-published-june-29-2015/)</sup>

| 关键事实 | 详情 |
|---|---|
| 是什么 | 一种以加密密钥为核心提供安全功能的微芯片，安装在主板上，通过硬件总线访问<sup>[1](https://learn.microsoft.com/en-gb/windows/security/hardware-security/tpm/tpm-fundamentals)</sup> |
| 标准 | TPM 1.2由TCG于2005年2月发布，标准化为ISO/IEC 11889；TPM 2.0于2014年4月发布，获批为ISO/IEC 11889:2015<sup>[4](https://learn.microsoft.com/en-us/windows/security/operating-system-security/system-security/protect-high-value-assets-by-controlling-the-health-of-windows-10-based-devices)</sup> |
| 核心能力 | 生成、存储并限制加密密钥的使用；采集并存储启动过程的安全度量值；使用烧录在芯片中的唯一RSA密钥进行设备认证<sup>[5](https://learn.microsoft.com/en-us/windows/security/hardware-security/tpm/trusted-platform-module-overview)</sup> |
| Windows 11要求 | Windows 11默认要求TPM 2.0，以便启用增强的安全功能<sup>[6](https://learn.microsoft.com/en-us/windows/security/hardware-security/tpm/tpm-recommendations)</sup> |
| Windows中的主要用途 | BitLocker密钥绑定、度量启动与远程证明、Credential Guard、Windows Hello密钥存储、虚拟智能卡和证书存储<sup>[6](https://learn.microsoft.com/en-us/windows/security/hardware-security/tpm/tpm-recommendations)</sup> |
| 实现形式 | 位于LPC或SPI总线上的独立芯片、在可信环境中运行的固件TPM（Intel PTT、AMD fTPM），以及虚拟化环境中的软件TPM<sup>[7](https://www.usenix.org/system/files/sec20-moghimi-tpm.pdf)</sup> |
| 已知弱点 | 独立TPM上的总线嗅探、签名生成中的时序侧信道，以及可重置PCR的电源管理攻击<sup>[8](https://arxiv.org/abs/2608.14736)</sup><sup> • </sup><sup>[9](https://www.usenix.org/conference/usenixsecurity20/presentation/moghimi-tpm)</sup><sup> • </sup><sup>[10](https://www.usenix.org/conference/usenixsecurity18/presentation/han)</sup> |

## 能力

最常见的TPM功能是系统完整性度量和密钥的创建与使用。TPM可以生成、存储并限制加密密钥的使用；它可以使用制造时烧录在芯片中的唯一RSA密钥对设备进行认证；它记录启动期间加载的启动代码的度量值，包括固件和操作系统组件。<sup>[5](https://learn.microsoft.com/en-us/windows/security/hardware-security/tpm/trusted-platform-module-overview)</sup> 基于TPM的密钥可以配置为在TPM之外不可用，从而防止密钥被复制到别处使用，缓解钓鱼攻击，并且可以要求在使用前提供授权值。TPM还可以替代物理智能卡，降低发卡成本。<sup>[5](https://learn.microsoft.com/en-us/windows/security/hardware-security/tpm/trusted-platform-module-overview)</sup>

**平台配置寄存器。** 度量值记录在一组称为平台配置寄存器（PCR）的寄存器中，每个软件启动模块的哈希值被扩展进这些寄存器；面向PC的TPM可以将一个PCR专用于BIOS度量，一个专用于附加卡的启动ROM，一个专用于操作系统加载器。<sup>[11](https://trustedcomputinggroup.org/wp-content/uploads/Trusted-Platform-Module-2.0-Library-Part-1_Architecture-V185-RC4_12Dec2025.pdf)</sup><sup> • </sup><sup>[12](https://csrc.nist.gov/files/pubs/ir/7904/final/docs/nistir_7904_second_draft.pdf)</sup> 由于每个度量值都被合并到PCR值中，这些寄存器反映了当前组件之前运行的整个软件链。可以在TPM中创建仅在PCR持有特定值时才能使用的密钥，这种机制称为密封。<sup>[5](https://learn.microsoft.com/en-us/windows/security/hardware-security/tpm/trusted-platform-module-overview)</sup>

## 版本与标准

存在两个互不兼容的TCG规范系列。第一个是TPM 1.2，于2005年2月发布，在ISO/IEC 11889下标准化。最新的是TPM 2.0，于2014年4月发布，由ISO/IEC联合技术委员会批准为ISO/IEC 11889:2015。<sup>[4](https://learn.microsoft.com/en-us/windows/security/operating-system-security/system-security/protect-high-value-assets-by-controlling-the-health-of-windows-10-based-devices)</sup> TPM 2.0增加了对更多加密算法的支持、增强的授权机制、简化的TPM管理，以及平台服务安全的额外能力。<sup>[2](https://trustedcomputinggroup.org/resource/tpm-library-specification/0/)</sup> 实际差异体现在算法支持上：TPM 1.2仅支持SHA-1哈希算法，而该算法正被淘汰，TPM 2.0则支持更新的加密算法。<sup>[6](https://learn.microsoft.com/en-us/windows/security/hardware-security/tpm/tpm-recommendations)</sup>

## 在Windows中的使用

Windows将TPM用于运行状况证明中的[加密](https://www.edgepedia.org/zh/encryption)计算，并保护BitLocker、Windows Hello、虚拟智能卡和其他公钥证书的密钥。<sup>[4](https://learn.microsoft.com/en-us/windows/security/operating-system-security/system-security/protect-high-value-assets-by-controlling-the-health-of-windows-10-based-devices)</sup> 功能支持因版本而异：度量启动要求TPM 1.2或2.0加上UEFI安全启动；设备加密要求新式待机认证，而该认证要求TPM 2.0；系统防护（DRTM）和SecureBIO要求TPM 2.0；Credential Guard自Windows 10版本1511起支持两个版本。<sup>[6](https://learn.microsoft.com/en-us/windows/security/hardware-security/tpm/tpm-recommendations)</sup>

**BitLocker。** [BitLocker](https://www.edgepedia.org/zh/bitlocker)提供全卷加密以保护静态数据，并将其加密密钥与TPM绑定，以确保设备在系统离线时未被篡改。<sup>[13](https://learn.microsoft.com/en-gb/windows/security/operating-system-security/data-protection/bitlocker/countermeasures)</sup> 在常见配置中，TPM和系统固件记录系统启动方式的度量值，包括已加载的软件以及从硬盘还是USB设备启动等细节。BitLocker在TPM中创建一个密钥，仅当启动度量值与从系统硬盘运行Windows启动管理器的预期值匹配时才能使用；如果启动了不同的操作系统，度量值不同，TPM将拒绝提供密钥，加密的操作系统卷便无法解密。作为故障保护，BitLocker恢复密钥始终可以访问卷数据，组织可以将恢复密钥存储在Active Directory域服务中。<sup>[14](https://learn.microsoft.com/en-us/windows/security/hardware-security/tpm/how-windows-uses-the-tpm)</sup> 在阻止通过端口进行直接内存访问的合适硬件上，BitLocker可以运行在“仅TPM”配置下，提供无需PIN或USB密钥的单点登录体验；在登录界面DMA端口仍是攻击途径的情况下，可以要求PIN或启动密钥，以便密钥不会被自动加载到内存中。<sup>[14](https://learn.microsoft.com/en-us/windows/security/hardware-security/tpm/how-windows-uses-the-tpm)</sup> 设备加密是BitLocker的消费者版本，使用相同的底层技术，当客户在满足[新式待机](https://www.edgepedia.org/zh/modern-standby)要求的硬件上用Microsoft账户登录时会自动启用，恢复密钥备份到Microsoft云中。<sup>[14](https://learn.microsoft.com/en-us/windows/security/hardware-security/tpm/how-windows-uses-the-tpm)</sup>

**度量启动与远程证明。** [Windows 8](https://www.edgepedia.org/zh/windows-8)引入了度量启动，将度量链延伸至启动管理器之后进入Windows本身，记录Windows内核、早期启动反恶意软件驱动程序和启动驱动程序的度量值，以及BitLocker开启或关闭等安全相关配置。<sup>[14](https://learn.microsoft.com/en-us/windows/security/hardware-security/tpm/how-windows-uses-the-tpm)</sup> 在远程证明中，TPM使用证明身份密钥生成当前PCR度量值的声明（引用）并进行数字签名，远程服务器评估该声明以决定设备是否以可信软件启动；服务器随后可以授予对完整网络或受限隔离网络的访问权限。<sup>[14](https://learn.microsoft.com/en-us/windows/security/hardware-security/tpm/how-windows-uses-the-tpm)</sup><sup> • </sup><sup>[15](https://learn.microsoft.com/en-us/windows/threat-protection/secure-the-windows-10-boot-process)</sup> Windows可以为不同场景创建唯一的证明身份密钥，以防止不同的评估者串通跟踪同一设备，度量信息的设计也避免记录关于正在使用哪些应用程序的隐私敏感细节。<sup>[14](https://learn.microsoft.com/en-us/windows/security/hardware-security/tpm/how-windows-uses-the-tpm)</sup>

## 实现

TPM可以是连接在LPC或SPI等低带宽总线上的独立芯片，也可以是在靠近CPU的可信执行环境中运行的固件，例如Intel平台信任技术（PTT）或AMD fTPM；虚拟化环境中也存在软件TPM。<sup>[7](https://www.usenix.org/system/files/sec20-moghimi-tpm.pdf)</sup><sup> • </sup><sup>[16](https://docs.kernel.org/next/security/tpm/tpm-security.html)</sup> 固件TPM避免了独立芯片暴露的总线，但运行在受不同攻击影响的软件环境中。<sup>[16](https://docs.kernel.org/next/security/tpm/tpm-security.html)</sup> 在Linux上，内核通过字符设备和sysfs接口暴露TPM，报告芯片的PCR值、背书密钥和状态属性，FIFO、CRB和固件TPM接口各有独立的驱动程序。<sup>[17](https://docs.kernel.org/admin-guide/abi-stable.html)</sup><sup> • </sup><sup>[18](https://docs.kernel.org/6.6/security/tpm/tpm_ftpm_tee.html)</sup> Android采取了一种相关但不同的方法：其硬件支持的Keystore将密钥操作委托给可信执行环境（通常是ARM TrustZone）中的可信应用，而非TCG定义的TPM。<sup>[19](https://source.android.com/docs/security/features/keystore?authuser=96)</sup>

## 已知攻击

**总线拦截。** 独立TPM通过暴露的总线与CPU通信，LPC总线协议可以用基本且廉价的设备主动操纵，从而绕过信任链。<sup>[8](https://arxiv.org/abs/2608.14736)</sup><sup> • </sup><sup>[20](https://www.sciencedirect.com/science/article/pii/S0898122112004634)</sup> 2025年的一篇立场论文证明，对TPM 2.0的短暂物理访问加上从攻击者控制的系统启动的能力，允许重置和重放任意度量值，例如解封仅由TPM保护的磁盘加密密钥；其作者认为，SoC内部的固件TPM从安全角度看更优越。<sup>[8](https://arxiv.org/abs/2608.14736)</sup>

**时序侧信道。** 由Daniel Moghimi、Berk Sunar、Thomas Eisenbarth和Nadia Heninger进行的TPM-FAIL研究，由[伍斯特理工学院](https://www.edgepedia.org/zh/worcester-polytechnic-institute)、吕贝克大学和加利福尼亚大学圣迭戈分校的研究人员在2020年USENIX安全研讨会上展示，发现Intel固件TPM和硬件TPM在椭圆曲线签名生成过程中存在依赖于秘密的执行时间。格技术恢复了256位ECDSA私钥：在Intel fTPM上约1,300次观测后不到两分钟内恢复，从Common Criteria EAL 4+认证的[STMicroelectronics](https://www.edgepedia.org/zh/stmicroelectronics)硬件TPM上在不到40,000次观测后恢复。同一工作还展示了一种远程攻击，通过对网络上45,000次握手进行计时，恢复了StrongSwan IPsec VPN服务器的认证密钥。<sup>[9](https://www.usenix.org/conference/usenixsecurity20/presentation/moghimi-tpm)</sup>

**故障注入与电源管理。** 柏林工业大学的研究人员通过电压故障注入攻击（faulTPM）完全攻破了AMD的固件TPM，获取了其中的加密数据并击败了BitLocker仅TPM保护器等防护措施，论文指出攻击者只需对目标设备进行2至3小时的物理访问即可实现。<sup>[21](https://arxiv.org/abs/2304.14717)</sup> 另外，2018年USENIX论文《A Bad Dream》表明，电源管理攻击允许对手重置和伪造PCR，其中一种利用了TPM 2.0规范中用于度量的静态信任根的设计缺陷，对策需要硬件特定的固件补丁。<sup>[10](https://www.usenix.org/conference/usenixsecurity18/presentation/han)</sup>

## References

1. [Trusted Platform Module (TPM) fundamentals, Microsoft Learn](https://learn.microsoft.com/en-gb/windows/security/hardware-security/tpm/tpm-fundamentals)
2. [TPM 2.0 Library, Trusted Computing Group](https://trustedcomputinggroup.org/resource/tpm-library-specification/0/)
3. [TCG TPM 2.0 Library Specification Approved as an ISO/IEC International Standard, Trusted Computing Group (2015)](https://trustedcomputinggroup.org/trusted-computing-group-tpm-2-0-library-specification-approved-isoiec-international-standard-date-published-june-29-2015/)
4. [Control the health of Windows devices, Microsoft Learn](https://learn.microsoft.com/en-us/windows/security/operating-system-security/system-security/protect-high-value-assets-by-controlling-the-health-of-windows-10-based-devices)
5. [Trusted Platform Module Technology Overview, Microsoft Learn](https://learn.microsoft.com/en-us/windows/security/hardware-security/tpm/trusted-platform-module-overview)
6. [TPM recommendations, Microsoft Learn](https://learn.microsoft.com/en-us/windows/security/hardware-security/tpm/tpm-recommendations)
7. [TPM-FAIL: TPM meets Timing and Lattice Attacks (full paper), USENIX Security 2020](https://www.usenix.org/system/files/sec20-moghimi-tpm.pdf)
8. [Not Discrete Enough: On the Inherent Insecurity of dTPMs for Measured Boot, arXiv](https://arxiv.org/abs/2608.14736)
9. [TPM-FAIL: TPM meets Timing and Lattice Attacks, USENIX Security 2020](https://www.usenix.org/conference/usenixsecurity20/presentation/moghimi-tpm)
10. [A Bad Dream: Subverting Trusted Platform Module While You Are Sleeping, USENIX Security 2018](https://www.usenix.org/conference/usenixsecurity18/presentation/han)
11. [Trusted Platform Module 2.0 Library Part 1: Architecture, Trusted Computing Group](https://trustedcomputinggroup.org/wp-content/uploads/Trusted-Platform-Module-2.0-Library-Part-1_Architecture-V185-RC4_12Dec2025.pdf)
12. [Trusted Geolocation in the Cloud: Proof of Concept Implementation (Second Draft), NIST](https://csrc.nist.gov/files/pubs/ir/7904/final/docs/nistir_7904_second_draft.pdf)
13. [BitLocker countermeasures, Microsoft Learn](https://learn.microsoft.com/en-gb/windows/security/operating-system-security/data-protection/bitlocker/countermeasures)
14. [How Windows uses the TPM, Microsoft Learn](https://learn.microsoft.com/en-us/windows/security/hardware-security/tpm/how-windows-uses-the-tpm)
15. [Secure the Windows boot process, Microsoft Learn](https://learn.microsoft.com/en-us/windows/threat-protection/secure-the-windows-10-boot-process)
16. [TPM Security, The Linux Kernel documentation](https://docs.kernel.org/next/security/tpm/tpm-security.html)
17. [ABI stable symbols, The Linux Kernel documentation](https://docs.kernel.org/admin-guide/abi-stable.html)
18. [Firmware TPM Driver, The Linux Kernel documentation](https://docs.kernel.org/6.6/security/tpm/tpm_ftpm_tee.html)
19. [Hardware-backed Keystore, Android Open Source Project](https://source.android.com/docs/security/features/keystore?authuser=96)
20. [A hijacker's guide to communication interfaces of the trusted platform module, Computers & Mathematics with Applications](https://www.sciencedirect.com/science/article/pii/S0898122112004634)
21. [faulTPM: Exposing AMD fTPMs' Deepest Secrets, arXiv](https://arxiv.org/abs/2304.14717)

---
*Initially written Sep 17, 2026 · Reviewed: Sep 17, 2026; Sep 30, 2026; Oct 15, 2026 · Edited: Sep 30, 2026; Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 计算机硬件 › Processors & processor engineering

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/trusted-platform-module

English original: https://www.edgepedia.org/trusted-platform-module
