Paper 2023/867
Security Analysis of Forward Secure Log Sealing in Journald
Abstract
This paper presents a security analysis of forward-secure log sealing in the journald logging system, which is installed by default in almost all modern Linux distributions. Forward-secure log sealing is a cryptographic technique used to ensure the integrity of past log entries even in the event of a full system compromise. We identify multiple security vulnerabilities in journald resulting from a gap between the model of the cryptographic primitives and their usage in a larger context. Our contribution is both theoretical and practical: As a practical contribution, we discovered attacks on the log sealing in journald and provide descriptions as well as implementations of the attacks. In particular one vulnerability allows to forge arbitrary logs for past entries without the validation tool noticing any problem. This finding completely breaks the security guarantee of log sealing. For all described vulnerabilities we provide patches, the two more serious ones are merged in systemd version 255. As a theoretical contribution, we provide formal definitions that capture the expected security properties of log sealing. We demonstrate our attacks on the vulnerable version of journald by showing how an attacker can defeat this security definition. Furthermore, we provide a modified version of the logging scheme which underlies the one in journald and prove that it satisfies our security definition. Since our patches have been merged, our logging scheme is the basis for the log sealing in journald. This work narrows the gap between theory and practice. It provides a practical example of the problems that can occur when applying cryptographic primitives to a complex real world system. It makes the logging implementation used in many Linux distributions more secure and demonstrates the importance of rigorous security analysis of cryptographic systems.
Note: This is an expanded version of the version on record published at ACNS 2025. This version includes more details on the missing verification checks for fast-access structures. We have expanded the discussion of the implementation, describing the parallels between the demonstrated attack and the given security definition. To make the explanation of the journal file format more visual, we included a symbolic example of a journal file. We give details about the different timestamps used in the journal file.
Metadata
- Available format(s)
-
PDF
- Category
- Applications
- Publication info
- Published elsewhere. Major revision. ACNS 2025
- DOI
- 10.1007/978-3-031-95764-2_13
- Keywords
- Log SealingSecure LoggingAttacksSecurity AnalysisProvable Security
- Contact author(s)
-
felix doerre @ kit edu
astrid ottenhues @ kit edu - History
- 2025-06-21: revised
- 2023-06-07: received
- See all versions
- Short URL
- https://ia.cr/2023/867
- License
-
CC BY
BibTeX
@misc{cryptoeprint:2023/867,
author = {Felix Dörre and Astrid Ottenhues},
title = {Security Analysis of Forward Secure Log Sealing in Journald},
howpublished = {Cryptology {ePrint} Archive, Paper 2023/867},
year = {2023},
doi = {10.1007/978-3-031-95764-2_13},
url = {https://eprint.iacr.org/2023/867}
}