IT Forensics · Linux

Forensic analysis of the ext4 journal – reconstructing write operations and system states

The ext4 journal logs metadata and, depending on the configuration, changes to file contents before they are permanently written to the file system. Its primary purpose is to provide protection against system crashes, but it also contains traces of recent write operations that can be analysed forensically.

Enquire without obligation

Journal entries are time-limited, as older entries are overwritten on a cyclical basis. Analysing them therefore requires timely backups and an understanding of the respective journal modes (Ordered, Writeback, Journal), as these significantly influence the forensic validity of the data.

Why LanCologne?

Since its foundation, LanCologne has specialised in professional IT forensics. Our staff have decades of experience in the field of information technology and assist companies, solicitors, private individuals and, on a regular basis, the courts in the technical investigation of complex digital matters.

The examination is, as a matter of principle, carried out exclusively on a forensic copy, a forensic image or a data source captured in a technically equivalent manner that preserves the integrity of the evidence. The original evidence remains unchanged and is stored in a manner that preserves its integrity.

Our services

We extract and interpret existing journal transactions, order them chronologically and reconcile them with the current state of the file system in order to reconstruct recent or interrupted write operations.

Typical areas of application

Reconstruction of recent file system changes
Investigation of interrupted write operations following a system crash
Analysis of attempts to tamper with system files
Chronological classification of system events
Incident Response on Linux Systems
Judicial and non-judicial expert reports

This is how an ext4 journal analysis works

Once the backup has been completed, the configured journal mode is first determined, as this defines the scope of the data that can be analysed. Existing journal transactions are extracted, sorted chronologically and compared with the current file system state and other timestamps. Any unusual or unexpected transactions are documented separately.

Why is log analysis relevant in a forensic context?

The log may contain ephemeral traces of write operations that are no longer visible elsewhere, for example following deliberate attempts to delete data or tampering shortly before a backup. It therefore provides an additional, independent source of verification.

As journal contents are overwritten on a cyclical basis, the timing of the backup is crucial to its reliability. A delayed backup may result in the irretrievable loss of relevant journal entries.

Frequently Asked Questions

What is contained in the ext4 journal?+
Depending on the journal mode, it contains metadata and, in some cases, changes to file content, which are logged before the final write operation.
How long are journal entries retained?+
This depends on the system’s write activity, as older entries are overwritten on a cyclical basis. Taking a recent backup increases the chances of success.
Does the journal replace a full file system analysis?+
No. The journal supplements the regular file system analysis with additional time-limited information, but does not replace it.

LanCologne – Linux Forensics Cologne

Do you require a professional forensic investigation into „forensic analysis of ext4 journals"? LanCologne can assist you with the legally admissible preservation of digital evidence and the transparent analysis of relevant Linux artefacts.

Get in touch now