Skip to content

Instantly share code, notes, and snippets.

@mgraeber-rc
Created March 16, 2021 14:43
Show Gist options
  • Save mgraeber-rc/12ef0a0770ca7e844ec19e47beac93c1 to your computer and use it in GitHub Desktop.
Save mgraeber-rc/12ef0a0770ca7e844ec19e47beac93c1 to your computer and use it in GitHub Desktop.
A sysmon configuration that defaults to logging nothing. I use this as a baseline configuration for testing purposes where I can selectively turn on log sources by changing "include" to "exclude"
<Sysmon schemaversion="4.50">
<HashAlgorithms>md5,sha256</HashAlgorithms>
<EventFiltering>
<!--Event ID 1: Process creation-->
<ProcessCreate onmatch="include"></ProcessCreate>
<!--Event ID 2: A process changed a file creation time-->
<FileCreateTime onmatch="include"></FileCreateTime>
<!--Event ID 3: Network connection-->
<NetworkConnect onmatch="include"></NetworkConnect>
<!--Event ID 5: Process terminated-->
<ProcessTerminate onmatch="include"></ProcessTerminate>
<!--Event ID 6: Driver loaded-->
<DriverLoad onmatch="include"></DriverLoad>
<!--Event ID 7: Image loaded-->
<ImageLoad onmatch="include"></ImageLoad>
<!--Event ID 8: CreateRemoteThread-->
<CreateRemoteThread onmatch="include"></CreateRemoteThread>
<!--Event ID 9: RawAccessRead-->
<RawAccessRead onmatch="include"></RawAccessRead>
<!--Event ID 10: ProcessAccess-->
<ProcessAccess onmatch="include"></ProcessAccess>
<!--Event ID 11: FileCreate-->
<FileCreate onmatch="include"></FileCreate>
<!--Event ID 12: RegistryEvent (Object create and delete)-->
<!--Event ID 13: RegistryEvent (Value Set)-->
<!--Event ID 14: RegistryEvent (Key and Value Rename)-->
<RegistryEvent onmatch="include"></RegistryEvent>
<!--Event ID 15: FileCreateStreamHash-->
<FileCreateStreamHash onmatch="include"></FileCreateStreamHash>
<!--Event ID 17: PipeEvent (Pipe Created)-->
<!--Event ID 18: PipeEvent (Pipe Connected)-->
<PipeEvent onmatch="include"></PipeEvent>
<!--Event ID 19: WmiEvent (WmiEventFilter activity detected)-->
<!--Event ID 20: WmiEvent (WmiEventConsumer activity detected)-->
<!--Event ID 21: WmiEvent (WmiEventConsumerToFilter activity detected)-->
<WmiEvent onmatch="include"></WmiEvent>
<!--Event ID 22: DNSEvent (DNS query)-->
<DnsQuery onmatch="include"></DnsQuery>
<!--Event ID 23: FileDelete (A file delete was detected)-->
<FileDelete onmatch="include"></FileDelete>
<!--Event ID 24: ClipboardChange (New content in the clipboard)-->
<ClipboardChange onmatch="include"></ClipboardChange>
<!--Event ID 25: ProcessTampering (Process image change)-->
<ProcessTampering onmatch="include"></ProcessTampering>
</EventFiltering>
</Sysmon>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment