High Severity
Attachment: HTML smuggling with concatenation obfuscation
Description
Recursively scans files and archives to detect HTML smuggling techniques.
References
No references.
type.inbound
and any(attachments,
(
.file_extension in~ ("html", "htm", "shtml", "dhtml")
or .file_extension in~ $file_extensions_common_archives
or .file_type == "html"
)
and any(file.explode(.),
any(.scan.strings.strings,
strings.ilike(., "*CJzYyIuY29uY2F0KCJyaXB0Iik*", '*"sc".concat("ript")*')
)
)
)
Playground
Test against your own EMLs or sample data.