Defense Evasion (TA0005)(external, opens in a new tab or window)
text code block:file where host.os.type == "windows" and event.type == "deletion" and file.path : ( "*.exe:Zone.Identifier", "*.exe:Zone.Identifier:$DATA", "*.msi:Zone.Identifier", "*.msi:Zone.Identifier:$DATA" ) and /* Explorer may remove MOTW after SmartScreen */ not ( process.executable : "?:\\Windows\\explorer.exe" and process.code_signature.trusted == true and process.code_signature.subject_name : "Microsoft Windows" )
Install detection rules in Elastic Security
Detect Mark-of-the-Web Removal by an Unusual Process 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).