type.inbound
// link is a PaaS hosting appspot.com domain
and any(body.current_thread.links,
strings.ends_with(.href_url.domain.domain, ".r.appspot.com")
)
// cred theft present
and any(ml.nlu_classifier(body.current_thread.text).intents,
.name == "cred_theft"
)
// 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.