暂无图片
暂无图片
暂无图片
暂无图片
暂无图片
基于TEE的主动可信TPM_TCM设计与实现-董攀,丁滟,江哲,黄辰林,范冠男.pdf
707
14页
3次
2022-05-24
免费下载
软件学报 ISSN 1000-9825, CODEN RUXUEW E-mail: jos@iscas.ac.cn
Journal of Software,2020,31(5):13921405 [doi: 10.13328/j.cnki.jos.005953] http://www.jos.org.cn
©中国科学院软件研究所版权所有. Tel: +86-10-62562563
基于 TEE 的主动可信 TPM/TCM 设计与实现
1
,
1
,
2
,
黄辰林
1
,
范冠男
1
1
(国防科技大学 计算机学院,湖南 长沙 410073)
2
(Department of Computer Science, University of York, YO10 5GH, UK)
通讯作者: 丁滟, E-mail: dingyan_ding@aliyun.com
: 可信技术正在从被动可信度量向着下一代的主动可信监控方向发展,要求 TPM/TCM 模块有能力主动度
量和干预主机系统,传统的 TPM/TCM 从架构和运行机制等方面都无法满足这种能力.TEE(trusted execution
environment)技术提供了可信执行环境和主动访控能力,为构建下一代 TPM/TCM 提供了基本平台,但还存在系统结
构、存储以及通信等多方面挑战.提出了基于 ARM 平台 TrustZone 机制的 TZTCM(TrustZone-based trusted
cryptography module)方案,通过分核异步系统架构解决 TZTCM 独立可信运行和主动可信安全监控问题,基于
PUF(physical unclonable functions)安全存储机制和基于 UUID(universally unique identifier) TEE 安全通信机制,
决了 TEE 环境下可信平台模块的存储安全和通信安全问题,为设计实现主动可信 TPM/TCM 给出了理论和实践参
.通过实验验证了所提关键机制的有效性,实验结果表明,TZTCM 在密码计算能力上较常见 TPM 也有很大提
.TZTCM 只需要在系统中增加或修改相应的软/固件,除了主动可信监控能力,还具有低成本、高性能、低功耗、
易升级等特点,相对传统 TPM/TCM 具有非常明显的优势.
关键词: TPM;TCM;主动可信;TrustZone;TEE
中图法分类号: TP311
中文引用格式: 董攀, 丁滟, 江哲, 黄辰林,范冠男.基于 TEE 的主动可信 TPM/TCM 设计与实现. 软件学报,2020,31(5):
13921405. http ://www.jos.org.cn/1000-9825/5953.htm
英文引用格式: Dong P, Ding Y, Jiang Z, Huang CL, Fan GN. Design and implementation of TPM/TCM with active trust based
on TEE. Ruan Jian Xue Bao/Journal of Software, 202 0,31(5):1392 1405 (in Chinese). http://www.jos.o rg.cn/1000-9825/5953.ht m
Design and Implementation of TPM/TCM with Active Trust Based on TEE
DONG Pan
1
, DING Yan
1
, JIANG Zhe
2
, HUANG Chen-Lin
1
, FAN Guan-Nan
1
1
(College of Computer Science and Technology, National University of Defense Technology, Changsha 410073, China)
2
(Department of Computer Science, University of York, YO10 5GH, UK)
Abstra ct : Trusted computing is being developed towards the next-generation active protection and monitoring, which requires that the
TPM/TCM has the ability to actively measure and intervene the host system. Unfortunately, traditional TPM/TCM cannot satisfy the
requirements in the respects of the architecture and the r untime mechanisms. Trusted execution environment (TEE) technology provides a
trusted execution environment and the ability of accessing/controlling the host resources during the run-time, which brings a foundation
for the next generation TPM/TCM. However, there are still three main challenges: software architecture, secure storage, and secure
基金项目: 国家重点研发计划(2018YFB0803501); 核高基国家科技重大专项(2017ZX01038104-002); 国家自然科学基金
(61602492, 61303191, 61502510, 61872444)
Foundation item: National Key Research and Development Program of China (China) (2018YFB0803501); CHB National Science
and Technology Major Project of China (2017ZX01038104-002); National Natural Science Foundation of China (61602492, 61303191,
61502510, 61872444)
本文由系统软件构造与验证技术专题特约编辑赵永望副教授、刘杨教授、王戟教授推荐.
收稿时间: 2019-08-30; 修改时间: 2019-10-24; 采用时间: 2019-12-24; jos 在线出版时间: 2020-04-07
董攀 :基于 TEE 的主动可信 TPM/TCM 设计与实现
1393
communication. This study propos es the design and implementation of TZTCM (TrustZone-based trusted cryptography module), which is
a TPM/TCM scheme based on ARM TrustZone. TZTCM adopts several key mechanisms to overcome the three challenges. Firstly, the
non-uniform core assigned and asynchronous (NUCAA) system architecture is designed to enable the independen t and active operation of
TZTCM. Secondly, the secure storage mechanism based on physical unclonable functions (PUF) is designed to guarantee the privacy of
data in TZTCM. Thirdly, the secure commun ication mechanism based on universally unique i dentifi er (UUID) is designed to prevent the
channel (between host and TZTCM) from malicious activities. Therefore, TZTCM provides a prototype system of the next-generation
TPM/TCM. It is shown that TZTCM has the identical security as a hardware TPM/TCM chip via theoretical analysis. An instance of
TZTCM is implemented on an ARM development board (Hikey-board 620), and the runtime test shows that TZTCM can achieve higher
performance for cipher computing than traditional TPMs. Compared to current TPMs/TCMs, TZTCM has obvious advantages in many
aspects: active safeguard capability, only software/ firmware required, easy update, and low power consumption.
Key words: TPM; TCM; active trust; TrustZone; TEE
在以传统 TPM/TCM( 国外使用 TPM 标准, trusted platform module;国内采用 TCM 标准, trusted
cryptography module)为根基建立的可信 2. 0 架构
[1]
,可信基础部件被设计为在硬件隔离的环境中以被动方式
工作,供主机 CPU 进行服务调用.这种方式在安全上不完备,存在以下弊端:难以保证加载时(特别是加电时)的软
件完整性;软件更新困难;无法保证在运行态的完整性.针对这些弊端,我国已在可信计算技术 3.0 阶段提出
动防御体系思想,目标是确保全程可测可控、不被干扰,即防御与运算并行的动免疫计算模式
[1]
.然而受架
构所限,传统的 TPM/TCM 构建技术不具备对主机系统进行主动访问和监控的能力
[2]
,甚至难以掌控系统上电
时的代码可信性.此外,传统 TPM/TCM 还在应用中表现出多方面问题,由于采用廉价芯片导致性能普遍偏低,
理芯片在成本、功耗、散热等多方面不利因素较多,芯片封装不易升级维护.随着技术的快速发展,这些问题变
得越来越突出,迫切需要在 TPM 的结构实现方面予以创新.TEE 扩展技术提供了这种可能,例如 ARM 处理器中
TrustZone 技术以及 Intel 处理器中的 SGX(software guard extensions)技术,都能为计算平台提供一个隔离于
平台其他软硬件资源的运行时环境.其中,TrustZone 技术被设计为在系统加电后优先获得控制权,并拥有比主
机更高的访问和控制权限,因此更为贴合 TPM/TCM 的功能和安全性需求.
如图 1 所示,TPM/TCM 的各项服务机制可以映射到 TrustZone-TEE 的基本结构中. TEE 中封装虚拟 TPM/
TCM 核心服务,包括密码算法引擎、命令执行引擎以及安全持久存储等.在主机中利用标准 TEE Client API
装由 TDDL 层所调用的 TPM/TCM 命令, TSS TDDL 以上层次保持透明. TPM/TCM 命令被封装为标准
TEE 通信协议,通过 SMC 服务接口调用核心 TPM/T CM 服务.例如,Raj 等人基于这种思想提出了基于 TrustZone
的固件化 TP
M 实现方法
[3]
,验证了通过 TrustZone 实现低成本 TPM 的可行性.
主动可信能力被定义
[1]
:“ 可信节点通过底层的监控,以主动监控的方式监视系统的行为,并通过信息
系统整体的策略管控,构建可信计算体系,为应用创建一个安全保障环境,确保应用按照预期执行,免于黑客、病
毒等威胁”.TrustZone 虽然提供高于主机系统的访问权,但要实现主动可信能力还面临诸多难,本文总结为
3 项挑战.
一是 TPM/TCM 与主机的协同结构问题.TEE 的设计思想是与主机分时共享 CPU,隔离使用存储和
IO.受主从式架构设计的制约,已有的 TrustZone 基础服务大多是以被动执行的思想设计,如要提供主
动运行和资源访问能力,则需要设计较为复杂的主机-TEE 切换机制,并且要避免 TEE 过久占领”CPU,
防止主机系统的中断等机制受到超时等因素的影响.
二是 TrustZone 的安全持久存储机制能力不足,借用 REE(rich execution environment)存储或者单独提
供安全态的存储接口,无法阻止恶意删除或者使用物理手段探测私密数据.
三是通信安全问题.传统 TPM 上已经存在多种链路攻击手段,例如 re se t 攻击和中间人攻击
[4]
,可能对
TPM/TCM 安全性产生致命影响.基于 TrustZone 中的虚拟 TPM/TCM 尽管不依赖物理总线通信,但是
信道安全问题依然存在,恶意软件可以通过提权攻击等方式直接干涉主机与 TEE 环境的底层通信,
虚拟 TPM/TCM 的通信安全构成威胁.
此外,为了提供实时主动的可信服务,TPM/TCM 必须要有足够强大的计算能力,以实现高效的动态度量.
of 14
免费下载
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文档的来源(墨天轮),文档链接,文档作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论

关注
最新上传
暂无内容,敬请期待...
下载排行榜
Top250 周榜 月榜