Paper 2023/867
Secure Logging in between Theory and Practice: Security Analysis of the Implementation 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 part of systemd and used in 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 analyze the implementation of this technique in journald, identifying multiple security vulnerabilities resulting from a gap between the model of the cryptographic primitives and their usage in a larger context. In particular one vulnerability allows to forge arbitrary logs for past entries without the validation tool noticing any problem. We demonstrate the found attacks on the journald implementation by providing a concrete security definition for the larger system, an implementation close to the security experiment and a corresponding attacker defeating it when used with a vulnerable version of journald. For the more serious vulnerabilities, we provide patch recommendations, which prevent the implemented attack. Our findings break the security guarantee from log sealing completely, without the error resulting from an inconsistency in the theoretical model nor being a simple implementation mistake. This provides a practical example of the problems that can occur when applying cryptographic primitives to a complex system in reality and that fall in between theory and practice.
Metadata
- Available format(s)
- Category
- Applications
- Publication info
- Preprint.
- Keywords
- Secure LoggingSystemdJournaldForward SecurityKey-EvolvingImplementation IssuesSymmetric Cryptography
- Contact author(s)
-
felix doerre @ kit edu
astrid ottenhues @ kit edu - History
- 2023-06-12: approved
- 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 = {Secure Logging in between Theory and Practice: Security Analysis of the Implementation of Forward Secure Log Sealing in Journald}, howpublished = {Cryptology {ePrint} Archive, Paper 2023/867}, year = {2023}, url = {https://eprint.iacr.org/2023/867} }