type.inbound
and (
(
sender.email.domain.root_domain != "indeed.com"
and any(body.links, "indeed_open_redirect" in .href_url.rewrite.encoders)
)
or any(attachments,
.file_type == "pdf"
and any(file.explode(.),
any(.scan.url.urls,
"indeed_open_redirect" in .rewrite.encoders
)
)
)
)
// negate highly trusted sender domains unless they fail DMARC authentication
and (
(
sender.email.domain.root_domain in $high_trust_sender_root_domains
and not headers.auth_summary.dmarc.pass
)
or sender.email.domain.root_domain not in $high_trust_sender_root_domains
)
Playground
Test against your own EMLs or sample data.