type.inbound
// smartadserver is used in benign messages, however, they commonly have many links
// ensure messages contain less than 15 links to ensure higher fidelity matching of malicious messages
and length(body.links) < 15
and any(body.links,
.href_url.domain.root_domain == "smartadserver.com"
and strings.icontains(.href_url.query_params, 'go=')
and not regex.icontains(.href_url.query_params,
'go=(?:https?(?:%3a|:))?(?:%2f|\/){2}[^&]*smartadserver\.com(?:\&|\/|$|%2f)'
)
)
// remove uses that originate from smartadserver.com
and not any(headers.domains, .root_domain == "smartadserver.com")
// negate highly trusted sender domains unless they fail DMARC authentication
and (
(
sender.email.domain.root_domain in $high_trust_sender_root_domains
and not headers.auth_summary.dmarc.pass
)
or sender.email.domain.root_domain not in $high_trust_sender_root_domains
)
Playground
Test against your own EMLs or sample data.