• Sublime Core Feed
Medium Severity

Attachment: HTML file contains exclusively Javascript

Description

Attached HTML file does not contain any HTML other than a <script> block.

References

No references.

Sublime Security
Created Aug 17th, 2023 • Last updated Jan 12th, 2026
Source
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(.),
                length(.scan.strings.strings) == 1
                and any(.scan.strings.strings,
                        regex.imatch(., '\s{0,}<script.*')
                )
                and any(.scan.strings.strings,
                        strings.ends_with(., "</script>")
                )
        )
)
MQL Rule Console
DocsLearning Labs

Playground

Test against your own EMLs or sample data.

Share

Post about this on your socials.

Get Started. Today.

Managed or self-managed. No MX changes.

Deploy and integrate a free Sublime instance in minutes.
Get Started