Created
March 16, 2021 17:33
-
-
Save mgraeber-rc/0055122eed15e45bffcd03a12c7a6dc7 to your computer and use it in GitHub Desktop.
Example custom event view I used to display only relevant PowerShell logs for a demo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<QueryList> | |
<Query Id="0" Path="Security"> | |
<Select Path="Security"> | |
*[System[(EventID='4688')]] | |
and | |
*[EventData[Data[@Name='NewProcessName']='C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe']] | |
</Select> | |
<Select Path="Microsoft-Windows-PowerShell/Operational"> | |
*[System[(EventID='4104')]] | |
and | |
*[EventData[Data[@Name='ScriptBlockText']!='$global:?']] | |
and | |
*[EventData[Data[@Name='ScriptBlockText']!=". 'C:\Windows\System32\WindowsPowerShell\v1.0\profile.ps1'"]] | |
and | |
*[EventData[Data[@Name='Path']!='C:\Windows\System32\WindowsPowerShell\v1.0\profile.ps1']] | |
</Select> | |
<Select Path="Microsoft-Windows-Sysmon/Operational"> | |
*[System[(EventID='1')]] | |
and | |
*[EventData[Data[@Name='Image']='C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe']] | |
</Select> | |
</Query> | |
</QueryList> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment