Log tampering: detecting cleared, stopped, or altered logs
Intruders clear event logs and stop logging to cover their tracks. Which events record that on Windows, Linux, and cloud platforms, and how central forwarding and write-once storage keep evidence intact.
Diagram
Signs that logs were touched
Step 1 of 4
Windows
Clearing a log leaves its own event.
Security 1102: The audit log was cleared. Account: FIN-LT-044\ana System 104: The System log file was cleared.
The example on the open step is one illustration, or the fix you can paste into an application you own.
What this page is made of
3 pieces. Each one says what fails, who is affected, what you would notice, and what you change.
Cleared logs
- What fails
- Clearing generates 1102 (Security) or 104 (System and others).
- Who is affected
- Every investigation on that host.
- What you would notice
- Those events, especially outside maintenance.
- What you change
- Alert on them and keep forwarded copies.
Gaps
- What fails
- Stopped services leave silent periods.
- Who is affected
- Visibility.
- What you would notice
- Sources that stop sending while the host is alive.
- What you change
- Alert on per-source silence.
Writable storage
- What fails
- If attackers can reach the log store, they can delete it.
- Who is affected
- Evidence.
- What you would notice
- Log buckets in the same account with admin delete rights.
- What you change
- Use a separate log account and write-once storage.
Finding silence
A simple query per source over time shows when a host went quiet. Compare with other evidence that it was running.
Heartbeat | summarize last = max(TimeGenerated) by Computer | where last < ago(15m) | join kind=inner (DeviceNetworkEvents | where TimeGenerated > ago(15m) | distinct DeviceName) on $left.Computer == $right.DeviceName
Check yourself
Recognition and the fix. Nothing here is a procedure.
Which Windows event shows the Security log was cleared?
Sibling techniques
Pages at the same depth, plus a lab and a glossary card for this one.
This page stands on its own. The lab and the glossary card are the next reading.