type.inbound
and any(attachments,
(
.file_extension in~ $file_extensions_common_archives
or .file_type == "rar"
)
and any(file.explode(.),
// the YARA scanner alone can be a bit unreliable,
// it's matched on MZ strings in a text file before
any(.flavors.yara, . == "mz_file")
and strings.starts_with(.flavors.mime, "application")
)
)
Playground
Test against your own EMLs or sample data.