Defense Evasion (TA0005)(external, opens in a new tab or window)
text code block:any where host.os.type == "windows" and (event.category : ("library", "driver") or (event.category == "process" and event.action : "Image loaded*")) and (?dll.name : "scrobj.dll" or ?file.name : "scrobj.dll") and process.executable : ("?:\\Windows\\System32\\*.exe", "?:\\Windows\\SysWOW64\\*.exe") and not process.executable : ( "?:\\Windows\\System32\\cscript.exe", "?:\\Windows\\SysWOW64\\cscript.exe", "?:\\Windows\\system32\\msiexec.exe", "?:\\Windows\\SysWOW64\\msiexec.exe", "?:\\Windows\\System32\\smartscreen.exe", "?:\\Windows\\system32\\taskhostw.exe", "?:\\windows\\system32\\inetsrv\\w3wp.exe", "?:\\windows\\SysWOW64\\inetsrv\\w3wp.exe", "?:\\Windows\\system32\\wscript.exe", "?:\\Windows\\SysWOW64\\wscript.exe", "?:\\Windows\\System32\\mshta.exe", "?:\\Windows\\system32\\mobsync.exe", "?:\\Windows\\SysWOW64\\mobsync.exe", "?:\\Windows\\System32\\cmd.exe", "?:\\Windows\\SysWOW64\\cmd.exe", "?:\\Windows\\System32\\OpenWith.exe", "?:\\Windows\\System32\\wbem\\WMIADAP.exe", "?:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe")
Install detection rules in Elastic Security
Detect Suspicious Script Object Execution 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).