-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Detecting WafflesExploits Shellcode in Image Files.kql
- Loading branch information
Showing
1 changed file
with
12 additions
and
0 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
DefenderXDR/Detecting WafflesExploits Shellcode in Image Files.kql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// Detecting WafflesExploits Shellcode in Image Files | ||
// https://wafflesexploits.github.io/posts/Hide_a_Payload_in_Plain_Sight_Embedding_Shellcode_in_a_Image_file/ | ||
|
||
let ImageExtension = dynamic([".apng", ".png", ".avif", ".gif", ".jpg", ".jpeg", ".jfif", ".pjpeg", ".pjp", ".png", ".svg", ".webp", ".bmp", ".tif", ".tiff"]); | ||
let CPPId = dynamic(["Microsoft Visual C++"]); | ||
let WhiteListedFileName = dynamic(["logo.png","vcredist.bmp","watermark.bmp","header.bmp","SplashScreen.bmp"]); | ||
DeviceFileEvents | ||
| where InitiatingProcessVersionInfoFileDescription has_any(CPPId) | ||
| where ActionType == @"FileCreated" | ||
| where FileName has_any(ImageExtension) | ||
| where not(FileName has_any(WhiteListedFileName)) | ||
|