Attacking and Fixing the Android Protected Confirmation Protocol

Myrto Arapinis, Vincent Danos, Maïwenn Racouchot, David A. R. Robin, Thomas ZachariasEuroS&P 2025

TL;DR

This paper reveals critical security flaws in Android's Protected Confirmation (APC) protocol, which is designed to secure sensitive transactions even on compromised devices. The authors demonstrate two practical attacks and propose lightweight, UC-secure fixes that maintain usability while significantly enhancing security.

What Problem Does This Paper Address?

In today's mobile-first world, smartphones are central to our lives, handling everything from communication to financial transactions. Android, being the dominant mobile OS, has implemented various security measures, including the Trusted Execution Environment (TEE) and its associated Protected Confirmation (APC) protocol. APC aims to ensure user consent for transactions even if the main operating system (OS) is compromised by an attacker. The core promise is that a transaction signed under APC requires explicit user approval, preventing a rooted OS from faking this consent. However, the paper questions this guarantee by investigating the APC protocol's security under a strong threat model where the OS itself is compromised. The challenge is to formally verify if APC truly delivers on its security promise against sophisticated adversaries and, if not, to propose robust and practical solutions.

Methods

The authors employ the Universal Composability (UC) framework for their formal security analysis. This is a state-of-the-art model for proving cryptographic protocol security that is preserved under concurrent executions and composition. They model the APC protocol by defining its participants (users, TEEs, ROSes, servers, Google) and the communication channels between them using ideal functionalities.

Key techniques include:

  • Formal Specification: Detailing the APC protocol's phases (Setup, Registration, Transaction) and its components based on Android documentation and experimental validation.
  • UC Security Analysis: Analyzing the protocol within the UC framework by defining ideal functionalities that capture the intended security guarantees and then proving whether the real protocol UC-realizes these functionalities.
  • Attack Implementation: Demonstrating the identified attacks on a Google Pixel phone to validate their practical feasibility.
  • Proposed Fixes: Developing lightweight modifications to the protocol that address the identified vulnerabilities.
  • Proof of Security: Formally proving that the fixed protocol UC-realizes the ideal Protected Confirmation functionality.

Datasets

Not discussed in the paper.

Key Insights and Ideas

  • The "Trust on First Use" Assumption Fails for APC: Unlike protocols like FIDO2 that use separate hardware tokens and can rely on a "trust on first use" (TOFU) model for registration, APC's registration happens on the device itself. This means the ROS (which can be compromised) is involved in registration, breaking the TOFU assumption and opening up vulnerabilities.
  • TEE vs. ROS Interaction is Critical: The TEE is designed to be secure, but its interaction with the ROS (which can be malicious) is a key attack surface. The paper highlights how a compromised ROS can manipulate the user's perception of TEE interactions.
  • User Confirmation is Insufficient: The attacks exploit the fact that users confirm transaction data, but not necessarily the application key or server identity used for signing. This allows an attacker to redirect a transaction to a different, malicious server.
  • Google's Certificates Don't Guarantee User Control: While Google certificates ensure a TEE is trustworthy, they don't guarantee that the TEE is controlled by the specific user whose identity is being used for registration. This is exploited in the registration attack.
  • Lightweight Fixes Can Be Effective: The proposed fixes are designed to be minimal, focusing on adding user-verifiable elements to the registration and transaction processes without drastically altering the protocol's flow or requiring significant hardware changes.

Key Results

  • Two Novel Attacks Identified:
    • Registration MiTM Attack: Allows an attacker to register a malicious TEE-generated key under a victim's identity with an application server, effectively hijacking their account.
  • Transaction Attack: Enables a malicious ROS to issue a valid transaction to an unintended server, even if the user's prior registrations are uncorrupted.
  • Proof-of-Concept Implementation: The transaction attack was successfully implemented and demonstrated.
  • Proposed Fixes: The paper introduces two main fixes:
  • Fixed Registration: Involves an out-of-band verification of a code generated by the TEE, ensuring the user and server confirm the registered key belongs to the correct TEE and user.
  • Fixed Transaction: Includes the server's identity in the TEE's signature, allowing both the user and server to verify that the transaction is intended for the correct recipient.
  • Formal Security Proof: The fixed protocol is proven to UC-realize the ideal Protected Confirmation functionality, meaning it provides the intended security guarantees even in the presence of a corrupted OS.

Limitations and Future Work

  • Usability of Fixes: The authors acknowledge that the proposed fixes introduce new usability requirements, such as users needing to verify codes or distinguish between trusted and untrusted interfaces. They suggest that future work should focus on rigorously studying the usability of these mechanisms, potentially through user studies.
  • Real-World Deployment Challenges: While the fixes are lightweight, their integration into existing Android devices and applications might present deployment challenges, especially given Google's assessment of the original vulnerabilities as "low severity" due to "infeasibility" of fixes.
  • Focus on Specific Attacks: The paper focuses on attacks related to compromised ROS and TEE interactions. Other potential attack vectors might exist.
  • Future Work: The authors suggest investigating the usability of the proposed fixes and exploring their secure implementation in mobile applications.

Summary updated

BibTeX
@inproceedings{arapinis2025attacking,
  author = {Myrto Arapinis and Vincent Danos and Maïwenn Racouchot and David A. R. Robin and Thomas Zacharias},
  title = {{Attacking and Fixing the Android Protected Confirmation Protocol}},
  booktitle = {EuroS\&P},
  year = {2025},
  doi = {10.1109/eurosp63326.2025.00034},
}
Figure