Lesson 12 of 19 · 22m
When the Logs Lie: Tamper Detection and Evidence the Attacker Can't Reach
How attackers actually blind Windows logging — suspended service threads, patched ETW functions, cleared evtx, stomped $MFT timestamps — and the shipped-copy evidence none of that touches.
A cleared Security log is not a dead end. It is a finding — 1102 fires after the wipe lands, written into the fresh log — and it usually sits next to a collection of evidence the attacker never reached. The mistake is treating the endpoint's logs as the investigation. They're the first thing the attacker contested. The investigation is everything that already shipped off the box before they got to it.
The three ways logging goes dark
Deletion. wevtutil cl security and Clear-EventLog write Security 1102 ("audit log cleared") and System 104 as their last acts. Deleting .evtx files outright doesn't work — the EventLog service holds them open — so real-world tampering favors the other two methods.
Suspension. Techniques like Phant0m suspend the EventLog service's threads rather than killing the service: events queue silently, nothing writes, no 1100/1102 fires because nothing "stopped." The .evtx files sit idle while the process table keeps generating them. Detection is behavioral — a Get-WinEvent read of the .evtx directly still works (it bypasses the service entirely), and the live event stream simply stops arriving at the SIEM while the host stays busy. Silence is the signal.
Patching. The surgical version patches EtwEventWrite/EventWriteTransfer inside the compromised process to an immediate ret — killing that process's ETW telemetry while leaving the logging pipeline intact for everything else. Same trick against amsi.dll for script scanning. This matters for scoping: ETW patching is per-process, so the rest of the box's telemetry is still valid. The attacker silenced their payload, not your logs. On Linux the equivalent is an LD_PRELOAD rootkit filtering syslog()/send() calls — the local log looks clean while the forwarder already shipped the real record.
Reading what the tamperer left
- RecordID gaps: every event carries a monotonically increasing
RecordID. A jump — 45121 to 45890 with no rollover — proves a cleared or replaced log segment. - Histogram holes: chart events per hour. A forty-minute crater in an otherwise-chatty Security log is the tamper window, and it brackets what they didn't want you to see.
- Timestomping:
SetFileTimeonly rewrites$STANDARD_INFORMATIONtimestamps. The$FILE_NAMEattribute's copies aren't reachable by user-mode APIs, and$LogFile/$UsnJrnlrecorded the modification event itself. A file claiming to be three years old whose journal entries are from Tuesday is stomped. - ADS hiding:
evil.exeparked atreport.pdf:payload—dir /rreveals alternate data streams, and Sysmon event15(FileCreateStreamHash) logged their creation. - Shadow deletion:
vssadmin delete shadows /all,bcdedit ... recoveryenabled no,wbadmin delete catalog— the ransomware pre-flight checklist. Each runs a logged command; the deletion is the evidence.
The evidence the attacker can't reach
This is the structural point: anything forwarded before they arrived is outside their blast radius. Windows Event Forwarding subscriptions on the collector hold copies the endpoint can't revoke. SIEM ingest, off-box syslog-ng/rsyslog, the EDR vendor's cloud telemetry, CloudTrail under S3 Object Lock, firewall/netflow, DNS resolver and PassiveDNS records, VPN concentrator logs, packet captures — none of it lives on the contested machine. Rank sources by distance from attacker control and work from the far end inward. And forward in depth: a collector the attacker can reach gets the same treatment as the endpoint — the design goal is that wiping one log always leaves the copy.
Operational posture
On the endpoint itself, read .evtx files directly with Get-WinEvent -Path (bypasses a suspended service), pull the same hives and logs out of the forensic image and out of VSS snapshots for the pre-tamper copies — vssadmin list shadows first, since ransomware crews delete them as step one — and treat every gap, reset, and silence window as a timeline boundary. The attacker didn't just erase data; they timestamped their own cleanup for you.
Was this lesson helpful?
Keep reading
Related articles from the SudoSecurity blog.
CVE-2025-62718: Critical Axios SSRF Vulnerability Explained
A critical SSRF flaw in Axios was used in a North Korean supply chain attack. Here's what it does and how to patch it today.
Attacks of UPS Devices are on the Rise warns CISA
Hackers have now begun to attack internet-connected universal power supply devices. They are targeting their control interfaces via multiple remote code execution vulnerabilities. In some of the cases, they changed the default usernames and passwords, according to an important advisory from the…
Immich Had Fourteen Advisories and One Bug It Fixed Three Times
Immich's 2026 security record runs to fourteen advisories, and they cluster hard: the sharing features, the OAuth plumbing, and one login redirect parameter that took three separate fixes across eighty-three days. Plus the 3.0 migration traps still waiting for anyone who hasn't jumped yet.
Jellyfin's Threat Model Is Your Brother-in-Law
Four Jellyfin CVEs landed in 2026 and not one of them needs an admin account. One needs only the ability to name a file. Meanwhile Jellyfin 12 shipped in September, the version numbers stopped starting with 10, and every "am I patched" check you wrote is now wrong.