Description

Flags inbound emails that show signs of business email compromise or credential theft intent—either through NLU classification or language like 'your review'/'please review'—and include an Excel attachment. The attachment is exploded and its exiftool metadata inspected for embedded hyperlinks, which are then parsed and checked against lists of free subdomain hosts, free file hosts, suspicious TLDs, and URL shorteners.

References

No references.

Sublime Security
Created Sep 11th, 2026 • Last updated Sep 11th, 2026
Source
type.inbound
and (
  any(ml.nlu_classifier(body.current_thread.text).intents,
      .name in ('bec', 'cred_theft') and .confidence != 'low'
  )
  or strings.icontains(body.current_thread.text, 'your review', 'please review')
)
and any(attachments,
        .file_extension in~ ("xls")
        //
        // This rule makes use of a beta feature and is subject to change without notice
        // using the beta feature in custom rules is not suggested until it has been formally released
        //
        and any(beta.parse_exif(.).fields,
                .key == "Hyperlinks"
                and any(strings.parse_json(.value),
                        (
                          strings.parse_url(.).domain.domain in $free_subdomain_hosts
                          or strings.parse_url(.).domain.root_domain in $free_file_hosts
                          or strings.parse_url(.).domain.tld in $suspicious_tlds
                          or strings.parse_url(.).domain.root_domain in $url_shorteners
                          or strings.parse_url(.).domain.domain in $url_shorteners
                        )
                )
        )
)
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