arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2310.16433cs.CR
收藏

RIPencapsulation:攻破 TI MSP 设备上的 IP 封装

RIPencapsulation: Defeating IP Encapsulation on TI MSP Devices

Prakhar Sah, Matthew Hicks

AI总结:

本文揭示了 TI MSP 设备 TEE 中 IP Encapsulation 的两个基本弱点,提出 RIPencapsulation 攻击,利用调用点强制缺失和残留状态,在几分钟内窃取受 IPE 保护的专有代码与密钥。

摘要:

物联网设备处于难以驾驭的软件复杂性与攻击者前所未有的访问权限的交汇点。这种独特地位带来了严峻的安全挑战:在攻击者拥有不受限制访问权限的设备上,如何同时保护专有代码和机密数据?可信执行环境(TEEs)有望通过基于硬件的可信与不可信计算及数据分离来解决这一挑战。尽管 TEEs 在桌面级设备上能充分保护机密,但我们揭示,在一种最广泛使用的商业物联网设备中所做的权衡破坏了其 TEE 的安全性。本文揭露了 IP Encapsulation (IPE)(即 Texas Instruments 为 MSP430 和 MSP432 设备部署的 TEE)中的两个基本弱点。我们观察到,缺乏调用点强制执行以及 TEE 意外退出后的残留状态,使得攻击者能够揭示 IPE 内的所有专有代码和机密数据。我们设计并实现了一种名为 RIPencapsulation 的攻击,该攻击系统地执行 IPE 内的部分代码,并利用通过寄存器文件揭示的部分状态来窃取机密数据并识别 gadget 指令。随后,该攻击使用 gadget 指令来揭示 IPE 内的所有专有代码。我们使用商用设备以及生产编译器和设置进行的评估表明,即使遵循了制造商推荐的所有安全编码实践,RIPencapsulation 也能在几分钟内从受 IPE 保护的第三方密码实现中揭示代码和密钥。

英文摘要:

Internet of Things (IoT) devices sit at the intersection of unwieldy software complexity and unprecedented attacker access. This unique position comes with a daunting security challenge: how can I protect both proprietary code and confidential data on a device that the attacker has unfettered access to? Trusted Execution Environments (TEEs) promise to solve this challenge through hardware-based separation of trusted and untrusted computation and data. While TEEs do an adequate job of protecting secrets on desktop-class devices, we reveal that trade-offs made in one of the most widely-used commercial IoT devices undermine their TEE's security. This paper uncovers two fundamental weaknesses in IP Encapsulation (IPE), the TEE deployed by Texas Instruments for MSP430 and MSP432 devices. We observe that lack of call site enforcement and residual state after unexpected TEE exits enable an attacker to reveal all proprietary code and secret data within the IPE. We design and implement an attack called RIPencapsulation, which systematically executes portions of code within the IPE and uses the partial state revealed through the register file to exfiltrate secret data and to identify gadget instructions. The attack then uses gadget instructions to reveal all proprietary code within the IPE. Our evaluation with commodity devices and a production compiler and settings shows that -- even after following all manufacturer-recommended secure coding practices -- RIPencapsultaion reveals, within minutes, both the code and keys from third-party cryptographic implementations protected by the IPE.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑