Giter VIP home page Giter VIP logo

evtscanner's Introduction

INTRO

Powershell script to scan Windows eventlog with Sigma rules and send the results to syslog endpoint. This doesn't include all Sigma rules but the ones that are most effective.

All conditions included from Florian Roth's Godmode Sigma rule: https://github.com/Neo23x0/sigma/blob/master/other/godmode_sigma_rule.yml

Some additional rules also included which I found relevant.

More detailed explanation in this blog post: https://dfirale.github.io/dfir/2021/03/01/Finding-evil-with-Powershell-and-Get-WinEvent.html

stats

REQUIREMENTS

  • (Recommended) Sysmon installed

  • (Optional) Commandline auditing on Windows process create events

USAGE

1.) Powershell needs to be run with elevated privileges (admin/system). Deploy the script through GPO or run with PsExec etc.

2.) Pass the syslog endpoint ip as parameter - example:

.\evtscanner.ps1 -ip 192.168.1.1

3.) OPTIONAL - If you don't have a syslog endpoint/receiver you can use these really simple receivers provided in this repo

Powershell: Specify parameters port and file

.\syslogreceiver.ps1 -port 514 -file C:\Users\Johndoe\Desktop\events.txt

Python: Predefined port is 514 (default port for syslog). Edit the script if you wish to change the logfile. Default is events.log in the current directory.

python3 syslogreceiver.py

Updates

2021-10-10

  • Commandline indicators on process create events
  • Sysmon Pipe event (17) indicators (malware, Cobalt Strike, PWdumpers, RCE)
  • Couple system event (7045) indicators
  • Shorten and beautify code

TODO

  • Add more rules
  • Function to scan .evtx files exported from another host
  • Function to generate html or csv results locally
  • Process the receiver results to html or csv

evtscanner's People

Contributors

dfirale avatar

Stargazers

James Kelly avatar  avatar

Watchers

James Cloos avatar  avatar

Forkers

slooppe

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.