type.inbound
and 0 < length(body.current_thread.links) < 10
and any(ml.nlu_classifier(body.current_thread.text).intents,
.name == 'cred_theft' and .confidence != 'low'
)
and any(body.current_thread.links,
any(ml.link_analysis(., mode="aggressive").redirect_history,
any(flatten(values(.query_params_decoded)),
strings.icontains(.,
'onerror="window.location=decodeURIComponent(atob('
)
)
)
)
Playground
Test against your own EMLs or sample data.