type.inbound
and (
(
regex.icontains(subject.base, '\bcard\b')
or regex.icontains(body.current_thread.text, '\bcard\b')
)
and strings.ilike(body.current_thread.text,
"*could be with you*",
"*currently accessible*",
"*collect bank details*",
"*not a financial institution*"
)
)
and any(body.links,
strings.ilike(.display_text,
"*track order*",
"*track*card*",
"*card status*"
)
)
and any(ml.nlu_classifier(body.current_thread.text).intents,
.name == "cred_theft" and .confidence == "high"
)
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.