Skip to content

Commit 9c86fbe

Browse files
Clearing Event Log with wevtapi functions (#1006)
* Added related wevtapi functions * Update clear-windows-event-logs.yml * Update clear-windows-event-logs.yml * Create clear-windows-event-logs-remotely.yml * Update clear-windows-event-logs-remotely.yml * Update clear-windows-event-logs-remotely.yml * Update clear-windows-event-logs-remotely.yml * Revert "Update clear-windows-event-logs-remotely.yml" This reverts commit 97b5730. * Update clear-windows-event-logs-remotely.yml * Update clear-windows-event-logs-remotely.yml --------- Co-authored-by: Elad Levi <[email protected]>
1 parent 71dd21d commit 9c86fbe

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
rule:
2+
meta:
3+
name: clear Windows event logs remotely
4+
namespace: anti-analysis/anti-forensic/clear-logs
5+
authors:
6+
7+
scopes:
8+
static: function
9+
dynamic: span of calls
10+
att&ck:
11+
- Defense Evasion::Indicator Removal::Clear Windows Event Logs [T1070.001]
12+
references:
13+
- https://github.com/getel-arch/ClearLogsRemotely
14+
examples:
15+
- 4f509bdfe5a2fe4320cdc070eedc0a72e12cc08f43d60a7701305b3d1408102b:0x1400014de
16+
features:
17+
- and:
18+
- api: wevtapi.EvtOpenSession
19+
- api: wevtapi.EvtOpenLog
20+
- api: wevtapi.EvtClearLog

anti-analysis/anti-forensic/clear-logs/clear-windows-event-logs.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,12 @@ rule:
2020
- or:
2121
- api: advapi32.ElfClearEventLogFile
2222
- api: advapi32.ClearEventLog
23+
- api: wevtapi.EvtClearLog
2324
- optional:
2425
- api: advapi32.OpenEventLog
2526
- api: advapi32.GetNumberOfEventLogRecords
27+
- api: wevtapi.EvtOpenLog
28+
- api: wevtapi.EvtOpenSession
2629
- basic block:
2730
- and:
2831
- string: /wevtutil(\.exe)?\s+(clear-log|cl)/i

0 commit comments

Comments
 (0)