type.inbound
// self sender or invaild recipent domain
and length(recipients.to) == 1
and (
sender.email.email == recipients.to[0].email.email
or recipients.to[0].email.domain.valid == false
)
// path contains 1 character
and any(body.current_thread.links,
regex.imatch(.href_url.path, '\/[A-Za-z0-9]')
and .href_url.query_params is null
and .href_url.fragment is null
and .display_url.url is null
)
and any(ml.nlu_classifier(body.current_thread.text).intents,
.name == "cred_theft" and .confidence != "low"
)
Playground
Test against your own EMLs or sample data.