type.inbound
and body.html.raw is null
and any(body.links,
.href_url.path == "/wp-login.php"
and any(.href_url.query_params_decoded["key"], . is not null)
and any(.href_url.query_params_decoded["login"],
any(recipients.to,
.email.local_part != .. and .email.email != ..
)
)
)
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.