High Severity
Attachment: Filename Containing Unicode Right-to-Left Override Character
Description
Recursively identifies attachments that attempt to conceal their true file extension by using right-to-left override characters
References
type.inbound
and any(attachments,
regex.icontains(.file_name, '\x{202E}', '\x{202D}')
or (
.file_extension in~ $file_extensions_common_archives
and any(file.explode(.), regex.icontains(.file_name, '\x{202E}', '\x{202D}'))
)
)
Playground
Test against your own EMLs or sample data.