arXiv:2608.29758cs.CRAug 2026

Manuscript Offprint

arXiv:2608.29758

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

Zhenling Duan, Pan Dong, Renshuang Jiang, Xiaoxiang Fang, Bao Li

Zhenling Duan¹[0009-0004-7097-2494], Pan Dong¹*[0000-0002-2890-260X], Renshuang Jiang¹[0009-0002-4411-8150], Xiaoxiang Fang¹[0009-0000-5409-8670], and Bao Li¹[0000-0002-4504-6841]

College of Computer Science and Technology, National University of Defense Technology, Changsha, China {dzl,pandong,rshuang,baoli}@nudt.edu.cn

Abstract. 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 can be bypassed once the kernel is compromised. Isolation-based security approaches provide stronger protection by separating security logic from the kernel, but strict isolation often introduces semantic gaps that limit system visibility and hinder timely threat detection. In this paper, we present LOOM, a lightweight out-of-band operating system monitoring architecture built on ARM TrustZone. By leveraging TrustZone's hardware-enforced isolation, LOOM establishes a tamper-resistant monitoring environment independent of the kernel. To bridge the semantic gap, we design a lightweight semantic reconstruction mechanism in the Secure World. It selectively captures the states and behavioral patterns of critical kernel objects, such as process control blocks and kernel modules. Additionally, LOOM introduces a dual-stage hazard prevention mechanism that combines atomic memory protection with an interrupt-driven adaptive agent to detect and mitigate kernel rootkit activities. An address translation cache is further incorporated to optimize repeated address access and reduce monitoring overhead. Overall, we develop a multi-layered collaborative architecture with platform, functional, and auxiliary layers for secure and efficient kernel monitoring. A prototype of LOOM has been implemented on the Phytium D2000 platform. Experimental results indicate that LOOM incurs negligible overhead while maintaining a strong monitoring capability. Furthermore, a security capability analysis based on CVE cases demonstrates that LOOM can detect and mitigate various kernel attacks.

Keywords: ARM TrustZone · Out-of-Band monitoring · Kernel security · Threats detection · Isolation mechanisms.

1 Introduction

The increasing prevalence of vulnerabilities within operating system (OS) kernels, coupled with kernel-level threats such as rootkits [1], is diminishing the efficacy of traditional protection methods.

Conventional approaches are usually implemented within the system kernel, where protective measures and attack targets operate at the same privilege level. This overlap in attack surfaces creates a shared-fate dependency: once the kernel is compromised, the protection mechanisms also fail. Given the inherent complexity and fragility of kernel structures, some in-kernel mechanisms are susceptible to vulnerabilities such as privilege escalation and control-flow hijacking, which further challenge the reliability.

To overcome these limitations, an isolation mechanism that provides OS-independent security enforcement and remains resilient to kernel interference offers a promising solution. Rather than strengthening kernel-resident defenses, we advocate for an out-of-band monitoring design that operates independently, ensuring reliable security even if the kernel is compromised.

Isolation can be achieved through various infrastructures, including pure hardware isolation (e.g., Trusted Platform Module (TPM) [2] and Hardware Security Module (HSM) [3]), software virtualization isolation (e.g., microkernels and containers), or hardware-software collaborative isolation (e.g., Trusted Execution Environment (TEE) [4]). However, these technologies trade off in terms of security, perceptual capabilities, and performance overhead. For instance, while hardware isolation provides superior security, it can limit system flexibility. On the other hand, software isolation is generally easier to deploy but may introduce additional vulnerabilities.

Furthermore, increased isolation creates larger semantic gaps. Limited interaction between security components and the system kernel reduces visibility and understanding of the system state, while raising observation and enforcement costs. Thus, effective out-of-band security monitoring within an isolation framework faces some critical, unresolved challenges:

  1. Hardware-enforced isolation significantly restricts the secure world's understanding of kernel semantics, making it inherently difficult to achieve accurate system comprehension without compromising isolation guarantees.

  2. Semantic reconstruction faces a dilemma between completeness and complexity. Comprehensive kernel mirroring is unfeasible and expands the attack surface, while inadequate semantics diminish the effectiveness of monitoring.

  3. Out-of-band monitoring presents challenges to timely threat detection and response, as it relies on indirect observation and mediated control instead of direct involvement with the kernel.

  4. Balancing monitoring overhead with security is challenging, as aggressive optimization can compromise guarantees or introduce new trust assumptions.

This progression marks a shift from "kernel-reliant protection" to "isolation-based security," highlighting the tension between isolation and information accessibility. To address this, we propose a lightweight out-of-band OS monitor

(LOOM) based on the ARM TrustZone.By leveraging TrustZone's hardware-enforced isolation, which provides a separate execution domain from the Normal World, our approach establishes a tamper-resistant security foundation. Additionally, it enables high-speed, low-intrusion memory operations in the Normal World through its built-in one-way memory access mechanism and high-privilege register interface. This design facilitates the detection and prevention of kernel rootkits that attempt to manipulate kernel objects or execution paths while evading detection by in-kernel monitors. Consequently, this framework is an ideal platform for effective out-of-band monitoring.

Building upon this foundation, a lightweight semantic reconstruction module is integrated within the Secure World to dynamically monitor and capture the state and behavior patterns of key kernel objects and events. The monitored Objects include Process Control Blocks (task_struct), File Descriptor Tables (files_operations), kernel module lists, and so on. Additionally, a dual-stage hazard prevention is introduced. First, atomic operations mark certain pages as read-only or non-executable to protect the page table from tampering. Second, an adaptive agent uses interrupts to swiftly detect and halt kernel rootkits when it identifies malicious activity. Moreover, we introduce an address translation cache in LOOM to optimize overhead.

We adopt a multi-layered collaborative architecture consisting of (i) a platform layer that provides TrustZone-based isolation and the channel of access, (ii) a functional layer responsible for semantics-aware monitoring and behavioral control, and (iii) an auxiliary layer that optimizes the system performance overhead. Together, these layers form a secure, controllable, and efficient LOOM for kernel security. The primary contributions of this work are as follows:

  • We introduce the LOOM framework, which facilitates effective monitoring of kernel security and adds the capability to prevent emerging threats, thereby filling the gap in secure kernel monitoring based on the ARM TrustZone.
  • We have developed a prototype on the Phytium D2000, and our experimental results show that it brings negligible overhead.
  • The security capabilities of LOOM are analyzed through representative CVE case studies, demonstrating the types of vulnerabilities that can be effectively detected.

References (25)