Skip to content

Conversation

ablescia
Copy link

PersistenceSniper is an excellent tool for detecting persistences on a system. I use it regularly in my daily Threat Hunting activities. But I believe also this tool could significantly enhance a Detection Engineer's program.

For this reason, the Write-ToETW module is essential to forward the PersistenceSniper result to ETW (Event Trace for Windows) and then ingest into a SIEM.

By using a custom provider, we can have preformatted events that do not require parsing during the ingestion phase.
write-toetw

To avoid retro-compatibility problems, this pull request contains a separate folder called Plugins/Write-ToETW that contains the following files:

  • ETWLib.cs: C# file that contains the EventSource source code
  • PersistenceSniper.man: ETW instrumentation file for PersistenceSniper logs
  • WinSDKInstaller: script used to install the Windows SDK. It is necessary to compile the Instrumentation Manifest
  • Write-ToETW.psm1: PowerShell module that contains the function used to ship the result to the ETW

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant