Skip to main content
QUICK REVIEW

[Paper Review] Sprobes: Enforcing Kernel Code Integrity on the TrustZone Architecture

Xinyang Ge, Hayawardh Vijayakumar|arXiv (Cornell University)|Oct 28, 2014
Security and Verification in ComputingComputer Science18 references74 citations
TL;DR

This paper introduces SPROBES, a novel mechanism that enforces kernel code integrity on ARM TrustZone-enabled smartphones by enabling unforgeable traps on specific kernel instructions. By enforcing five critical invariants, SPROBES prevent rootkits from removing instrumentation, demonstrating that only 12 SPROBES are needed to secure the Linux kernel 2.6.38.

ABSTRACT

Many smartphones now deploy conventional operating systems, so the rootkit attacks so prevalent on desktop and server systems are now a threat to smartphones. While researchers have advocated using virtualization to detect and prevent attacks on operating systems (e.g., VM introspection and trusted virtual domains), virtualization is not practical on smartphone systems due to the lack of virtualization support and/or the expense of virtualization. Current smartphone processors do have hardware support for running a protected environment, such as the ARM TrustZone extensions, but such hardware does not control the operating system operations sufficiently to enable VM introspection. In particular, a conventional operating system running with TrustZone still retains full control of memory management, which a rootkit can use to prevent traps on sensitive instructions or memory accesses necessary for effective introspection. In this paper, we present SPROBES, a novel primitive that enables introspection of operating systems running on ARM TrustZone hardware. Using SPROBES, an introspection mechanism protected by TrustZone can instrument individual operating system instructions of its choice, receiving an unforgeable trap whenever any SPROBE is executed. The key challenge in designing SPROBES is preventing the rootkit from removing them, but we identify a set of five invariants whose enforcement is sufficient to restrict rootkits to execute only approved, SPROBE-injected kernel code. We implemented a proof-of-concept version of SPROBES for the ARM Fast Models emulator, demonstrating that in Linux kernel 2.6.38, only 12 SPROBES are sufficient to enforce all five of these invariants. With SPROBES we show that it is possible to leverage the limited TrustZone extensions to limit conventional kernel execution to approved code comprehensively.

Motivation & Objective

  • Address the growing threat of rootkit attacks on smartphones running conventional operating systems.
  • Overcome the limitations of virtualization-based introspection, which is impractical on smartphones due to lack of virtualization support and high overhead.
  • Leverage ARM TrustZone's hardware isolation to enforce kernel code integrity without requiring full virtualization.
  • Design a mechanism that prevents rootkits from removing instrumentation, ensuring persistent detection of malicious code.
  • Demonstrate that a minimal number of SPROBES can comprehensively secure kernel execution on trusted hardware.

Proposed method

  • Introduce SPROBES as a new primitive that allows a trusted monitor to instrument individual kernel instructions for introspection.
  • Use TrustZone's secure world to enforce five invariants that restrict kernel execution to only approved, SPROBE-injected code.
  • Ensure trap generation is unforgeable by making SPROBE execution detectable and irreversible by the normal world kernel.
  • Implement a proof-of-concept in the ARM Fast Models emulator targeting Linux kernel 2.6.38.
  • Design the SPROBE mechanism so that any attempt to remove or bypass it violates at least one of the five invariants.
  • Use hardware-enforced memory isolation and secure exception handling to prevent manipulation of SPROBE state by malicious kernels.

Experimental results

Research questions

  • RQ1Can kernel code integrity be enforced on smartphones with limited hardware virtualization support?
  • RQ2How can a trusted monitor in TrustZone detect and prevent rootkit tampering of kernel code without full virtualization?
  • RQ3What minimal set of invariants can ensure that rootkits cannot remove or bypass SPROBE instrumentation?
  • RQ4Is it feasible to achieve comprehensive kernel introspection using only a small number of SPROBES on a real-world kernel?
  • RQ5Can SPROBES be implemented efficiently enough to be practical on mobile platforms?

Key findings

  • SPROBES successfully enforce kernel code integrity on ARM TrustZone by enabling unforgeable traps on selected kernel instructions.
  • Only 12 SPROBES are required to enforce all five invariants in the Linux kernel 2.6.38, demonstrating high efficiency.
  • The five invariants collectively prevent rootkits from removing or bypassing SPROBEs, ensuring persistent introspection capability.
  • The proof-of-concept implementation in the ARM Fast Models emulator confirms the feasibility of SPROBES on real-world kernels.
  • SPROBES enable effective introspection without requiring full virtualization, making them practical for mobile systems.

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.