type.inbound
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"
)
and any(attachments,
(
regex.imatch(.file_extension, '^[sdx]{0,1}ht[ml]{0,2}$')
or .file_extension in~ $file_extensions_common_archives
or .file_type == "html"
)
and any(file.explode(.),
any(.scan.strings.strings,
strings.ilike(.,
"*new WebAssembly.Instance*",
"*WebAssembly.instantiate*",
"*WebAssembly.compile*",
"*wbg_load*",
"*wbg_init*",
"*bmV3IFdlYkFzc2VtYmx5Lkluc3RhbmNl*",
"*d2JnX2xvYWQ*",
"*d2JnX2luaXQ*"
)
)
)
)
Playground
Test against your own EMLs or sample data.