sequence with maxspan=2h
[file where host.os.type == "windows" and event.type != "deletion" and file.extension : "exe" and
(process.name : "WINWORD.EXE" or
process.name : "EXCEL.EXE" or
process.name : "OUTLOOK.EXE" or
process.name : "POWERPNT.EXE" or
process.name : "eqnedt32.exe" or
process.name : "fltldr.exe" or
process.name : "MSPUB.EXE" or
process.name : "MSACCESS.EXE")
] by host.id, file.path
[process where host.os.type == "windows" and event.type == "start" and
not (process.name : "NewOutlookInstaller.exe" and process.code_signature.subject_name : "Microsoft Corporation" and process.code_signature.trusted == true) and
not (process.name : "ShareFileForOutlook-v*.exe" and process.code_signature.subject_name : "Citrix Systems, Inc." and process.code_signature.trusted == true)
] by host.id, process.executable
Install detection rules in Elastic Security
Detect Execution of File Written or Modified by Microsoft Office 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(opens in a new tab or window).