High Severity

Service abuse: Microsoft domain with suspicious link

Description

Detects inbound messages sent through Microsoft's messaging.microsoft.com or office365alerts@microsoft.com infrastructure that contain links with long numeric parameters, base64-like encoded paths, or links that resolve to Cloudflare Turnstile challenges, indicating attempts to obscure the final destination or evade analysis.

References

No references.

Sublime Security
Created Oct 22nd, 2026 • Last updated Nov 16th, 2026
Source
type.inbound
and (
  sender.email.email == 'office365alerts@microsoft.com'
  or (
    sender.email.domain.root_domain == 'microsoft.com'
    and (
      sender.email.domain.subdomain in (
        'messaging',
        'communication',
        'accountprotection'
      )
      or regex.icontains(body.current_thread.text, 'ref:?\s*M365-[a-z]+-\d+')
    )
  )
)
and any(filter(body.current_thread.links, .href_url.scheme != 'mailto'),
        regex.icontains(.href_url.url, '=\d{15,}', '[a-z]+%[a-z]{4,}')
        or regex.imatch(.href_url.path, '/[a-z0-9+/]{40,}={0,2}')
        or any([ml.link_analysis(., mode="aggressive")],
               // CF Turnstile
               any(.unique_urls_accessed,
                   .domain.domain == "challenges.cloudflare.com"
               )
               // or site is down behind Cloudflare
               or (
                 regex.icontains(.final_dom.display_text,
                                 'error\s*(?:code\s*)?(?:5\d{2}|1\d{3})'
                 )
                 and regex.icontains(.final_dom.display_text, 'cloudflare')
               )
        )
)
and not any(ml.nlu_classifier(body.current_thread.text).topics,
            .name in ("Advertising and Promotions")
)
MQL Rule Console
•Docs•Learning 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