Anti-Forensic Log Tampering
Also called log wiping, timeline manipulation, log clearing.
Deleting, editing, or zeroing host logs and history to hide intruder activity.
What it is
A category of techniques in which an attacker removes or alters evidence on Unix-like hosts (truncating shell history, deleting or editing /var/log files, zeroing wtmp/utmp records, or disabling logging daemons) to frustrate reconstruction. The goal is to break the timeline and hide the means of access.
Why it matters
Recognizing tampering is as important as reading the logs themselves: gaps, impossibly clean files, mismatched inode timestamps, and disabled audit services all betray that cleanup occurred. Cross-referencing multiple independent sources, including the journal's tamper sealing and surviving snapshots, can reconstruct what was erased.
In practice
A log directory whose files all shared one suspicious modification time, alongside a stopped auditd service, made clear the timeline had been deliberately scrubbed.
What to look for
- Gaps in log timestamps or sequence numbers.
- Logs truncated to zero bytes.
- Edits to wtmp, utmp or shell history with tools built for it.
Common mistake
Trusting a clean log. Compare with forwarded copies to find what was removed.
Practice it nearby
CyberKit has no tool for this term itself. These are the closest places to practice it.
In the field
Well-known tools where this shows up on the job. They are listed to show the landscape, not as a recommendation.
-
Splunk Enterprise Security Commercial
A SIEM where these logs are searched with SPL and turned into correlation searches.
-
Microsoft Sentinel Commercial
Microsoft's cloud SIEM, queried with KQL and fed by connectors for these log sources.
-
Elastic Security Commercial
A SIEM built on Elasticsearch, with a detection rules library and timeline investigations.
-
Wazuh Open source
An open source platform that collects, decodes and alerts on host and log data.
Read next
- wtmp / btmp / lastlog: Binary Unix login-accounting databases behind the last, lastb, and lastlog commands.
- Shell History Files: Per-user logs of typed shell commands; a key record of operator activity on Unix.
- APFS Snapshots: Read-only point-in-time copies of an APFS volume usable to recover prior state.