Abstract
Protecting system observability records (logs) from compromised operating systems is critical for forensic integrity, yet existing solutions often struggle with high performance overheads and significant log protection delays. Many current approaches also rely on large Trusted Computing Bases (TCB), such as general-purpose hypervisors or TrustZone, which increase the attack surface. This paper introduces HitchHiker, a system designed to ensure in-memory protection of batched logs within short, configurable real-time deadlines. By leveraging efficient hardware permission switching (ARM S2PT and GPT) rather than traditional memory copying, HitchHiker reduces log protection delay by 93.3–99.3% and shrinks the TCB by 9.4–26.9x compared to state-of-the-art systems. Performance evaluations demonstrate a geometric mean overhead of less than 6% across diverse real-world workloads.
1. Introduction
System logs serve as the "black box" for cybersecurity, providing the essential data needed for post-mortem forensics. However, when an attacker gains kernel-level privileges, they typically prioritize deleting or altering these records to obfuscate their presence. Existing protection mechanisms face a difficult trilemma: balancing performance, the length of the "exposure window" (the time logs sit unprotected in memory), and the size of the TCB.
Asynchronous logging systems often utilize a protection window of 15ms or more to maintain performance. However, modern exploits like DirtyPipe can compromise and wipe logs in as little as 12ms. HitchHiker addresses these challenges by providing near-instant log protection with minimal overhead and a high-assurance security footprint.
2. System Design and Methodology
HitchHiker departs from the traditional "copy-to-secure-memory" paradigm, which becomes a bottleneck in high-throughput environments. Instead, it treats memory protection as a hardware-level toggle.
2.1 Hardware Permission Switching
The core innovation of HitchHiker is the use of ARM-specific hardware primitives: Stage-2 Page Tables (S2PT) and Granule Protection Tables (GPT). Rather than moving data, the system flips a bit in these hardware tables to make the memory buffer inaccessible to the untrusted OS. This constant-time operation ensures that protection latency does not scale with log size.
2.2 HitchHiker Monitor (HkM) and TCB Reduction
To ensure high assurance, the system employs the HitchHiker Monitor (HkM), a minimized security monitor running at the highest privilege level (EL3). To keep the TCB small, the authors avoid porting full storage drivers. Instead, they utilize a "record-and-replay" strategy to synthesize a specialized, 500-line driver for log persistence. The total TCB is approximately 32k lines of code, significantly smaller than virtualization-based alternatives.
2.3 Deadline-Enforced Protection
HitchHiker uses a hardware timer to trigger permission switches at sub-millisecond intervals (e.g., 1ms). This ensures the exposure window is shorter than the time required for known "brutal" semantic exploits to execute their cleanup routines.
3. Evaluation
The system was evaluated using micro-benchmarks (getpid-flood, lmbench) and ten real-world applications, including Nginx, Redis, MySQL, and OpenSSL. Security validation involved reproducing ten real-world kernel CVEs to test log preservation.
3.1 Performance and Latency
HitchHiker achieves protection deadlines between 1.015ms and 100μs. In log-intensive workloads, it incurred a geometric mean overhead of ~6%, a significant improvement over the previous state-of-the-art (OmniLog), which reached overheads of 52.6% in similar conditions. This efficiency is largely attributed to the elimination of CPU-intensive memory copying.
3.2 Security Efficacy
In tests against the DirtyPipe exploit, HitchHiker—configured with a 1ms window—successfully preserved over 97% of attack logs. In contrast, systems with a standard 15ms window allowed the attacker to successfully wipe the entire trace before protection was triggered.
4. Discussion and Limitations
While HitchHiker provides robust protection, certain challenges remain. A sophisticated attacker might attempt to manipulate the Interrupt Controller (GIC) to delay the hardware timer. Future iterations may involve write-protecting GIC registers to mitigate this. Additionally, like all logging systems, HitchHiker is susceptible to Provenance-Assisted Denial of Service (PADoS), where an attacker floods the system with events to degrade performance. Finally, while S2PT is widely available, GPT is part of ARM’s newer Confidential Compute Architecture (CCA) and is still transitioning into commodity hardware.
5. Conclusion
HitchHiker demonstrates that high-assurance logging does not require sacrificing performance. By replacing memory copies with hardware-enforced permission switches and drastically reducing the TCB, HitchHiker provides a scalable and secure solution for protecting system observability in the face of kernel-level compromises.
Summary updated