File Create =========== Via its filter driver, Sysmon can log the creation of files and information on what process is creating the file using **EventID 11**. This allows defender to filter for: * Dropping of files for later execution (PowerShell, Office Apps, certutil.exe) * Modification of system configurations (Scheduled Tasks, WMI) * Detection of malicious behaviors that create temporary or log files (.Net compile and run, DotNet2JS) Since AV minifilter loads before Sysmon (due to the lower altitude number range), if an AV or EDR minifilter driver detects a malicious file and blocks it writing to disk, Sysmon will not see the event. ![minifilter](./media/image36.png) The file creation event fields are: * **RuleName**: Name of rule that triggered the event * **UtcTime**: Time in UTC when event was created * **ProcessGuid**: Process Guid of the process that created the file * **ProcessId**: Process ID used by the OS to identify the process that created the file (child) * **Image**: File path of the process that created the file * **TargetFilename**: Name of the file that was created * **CreationUtcTime**: File creation time Example monitoring for script file creation by extension: ```XML .hta .bat .cmd .ps1 .ps2 .jse .vb .vbe .vbs .application .appref-ms .*proj .sln .docm .pptm .xlsm .xlm .dotm .xltm .potm .ppsm .sldm .xlam .xla AppData\Local\Microsoft\CLR_v2.0\UsageLogs\ \UsageLogs\cscript.exe.log \UsageLogs\wscript.exe.log \UsageLogs\wmic.exe.log \UsageLogs\mshta.exe.log \UsageLogs\svchost.exe.log \UsageLogs\regsvr32.exe.log \UsageLogs\rundll32.exe.log ```