Hello , I am getting the following error : "validating intermediate representation: event variables are not all joined by equalities, the joined groups are: (e) , (ioc) " which doesn't surprise me . What could be an alternative ?
Thanks for your help!
Here is my rule :
rule Sekoia_OpenCTI_IoC_hashes {
meta:
author = "MSM"
description = "8:00 AM local time"
severity = "Medium"
events:
$e.metadata.event_type = "PROCESS_LAUNCH"
$e.principal.hostname = $host
(
$ioc.graph.entity.namespace = "SEKOIA" or
$ioc.graph.entity.namespace = "OPENCTI"
)
$ioc.graph.metadata.entity_type = "FILE"
$ioc.graph.entity.resource.attribute.labels["revoked"] = "false"
(
$ioc.graph.metadata.threat.risk_score > 50 or
$ioc.graph.metadata.threat.confidence_score > 50
)
$ioc.graph.entity.file.sha256 = $sha256
$ioc.graph.entity.file.sha1 = $sha1
$ioc.graph.entity.file.md5 = $md5
(
(not $e.target.process.file.sha256 = "" and
$e.target.process.file.sha256 = $sha256) or
(not $e.target.process.file.sha1 = "" and
$e.target.process.file.sha1 = $sha1) or
(not $e.target.process.file.md5 = "" and
$e.target.process.file.md5 = $md5)
)
match:
$host over 15m
condition:
$ioc and $e
}