BLF File Creation by an Unusual Process
Description
Identifies an unelevated attempt to create a BLF file by an unusual process. This may indicate an attempt to exploit a CLFS vulnerability for privilege escalation.
Query · eql
file where event.action == "creation" and user.id != "S-1-5-18" and user.id != null and process.pid != 4 and
file.extension : "blf" and file.Ext.header_bytes == "1500010002000200000000004b824cc6" and file.path : "C:\\*.blf" and
(process.code_signature.exists == false or process.code_signature.trusted == false) and not process.code_signature.status like "errorCode_endpoint*" and
not file.path : ("C:\\Windows\\System32\\*.blf",
"C:\\Windows\\SysWOW64\\*.blf",
"C:\\Windows\\appcompat\\*.blf",
"C:\\Windows\\ServiceProfiles\\*.blf",
"C:\\Users\\*\\AppData\\Local\\Temp\\*\\UsrClass.dat*.blf",
"C:\\Users\\*\\NTUSER.DAT{*}.TM.blf",
"C:\\System Volume Information\\*.blf",
"C:\\$WINDOWS.~BT\\NewOS\\Windows\\*.blf",
"C:\\Users\\*\\AppData\\Local\\Temp\\Ruf*.tmp\\SYSTEM{*}.TM.blf",
"C:\\Users\\*\\SetupRST_RecoveryImage\\Windows\\System32\\config\\*.TM.blf") and
not process.executable : ("C:\\Windows\\System32\\SystemSettingsAdminFlows.exe",
"C:\\Windows\\explorer.exe",
"C:\\Program Files\\*.exe",
"C:\\Program Files (x86)\\*.exe",
"C:\\Windows\\System32\\pnputil.exe",
"C:\\$WINDOWS.~BT\\*.exe")