Tamper-evident log
A tamper-evident log is an append-only record in which each entry carries a hash linked to the entry before, so any alteration or deletion can be detected.
A tamper-evident log is a record that cannot be changed without the change showing. Entries are only ever added, never edited or removed, and each entry stores a cryptographic hash of its own content together with the hash of the entry before it, so the entries form a chain.
How it works
- A new event is written with its content, its time and the previous entry's hash.
- A hash of all of that is computed and stored with the entry.
- To check the log, the hashes are worked out again from the first entry onwards. If an entry was altered, removed or inserted, its hash no longer matches and every link after it breaks.
Good to know
Tamper-evident is not tamper-proof: the log does not stop someone with access from trying to change it, but it makes the attempt visible. That is what lets an audit trail serve as evidence, because a reader can see the record is intact.
Questions
What is tamper-evident log?
A tamper-evident log is an append-only record in which each entry carries a hash linked to the entry before, so any alteration or deletion can be detected. A tamper-evident log is a record that cannot be changed without the change showing. Entries are only ever added, never edited or removed, and each entry stores a cryptographic hash of its own content together with the hash of the entry before it, so the entries form a chain.
Related terms
Sources
- WCO Guidelines for Post-Clearance Audit wcoomd.org/en/topics/enforcement-and-compliance/instruments-and-tools/guidelines/pca-guidelines.aspx
Rules, rates and lists change. Nohena applies the version in force on the date of each check; confirm the current text with the body that owns it.