Skip to content

Commit cb070a1

Browse files
committed
feat(rules): Clear Eventlog rule
Identifies attempts to clear Windows event log stores. Adversaries attempt to evade detection or destroy forensic evidence on a system to cover their trails and slow down incident response.
1 parent 74a755b commit cb070a1

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Clear Eventlog
2+
id: 692d3143-e1fb-4dab-8c9c-3109ff80ec85
3+
version: 1.0.0
4+
description: |
5+
Identifies attempts to clear Windows event log stores. Adversaries attempt to evade detection or
6+
destroy forensic evidence on a system to cover their trails and slow down incident response.
7+
labels:
8+
tactic.id: TA0005
9+
tactic.name: Defense Evasion
10+
tactic.ref: https://attack.mitre.org/tactics/TA0005/
11+
technique.id: T1070
12+
technique.name: Indicator Removal
13+
technique.ref: https://attack.mitre.org/techniques/T1070/
14+
subtechnique.id: T1070.001
15+
subtechnique.name: Clear Windows Event Logs
16+
subtechnique.ref: https://attack.mitre.org/techniques/T1070/001/
17+
18+
condition: >
19+
sequence
20+
maxspan 1m
21+
by file.object
22+
|set_file_information and file.info_class = 'EOF' and file.info.eof_size > 50000 and file.name imatches '?:\\Windows\\System32\\winevt\\Logs\\*.evtx'|
23+
|set_file_information and file.info_class = 'Allocation' and file.info.allocation_size > 50000|
24+
25+
output: >
26+
Windows Eventlog store %1.file.name was cleared
27+
severity: high
28+
29+
min-engine-version: 2.3.0

rules/macros/macros.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@
2828
- macro: delete_file
2929
expr: kevt.name = 'DeleteFile'
3030

31+
- macro: set_file_information
32+
expr: kevt.name = 'SetFileInformation'
33+
3134
- macro: query_registry
3235
expr: kevt.name in ('RegQueryKey', 'RegQueryValue') and registry.status = 'Success'
3336

0 commit comments

Comments
 (0)