type.inbound
and sender.email.domain.root_domain == "firebaseapp.com"
and length(filter(body.links,
.href_url.domain.root_domain not in ("aka.ms")
and .href_url.path is not null
)
) == 1
and any(body.links,
.href_url.domain.domain == sender.email.domain.domain
and .href_url.path == "/__/auth/action"
and any(.href_url.query_params_decoded["mode"], . == "resetPassword")
)
and (
(
not profile.by_sender().solicited
and profile.by_sender().prevalence == "new"
)
or (
profile.by_sender().any_messages_malicious_or_spam
and not profile.by_sender().any_messages_benign
)
or not headers.auth_summary.dmarc.pass
)
Playground
Test against your own EMLs or sample data.