type.inbound
and (length(body.links) > 0 or length(attachments) > 0)
and any([subject.subject, sender.display_name],
regex.icount(., '[\x{200B}-\x{200F}\x{00AD}\x{FEFF}\x{2060}]') >= 10
)
// negate highly trusted sender domains unless they fail DMARC authentication
and not (
sender.email.domain.root_domain in $high_trust_sender_root_domains
and coalesce(headers.auth_summary.dmarc.pass, false)
)
Playground
Test against your own EMLs or sample data.