Skip to main content
QUICK REVIEW

[Paper Review] Downgrade Attack on TrustZone

Yue Chen, Yulong Zhang|arXiv (Cornell University)|Jul 17, 2017
Security and Verification in ComputingComputer Science6 references23 citations
TL;DR

This paper presents a downgrade attack on ARM TrustZone, exploiting reused verification keys and insufficient rollback protection across software versions. By downgrading trusted applications or the TrustZone OS to vulnerable, outdated versions, attackers can bypass security mechanisms, as demonstrated on devices from Google, Samsung, and Huawei, including a working exploit against Qualcomm's QSEE.

ABSTRACT

Security-critical tasks require proper isolation from untrusted software. Chip manufacturers design and include trusted execution environments (TEEs) in their processors to secure these tasks. The integrity and security of the software in the trusted environment depend on the verification process of the system. We find a form of attack that can be performed on the current implementations of the widely deployed ARM TrustZone technology. The attack exploits the fact that the trustlet (TA) or TrustZone OS loading verification procedure may use the same verification key and may lack proper rollback prevention across versions. If an exploit works on an out-of-date version, but the vulnerability is patched on the latest version, an attacker can still use the same exploit to compromise the latest system by downgrading the software to an older and exploitable version. We did experiments on popular devices on the market including those from Google, Samsung and Huawei, and found that all of them have the risk of being attacked. Also, we show a real-world example to exploit Qualcomm's QSEE. In addition, in order to find out which device images share the same verification key, pattern matching schemes for different vendors are analyzed and summarized.

Motivation & Objective

  • To investigate the security risks posed by reused verification keys and inadequate rollback prevention in TrustZone implementations.
  • To demonstrate that attackers can exploit known vulnerabilities in older versions of trusted applications or the TrustZone OS by downgrading to those versions.
  • To analyze and identify common verification key patterns across different device vendors to assess the scope of the vulnerability.
  • To provide a real-world proof-of-concept attack on Qualcomm's QSEE to validate the feasibility of the downgrade attack.
  • To raise awareness of the systemic risk in TEE design where backward compatibility undermines forward security.

Proposed method

  • The researchers reverse-engineered the TrustZone OS and trusted application (TA) loading processes on multiple commercial devices.
  • They identified that multiple device images across vendors used the same verification key for signing trusted software.
  • By analyzing binary patterns and signing metadata, they developed a pattern-matching scheme to detect shared keys across different device models and vendors.
  • The team constructed a downgrade attack by tricking the system into loading an older, vulnerable version of a TA or the TrustZone OS.
  • They successfully exploited the vulnerability on Qualcomm's QSEE using a known remote exploit against an outdated version.
  • The attack was validated on devices from Google, Samsung, and Huawei, confirming the widespread nature of the flaw.

Experimental results

Research questions

  • RQ1Can a downgrade attack be mounted on ARM TrustZone by exploiting reused verification keys across different software versions?
  • RQ2To what extent do existing TrustZone implementations lack proper rollback protection mechanisms?
  • RQ3Which device images across major vendors share the same verification key, enabling mass exploitation?
  • RQ4Is it feasible to perform a real-world downgrade attack on a production TEE such as Qualcomm's QSEE?
  • RQ5How widespread is the risk of downgrade attacks across commercially deployed ARM TrustZone-based systems?

Key findings

  • All tested devices from Google, Samsung, and Huawei are vulnerable to the downgrade attack due to shared verification keys and weak rollback protection.
  • A working proof-of-concept attack was demonstrated on Qualcomm's QSEE, successfully exploiting a known vulnerability in an outdated version.
  • Pattern matching analysis revealed that multiple device images across different vendors use the same verification key, indicating a systemic design flaw.
  • The attack remains effective even after patches are released for the original vulnerability, as long as the system allows downgrading to the vulnerable version.
  • The study confirms that the absence of version-specific keying and proper rollback prevention creates a critical backdoor in TEE security.
  • The vulnerability affects a broad range of devices, suggesting that the issue is not isolated but a widespread architectural weakness in TrustZone deployments.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.