Suspicious Execution via Microsoft Common Console
Description
Identifies the execution of a child process from a Microsoft Common Console file. Adversaries may embed malicious commands in an MSC file in order to trick them into executing malicious commands.
Query · eql
process where event.action == "start" and
process.parent.executable : "?:\\Windows\\System32\\mmc.exe" and process.parent.args : "*.msc" and
not process.parent.args : ("?:\\Windows\\System32\\*.msc", "?:\\Windows\\SysWOW64\\*.msc", "?:\\Program files\\*.msc", "?:\\Program Files (x86)\\*.msc") and
not process.executable :
("?:\\Windows\\System32\\mmc.exe",
"?:\\Windows\\System32\\wermgr.exe",
"?:\\Windows\\System32\\WerFault.exe",
"?:\\Windows\\System32\\DWWIN.EXE",
"?:\\Windows\\SysWOW64\\mmc.exe",
"?:\\Program Files\\*.exe",
"?:\\Program Files (x86)\\*.exe",
"?:\\Windows\\System32\\shrpubw.exe",
"?:\\Windows\\System32\\certreq.exe",
"?:\\Windows\\System32\\spool\\drivers\\x64\\3\\*.EXE",
"?:\\Program Files (x86)\\Microsoft\\Edge\\Application\\msedge.exe",
"?:\\Program Files\\internet explorer\\iexplore.exe",
"?:\\Windows\\Microsoft.NET\\Framework64\\*\\vbc.exe",
"?:\\windows\\system32\\VmConnect.exe",
"?:\\Windows\\System32\\Dism\\dismhost.exe",
"?:\\Windows\\System32\\DeviceProperties.exe") and
not (process.executable : "?:\\Windows\\explorer.exe" and process.args : "ms-settings:windowsupdate") and
not (process.pe.original_file_name == "DismHost.exe" and process.args : "{*}" and
process.code_signature.subject_name == "Microsoft Windows" and process.code_signature.trusted == true) and
process.hash.sha256 != "7208b36f57e9af293043adcaf2180db10fff9e0bfffdbac81ad2ac5dbead6a30"