type.inbound
// from Adobe
and sender.email.email == 'message@adobe.com'
// the email address in the body
and any(filter(body.links,
.href_url.scheme == 'mailto'
// is not the recipient
and .href_url.url !~ recipients.to[0].email.email
// not in org domains
and .href_url.domain.domain not in $org_domains
// and not adobe
and .href_url.domain.root_domain != "adobe.com"
),
// and has not been observed inbound/outbound in the environment
.href_url.domain.domain not in $sender_domains
and .href_url.domain.domain not in $recipient_domains
)
// there is a single link to an adobe hosted content
and length(distinct(filter(body.links,
.href_url.domain.root_domain == "adobe.com"
and strings.istarts_with(.href_url.path, '/id/urn:')
),
.href_url.url
)
) == 1
Playground
Test against your own EMLs or sample data.