Can someone help me whether the below query qualifies as a recurring malware on host use case
rule host_with_recurring_malware_infection{
meta:
author = "A"
description = "Detects recurring malware infection on the same host based on malware hash."
severity = "Low"
events:
//Detection logic goes here
$event.metadata.event_type = "PROCESS_LAUNCH"
$event.metadata.vendor_name = /Cylance/ nocase
$event.metadata.product_name = /PROTECT/ nocase
$event.metadata.product_event_type = /Threat/ nocase
$event.security_result.summary != /(Waived|Cleared)/ nocase
$file_hash = strings.coalesce($event.target.process.file.md5, $event.target.process.file.sha256)
$file_name = $event.target.process.file.full_path
$targeted_host = strings.to_upper(strings.coalesce($event.target.hostname, $event.principal.hostname))
match:
$targeted_host over 60m
outcome:
$risk_score = max(40)
condition:
#event > 1
}
