Skip to content

Latest commit

 

History

History
43 lines (28 loc) · 1.92 KB

File metadata and controls

43 lines (28 loc) · 1.92 KB

Dev - Sysmon

About

Sysmon is an advanced background monitor that records process-related activity to the event log.

Capture

This application is available through the WindowsSpyBlocker executable (see sysmon.go for more info).
To install Sysmon, execute WindowsSpyBlocker.exe and choose the Install option in Dev > Sysmon.

This installs Sysmon as a service that will survive reboots, collect network connection information, record MD5 hashes for all created processes, and record loading of modules.
Everything will be recorded in the Windows event log in C:\Windows\System32\winevt\Logs\Microsoft-Windows-Sysmon%4Operational.evtx.
You can see every events in the Event Viewer window (Start > Run > eventvwr) :

Applications and Services Logs > Microsoft > Windows > Sysmon > Operational

Parsing

WindowsSpyBlocker can be used to parse events and generate CSV files.
Before executing the script, do not forget to edit the app.conf file.

  • sysmon
    • evtxPath: Path to the event log.
  • exclude
    • ips: exclude IPs addresses from parsing. Ranges are allowed and in most cases you have to exclude your local network.
    • hosts: exclude domains from parsing. Wildcard are allowed and in most cases you have to exclude your local network.
    • orgs: exclude by whois organization from parsing. Wildcard are allowed and in most cases you have to exclude your ISP.

Then launch WindowsSpyBlocker.exe and select Dev > Sysmon > Extract log :

CSV files will be generated in logs/ folder :

  • sysmon-all.csv
  • sysmon-hosts-count.csv
  • sysmon-unique.csv