type.inbound
and any(body.links,
// Low reputation or file hosting link
(
.href_url.domain.domain not in $tranco_1m or
.href_url.domain.domain not in $umbrella_1m or
.href_url.domain.domain in $free_file_hosts or
.href_url.domain.domain in $free_subdomain_hosts
) and
// Link downloads file
any(beta.linkanalysis(.).files_downloaded,
any(file.explode(.),
// Top-level file is an archive format
.depth == 0
and .file_extension in $file_extensions_common_archives
// There are less than 5 files in the zip
and length(.scan.zip.attempted_files) < 5
) and
any(file.explode(.),
// Within the archive is a script file.
.depth > 0
and .file_extension in ("vbs", "vbe", "wsf", "js", "jse", "ps1", "bat", "cmd")
)
)
)
and (
(
not profile.by_sender_email().solicited
and profile.by_sender_email().prevalence in ("new", "outlier")
)
or (
profile.by_sender_email().any_messages_malicious_or_spam
and not profile.by_sender_email().any_false_positives
)
or sender.email.domain.domain == "delivrto.me"
)
Playground
Test against your own EMLs or sample data.