From f7dd4f24345ede54f43e99d711c85030559c6c8a Mon Sep 17 00:00:00 2001 From: Carlos Perez Date: Thu, 6 Oct 2022 10:41:49 -0400 Subject: [PATCH] Create file-blockshredding.md Intial update for file block shreeding event in sysmon 14.1 --- chapters/file-blockshredding.md | 56 +++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 chapters/file-blockshredding.md diff --git a/chapters/file-blockshredding.md b/chapters/file-blockshredding.md new file mode 100644 index 0000000..63a8d22 --- /dev/null +++ b/chapters/file-blockshredding.md @@ -0,0 +1,56 @@ +File Block EXE +=========== + +On version 14.1 of Sysmon the capability to log and block when a process is deleting a file by overwriting its file blocks. Events will be loggedusing **EventID 27**. This event type is found under schema version 4.83. + + +![minifilter](./media/image36.png) + +The minidriver inspect the action that is being taken to see if it is a file block overwrite and if the header of the file for the MZ DOS Executable header. Some common processes on system that perform actions that may generate some false positives are: + +* svchost.exe +* dllhost.exe + +Sysmon will not generate any alert on screen for the user once it takes the action. + + +### Event information + +The file delete 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 overwrote the fileblocks for the file + +* **ProcessId**: Process ID used by the OS to identify the process that overwrote the fileblocks for the file. + +* **Image**: File path of the process that overwrote the fileblocks for the file + +* **TargetFilename**: Name of the file that is being deleted. + +* **Hashes**: Full hash of the file with the algorithms in the HashType field. + +* **IsExecutable**: If the file has a MZ header saying the file is an executable. + + + +Here is a sample rule that removes some of thje false positives using full path and using a compound rule to make it harder to spoof by an attacker. + +```XML + + sha1 + + + + + + C:\WINDOWS\System32\svchost.exe + NT AUTHORITY\LOCAL SERVICE + + + + + +```