Credential Access (TA0006)(external, opens in a new tab or window)
Lateral Movement (TA0008)(external, opens in a new tab or window)
text code block:file where host.os.type == "windows" and event.type == "creation" and /* regf file header */ file.Ext.header_bytes : "72656766*" and file.size >= 30000 and process.pid == 4 and user.id : ("S-1-5-21*", "S-1-12-1-*") and not file.path : ( "?:\\*\\UPM_Profile\\NTUSER.DAT", "?:\\*\\UPM_Profile\\NTUSER.DAT.LASTGOODLOAD", "?:\\*\\UPM_Profile\\AppData\\Local\\Microsoft\\Windows\\UsrClass.dat*", "?:\\Windows\\Netwrix\\Temp\\????????.???.offreg", "?:\\*\\AppData\\Local\\Packages\\Microsoft.*\\Settings\\settings.dat*" )
Install detection rules in Elastic Security
Detect Windows Registry File Creation in SMB Share in the Elastic Security detection engine by installing this rule into your Elastic Stack.
To setup this rule, check out the installation guide for Prebuilt Security Detection Rules(external, opens in a new tab or window).