sequence with maxspan=1m
[file where host.os.type == "windows" and event.type in ("creation", "change") and
process.pid == 4 and (file.extension : "exe" or file.Ext.header_bytes : "4d5a*")] by host.id, file.path
[process where host.os.type == "windows" and event.type == "start" and
not (
/* Veeam related processes */
(
process.name : (
"VeeamGuestHelper.exe", "VeeamGuestIndexer.exe", "VeeamAgent.exe", "VeeamLogShipper.exe",
"Veeam.VSS.Sharepoint20??.exe", "OracleProxy.exe", "Veeam.SQL.Service", "VeeamDeploymentSvc.exe"
) and process.code_signature.trusted == true and process.code_signature.subject_name : "Veeam Software Group GmbH"
) or
/* PDQ related processes */
(
process.name : (
"PDQInventoryScanner.exe", "PDQInventoryMonitor.exe", "PDQInventory-Scanner-?.exe",
"PDQInventoryWakeCommand-?.exe", "PDQDeployRunner-?.exe"
) and process.code_signature.trusted == true and process.code_signature.subject_name : "PDQ.com Corporation"
) or
/* CrowdStrike related processes */
(
(process.executable : "?:\\Windows\\System32\\drivers\\CrowdStrike\\*Sensor*.exe" and
process.code_signature.trusted == true and process.code_signature.subject_name : "CrowdStrike, Inc.") or
(process.executable : "?:\\Windows\\System32\\drivers\\CrowdStrike\\*-CsInstallerService.exe" and
process.code_signature.trusted == true and process.code_signature.subject_name : "Microsoft Windows Hardware Compatibility Publisher")
) or
/* MS related processes */
(
process.executable == "System" or
(process.executable : "?:\\Windows\\ccmsetup\\ccmsetup.exe" and
process.code_signature.trusted == true and process.code_signature.subject_name : "Microsoft Corporation")
) or
/* CyberArk processes */
(
process.executable : "?:\\Windows\\CAInvokerService.exe" and
process.code_signature.trusted == true and process.code_signature.subject_name : "CyberArk Software Ltd."
) or
/* Sophos processes */
(
process.executable : "?:\\ProgramData\\Sophos\\AutoUpdate\\Cache\\sophos_autoupdate1.dir\\SophosUpdate.exe" and
process.code_signature.trusted == true and process.code_signature.subject_name : "Sophos Ltd"
) or
/* Elastic processes */
(
process.executable : (
"?:\\Program Files\\Elastic\\Agent\\data\\elastic-agent-*\\components\\previous\\elastic-endpoint.exe",
"?:\\Program Files\\Elastic\\Agent\\data\\elastic-agent-*\\elastic-agent.exe",
"?:\\Program Files\\Elastic\\Agent\\data\\elastic-agent-*\\components\\agentbeat.exe"
) and
process.code_signature.trusted == true and process.code_signature.subject_name : "Elasticsearch, Inc."
)
)
] by host.id, process.executable
Install detection rules in Elastic Security
Detect Remote Execution via File Shares 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).