Enable Audit Process Creation¶
Follow these steps to turn on detailed auditing of every process that is created on a Windows system.
Via Command-Line (no reboot)¶
'''powershell
Enables Success auditing for process creation¶
auditpol /set /subcategory:"Process Creation" /success:enable '''
Via Local Group Policy Editor¶
Using the Local Group Policy Editor
- Run
gpedit.msc
. - Navigate to:
Verify It’s On¶
'''powershell auditpol /get /subcategory:"Process Creation"
Expected output:¶
Process Creation Success Enabled¶
'''
Install Sysmon with ImageLoad & ProcessCreate¶
Sysmon extends Windows auditing by logging detailed process and DLL load events.
1. Download Sysmon¶
Obtain the latest Sysmon binaries from Microsoft Sysinternals:
:System link: https://docs.microsoft.com/sysinternals/downloads/sysmon
2. Create a Minimal XML Configuration¶
Save the following as sysmon-config.xml
:
'''xml
3. Install or Update Sysmon¶
From an elevated PowerShell prompt in the folder containing sysmon64.exe
and your sysmon-config.xml
:
'''powershell
First install¶
.\sysmon64.exe -i sysmon-config.xml
To update an existing installation¶
.\sysmon64.exe -c sysmon-config.xml '''