Medium Severity

Attachment: SVG file with hyperlinks and cursor styling

Description

Detects inbound messages containing SVG attachments that include clickable hyperlink elements and CSS pointer cursor styling, which may be used to deceive recipients into clicking malicious links disguised as legitimate images.

References

No references.

Sublime Security
Created May 20th, 2026 • Last updated May 20th, 2026
Source
type.inbound
and any(attachments,
        (
          .file_extension == "svg"
          or .content_type in ("image/svg+xml")
          or .file_type == "svg"
        )
        and any(file.explode(.), any(.scan.xml.tags, . == "a"))
        and regex.icontains(file.parse_text(., encodings=["ascii", "utf8"]).text,
                            'cursor\s*=\s*["\x27]pointer'
        )
)
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