Skip to content

Commit

Permalink
Update 2024-02-11-offensive-etw.md
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjiTrapp committed Feb 11, 2024
1 parent 64b4d35 commit 4d0fcab
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions _attacks/2024-02-11-offensive-etw.md
Expand Up @@ -87,7 +87,7 @@ Within the spotless-tracing session, we'll subscribe to events related to PROCES

To subscribe to these events, we must reference the available keywords of Microsoft-Windows-Kernel-Process and combine 0x10 (WINEVENT_KEYWORD_PROCESS) with 0x40 (WINEVENT_KEYWORD_IMAGE), resulting in a total of 0x50:

![](/images/etw_spotless_tracing3.webp)
![](/images/etw_spotlesstracing3.webp)

We can now register a provider to the tracing session and ask it to emit events that map back to events WINEVENT_KEYWORD_PROCESS and WINEVENT_KEYWORD_IMAGE:

Expand All @@ -101,21 +101,21 @@ If we query the tracing session again, we see it now has Microsoft-Windows-Kerne
logman query spotless-tracing -ets
```

![](/images/etw_spotless_tracing4.webp)
![](/images/etw_spotlesstracing4.webp)


### Checking the .etl Log

After the tracing session has run for some time, we can check the log file by opening it with the Windows Event Viewer.
We can see process creation events (event ID 1):

![](/images/etw_spotless_tracing5.png)
![](/images/etw_spotlesstracing5.png)

Image load events (event ID 5):
![](/images/etw_spotless_tracing6.webp)
![](/images/etw_spotlesstracing6.webp)

Image unload events (event ID 6):
![](/images/etw_spotless_tracing7.webp)
![](/images/etw_spotlesstracing7.webp)


### Removing Providers from a Tracing Session
Expand Down Expand Up @@ -204,4 +204,4 @@ namespace SimpleKernelConsumer {
}
}
}
```
```

0 comments on commit 4d0fcab

Please sign in to comment.