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.

Lesson 16 of 16 · 10 min read · practice only with authorization

Diagram

Signs that logs were touched

Follow the path. One example at a time.

Step 1 of 4

Windows

Clearing a log leaves its own event.

Illustration: Windows
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.

  1. 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.
  2. 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.
  3. 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.

1 / 3

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.

Practice

  1. LabTerminal mission: The hour missing from auth.logauth.log on files-01 jumps from 01:58 to 03:10. The journal and the login records were not touched. Find the gap, the session inside it, and how lines were removed.

Glossary

  1. CardLog tamperingThe record of what happened is edited or stopped.