Skip to content
Case report

From HAL to SMC : a normal-world view of ARM TrustZone on Android

TL;DR

The findings show that kernel-level data-transport and synchronization choices directly influence the classes of concurrency and memory-sharing defects exposed by each TEE architecture.

Abstract

ARM TrustZone provides hardware-enforced isolation for security-critical operations on Android devices. It separates execution into two worlds: the Normal World and the Secure World. Although security-sensitive operations execute in the Secure World, each operation must first be initiated, marshaled, and dispatched by software running in the Normal World. Despite the security relevance of this interface, there is limited systematic cross-platform documentation of the Normal-World software stacks that support it. This work reconstructs the end-to-end Normal-World data path, from the Hardware Abstraction Layer (HAL) interface to the Secure Monitor Call (SMC) boundary, for three commercially deployed Trusted Execution Environment (TEE) implementations: Qualcomm QSEE, Samsung TEEGris, and Google Trusty. Gatekeeper credential verification serves as a common case study across the three platforms. This analysis shows that the three stacks rely on fundamentally different data-transport mechanisms. QSEE passes physical addresses of userspace-writable pages to the Secure World; TEEGris copies command metadata into kernel circular buffers while sharing data pages; and Trusty copies message data into kernel-owned virtqueue buffers. The analysis demonstrates that QSEE’s shared-memory design allows the underlying buffer to be modified concurrently while it is being processed by the Secure World, resulting in a TrustZone crash and denial of service. The analysis additionally characterizes differences in the SELinux-exposed attack surface, with 75, 71, and 19 domains able to reach the relevant TEE interfaces in the rooted test con-figurations, as well as differences in locking granularity across the three implementations (global command-path, per-socket, and per-channel/per-device locking). These findings show that kernel-level data-transport and synchronization choices directly influence the classes of concurrency and memory-sharing defects exposed by each TEE architecture.

View source

Similar papers

Preprint Aug 2026

Building the Truman Show: A TrustZone-Based Framework for Lightweight Out-of-band Kernel Security Monitoring

The increasing number of vulnerabilities in operating systems, together with sophisticated kernel-level threats (e.g., rootkits), has weakened the effectiveness of traditional in-kernel protection mechanisms. Since these defenses operate at the same privilege level as the kernel, they share the same attack surface and...

Zhen-Ling Duan, Pan Dong, Ren-Shuang Jiang et al. · 0 citations
Open access Aug 2026

On the Resilience of Secure Remote-Access VPN Solutions: A System-Level Evaluation of WireGuard, OpenVPN and IPsec (strongSwan)

R resilience in remote-access VPNs should be interpreted as a system-level property emerging from the interaction of implementation architecture, endpoint characteristics, and deployment conditions, underline that resilience in remote-access VPNs should be interpreted as a system-level property emerging from the intera...

Rene Forsung, R. Pirmagomedov, A. Mezina et al. · 0 citations
Preprint Sep 2026

TPM-Attest: Hardware-Rooted Integrity Attestation as a Kernel-Level Anti-Cheat Alternative for Linux

TPM-Attest is presented, a hardware-rooted remote attestation framework that uses the Trusted Platform Module (TPM) 2.0 and the Linux Integrity Measurement Architecture (IMA) to prove, cryptographically, that a client booted cleanly and ran only authorised software -- without any kernel driver, without proprietary code...

Anudeep Gedela, A. Technology, Gitam University et al. · 0 citations
Open access Aug 2026

Formal Specification of Trusted Execution Environment APIs and Model Checking of Trusted Applications

A formal specification for TEE APIs using Maude focuses on the Trusted Storage API and the Cryptographic Operations API, both foundational to mobile and IoT applications and applies a state-space reduction technique based on invisible transitions to mitigate the state explosion problem.

Geunyeol Yu, Seunghyun Chae, Kyungmin Bae et al. · 0 citations
#data science Open access Oct 2026

Zero Trust for SQL Server: A Three-Layer Security Architecture

This study designed and empirically validated a three-layer Zero Trust architecture for Microsoft SQL Server that natively integrates instance-level authentication governance, enhanced Role-Based Access Control with Row-Level Security and Just-in-Time privilege elevation, and metadata-driven Attribute-Based Access Cont...

Maynard Capil, D. Dasig · 0 citations
Preprint Aug 2026

Weird Machines in Transport Layer Security

It is shown that legitimate TLS primitives, including session cache entries, renegotiation logic, extension parsing, and certificate verification steps, compose into Turing-complete systems whose computation is coupled to authentication and trust decisions rather than physical actuation.

Michael Collins, J. Cumberland, Brianne Dunn et al. · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.