type.inbound
and any(attachments, .sha256 in $abuse_ch_malwarebazaar_sha256_trusted_reporters)
and (
profile.by_sender().prevalence in ("new", "outlier")
or (
profile.by_sender().any_messages_malicious_or_spam
and not profile.by_sender().any_messages_benign
)
)
Playground
Test against your own EMLs or sample data.