The evidencestore project, developed in Go and licensed under Apache 2.0, provides a mechanism for verifying system logs even if they are deleted or modified by a root user. The system uses a collector that runs alongside the log files and a remote storage unit that acts as a witness, ensuring that every log entry is recorded and verifiable offline.
The architecture relies on hash chains, Merkle trees, and RFC 3161 timestamps to ensure data integrity. Each log entry is assigned a sequence number and stored in a buffer before transmission via HTTPS with TLS 1.3. The storage unit signs the log entries, allowing auditors to verify the authenticity of records without needing access to the storage server itself.
To prevent tampering, the system handles log rotation by tracking files via inode and birth time. If a log file is deleted or modified, the collector detects the change, and the storage unit records any gaps in the sequence. The system also includes mechanisms to detect if the collector has been stopped or if the storage clock has been manipulated.
The verification process is performed offline using a small utility and public keys. Because the system uses external timestamping services and monotonic clocks, it remains resilient against clock drift and attempts by administrators to forge timestamps. The project is designed to be transparent, following principles similar to Certificate Transparency.





