arXiv:2609.05011cs.CRSep 2026

Manuscript Offprint

arXiv:2609.05011

TPMSpy: Validation of Measured Boot Systems by Low-Level Tracing of TPM Usage

Roman Lacko, Petr Svenda

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Roman Lacko¹ and Petr Švenda¹

Masaryk University, Brno, Czechia

Abstract. Measured Boot extends trust in a booted system by recording cryptographic measurements of executed software and system state into a Trusted Platform Module (TPM), enabling subsequent verification through remote attestation. Although this mechanism is increasingly deployed in contemporary operating systems, its practical security depends on whether implementations measure the expected components under the expected conditions, yet this is not checked systematically. We propose a platform-agnostic method for analysing low-level TPM usage at the level of virtualized system-TPM interactions. It enables independent reconstruction and validation of the TPM Event Log without relying on the quoting mechanism itself. Because it does not depend on implementation details, it is applicable to both open and closed systems. We demonstrate the method on both Linux and Windows and conduct a systematic longitudinal analysis of Linux systems with systemd versions 245–258 (2020–2025), examining how Measured Boot usage evolved and observing wide divergence. No single usage pattern emerged amongst systems, warranting customized analysis.

The analysis identifies undocumented behavioural changes, reveals inconsistent measurements of user-space systemd services, which prevent reliable remote attestation and LUKS disk decryption on such systems.

Keywords: TPM · Measured Boot · systemd.

1 Introduction

Ensuring the boot integrity of a computing system is one element of an efficient defence against malware [39]. Firmware and bootloaders can be compromised to render the system inoperable, exfiltrate confidential information, or gain unrestricted access [42]. Two general approaches are used to address this: Verified Boot ensures only known components are allowed to run, while Measured Boot collects evidence in the form of the identities of executed components [32]. The collected evidence is then evaluated during remote attestation [15]. Especially on personal computers, the evidence is often used to unlock encrypted volumes automatically—BitLocker on Windows [34] and LUKS on Linux [2]. While Measured and Verified Boot, in principle, promise an effective defence against early-boot threats, their implementations evolve, and the behaviour of these mechanisms differs across vendors, versions, and configurations, necessitating a non-intrusive, scalable way to verify their properties as they evolve.

Common implementations of Verified and Measured Boot in PCs and servers utilize a Trusted Platform Module (TPM) [51], a secure coprocessor with tamper-resistant key storage and dedicated measurement registers. Every boot component participating in Measured Boot measures the component that will be executed next in the chain. The measurements are passed to TPM, which incorporates them into the collected evidence using cryptographic hash functions, preventing a malicious component from erasing its own traces retrospectively. The appraisers request a copy of the registers signed by the TPM, called a TPM Quote. The system maintains a TPM Event Log that includes inputs and metadata for each measurement, which is intended to aid in interpreting the TPM Quote. While the correctness of the log can be verified by replaying the events and comparing the results with the evidence, a scalable and reliable method for verifying completeness (i.e., that all components were measured with matching events recorded in the log) is not yet available. Most boot components lack a precise description of their TPM usage, and directly observing TPM interactions to reconstruct independent evidence is technically challenging. Our paper aims to identify methods that allow this independent reconstruction.

The systemd project [7] has been documenting its TPM utilization since version 248. Unlike other systems, which rarely disclose such details (notably Windows [36]), this allows for transparent development of attestation policies. Still, the documentation must match the behaviour, which aligns with the goal of this paper: verifying the completeness of the measurements.

We investigate the following research questions:

References (41)