mirror of https://gitlab.com/curben/blog
1.1 KiB
1.1 KiB
| title | layout | date |
|---|---|---|
| Windows System Event Log Clearing Events | page | 2025-07-27 |
Description: Looks for Windows event codes that indicate the Windows Audit Logs were tampered with. References: 1, 2 SPL:
| tstats summariesonly=true allow_old_summaries=true count FROM datamodel=Change.All_Changes WHERE index="windows" (source="XmlWinEventLog:Security" AND All_Changes.result_id=1102) OR (source="XmlWinEventLog:System" AND All_Changes.result_id=104)
BY host, All_Changes.dest, All_Changes.object, All_Changes.object_path, All_Changes.result, All_Changes.result_id, All_Changes.user, _time span=1s
| rename All_Changes.* AS *, dest AS Computer, object_path AS Name, result AS EventDescription, result_id AS EventCode, user AS Context
| eval Time = strftime(_time, "%Y-%m-%d %H:%M:%S %z")
| table Time, host, EventCode, EventDescription, Name, object, Context, Computer