type.inbound
and 2 <= length(filter(body.links,
regex.imatch(.href_url.path, '/[a-zA-Z0-9+/]{80,}={0,2}')
and regex.imatch(strings.decode_base64(regex.extract(.href_url.path,
'/(?P<b>[a-zA-Z0-9+/]{80,}={0,2})'
)[0].named_groups["b"]
),
'[a-zA-Z0-9+/]{60,}={0,2}'
)
)
)
// 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.