Notes · 7 November 2026 · 5 min read

Hash-chained audit logs, explained for a quality manager

A hash-chained audit log makes an edited, inserted or deleted record detectable, not impossible. How it works, what it proves and how to test one.

A hash-chained audit log links each record to the one before it, so an edited, inserted or deleted record breaks the chain and a check finds it. It makes tampering detectable, not impossible. A quality manager can rely on it to show that a trail is unchanged, provided the chain is checked and its weak points are covered.

  • Each record carries a fingerprint of its own content and of the record before it
  • Changing any record changes its fingerprint, and the next record no longer matches
  • A check names the record where the chain breaks
  • A chain on its own cannot show that the end of the log was cut off: that needs an anchor kept elsewhere

What the standard asks for

ISO 15189:2022 does not mention hash chains. It asks for records that can be trusted and for systems that protect them.

  • Control of records (8.4). Records are kept so that they are legible and retrievable. An amendment can be traced to the previous version or the original observation, with the date, what was changed and who changed it.
  • Information systems (7.6). A system that holds laboratory data is protected from unauthorised access and safeguarded against tampering or loss.

Neither clause requires a particular technique. A bound register with numbered pages meets the same aim on paper: a removed page or an overwritten entry shows. The question for any electronic trail is the same: would a change be noticed?

How a hash chain works

A hash is a short fingerprint calculated from a piece of text. The same text always gives the same hash, and changing a single character gives a completely different one.

  1. When an event is recorded, the program calculates a hash from the new record together with the previous record's hash.
  2. That hash is written into the new record.
  3. To check the log, the program recalculates every hash from the first record and compares each with the one stored.

Edit a line and its hash no longer matches. Insert or delete a line and the next record's link no longer fits. The check stops at the first mismatch and reports where it is.

What a chain proves, and what it does not

An intact chain shows that the records in the file are the ones written, in the order written. It does not show more than that.

  • It detects, it does not prevent. The log is an ordinary file. Anyone with write access can still change it. The change shows at the next check.
  • It covers recorded events only. An action the program does not record is not in the chain. Ask the supplier for the list of recorded events.
  • The tail is its weak point. Removing the last records leaves a shorter chain that still checks. So does replacing the whole file with a new chain. An anchor kept outside the log, recording how far the chain had reached, closes that gap.
  • Access still matters. File permissions decide who can reach the log at all. The chain tells you whether someone did.

Testing it yourself

A claim of a tamper-evident trail can be tested in a few minutes, on a test copy, never on the live one.

  1. Use the program to record a few events, then open the audit log in a text editor.
  2. Change one character in a middle line and save.
  3. Restart the program or run its integrity check. It should report the chain broken at that line.
  4. Restore the copy, delete the last few lines and check again. If nothing is reported, ask how a cut-off tail is detected.

Keep the result with the system's verification record.

How LotWarden and EQAWarden keep the trail

Both programs write a hash-chained audit log on the same foundation. The log is a readable, tab-delimited text file, so it can be read without the program.

  • Each recorded event carries the signed-in person, the Windows account, the time, the release that performed it and the details
  • LotWarden records receipts, log writes, Dates in Use, removals, overridden warnings, shelf counts, sign-offs and settings changes
  • EQAWarden records imports, mappings, settings, link switches, exports and sign-offs
  • The chain is checked at each start, and EQAWarden's Status page names the record where a break is found
  • Audit anchors are kept outside the log file, so a later check can show whether the trail was cut short, changed or replaced. In the network version they sit on the shared drive, in a folder IT should make add-only for receiving staff

Tampering is detected and reported, not prevented. The log files are protected by the laboratory's own file permissions. The Security evidence page, under Records in LotWarden and under Status and settings in EQAWarden, checks both audit chains and the anchors on the copy in use and prints the result for IT.

Plainly answered

Does a hash-chained audit log stop anyone editing records?

No. It makes an edit detectable, not impossible. The log is still a file that someone with write access can change, but any edited, inserted or deleted record breaks the chain, and the next check reports where. File permissions are what limit who can make the change in the first place.

Does ISO 15189:2022 require a hash-chained audit trail?

No. The standard asks that amendments to records are traceable to the original, with the date, the change and the person, and that information systems are safeguarded against tampering or loss. A hash chain is one way to show that an electronic trail has not been changed, but the standard does not name a technique.

Can someone delete the end of a hash-chained log without it showing?

With a chain alone, yes: removing the last records leaves a shorter chain that still checks. That is why an anchor kept outside the log matters. It records how far the chain had reached, so a later check can show that the trail was cut short or replaced.

How can a laboratory test whether an audit log is really tamper-evident?

On a test copy, record a few events, change one character in a middle line of the log and run the program's check: it should report the break at that line. Then delete the last lines on a fresh copy and check again, which shows whether a cut-off tail is detected. Keep the results with the system's verification record.