Skip to content

brett-cmd/sigma-esf

Repository files navigation

sigma-esf

This is a fork of bradleyjkemp/sigma-esf with the following enhancements:

  • Added daemon/LaunchDaemon support
  • Added log file output flag
  • Fixed wildcard condition parsing for newer Sigma rules
  • Updated to sigma-go v0.6.6
  • Included macos sigma rules

Run Sigma detection rules on logs from the new MacOS Endpoint Security Framework.

This is a super simple CLI that ties together:

  • ProcessMonitor and FileMonitor from Patrick Wardle to do the Endpoint Security Framework subscribing
  • sigma-go to take the stream of Endpoint Security events and match them against Sigma rules.

Installation

  1. Install ProcessMonitor and FileMonitor from https://objective-see.com/products/utilities.html
  2. ⚠️ Make sure you follow the (Process|File)Monitor prerequisites so that Endpoint Security Framework works properly:
    • The terminal app you're using to run sigma-esf needs to have "Full Disk Access" granted.
    • You need to be running sigma-esf as root.
  3. Install sigma-esf using either:
    • go install github.com/bradleyjkemp/sigma-esf
    • brew install bradleyjkemp/formulae/sigma-esf

Usage

The most basic usage of sigma-esf is to simply run sudo sigma-esf within your Sigma rules folder.

There's not much configuration available yet other than:

  • Disabling either file or process events (collecting all events can be quite CPU intensive so disable ones you don't need)
  • Pointing to a directory of Sigma rules rather than using the current directory
Usage of sigma-esf:
  -monitor_files
    	Whether to monitor file events (default true)
  -monitor_processes
    	Whether to monitor process creation events (default true)
  -sigma_rules string
    	Path to a directory containing the Sigma rules to run (default ".")

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors