Medium Severity

Service abuse: CrossTenant Microsoft notification with link

Description

Detects inbound messages sent from Microsoft's legitimate messaging/alert infrastructure (messaging.microsoft.com or office365alerts@microsoft.com) that carry cross-tenant headers and include at least one link in the body. Legitimate Purview encryption links and rpmsg-protected attachments are excluded, isolating cases where the trusted Microsoft notification channel is being leveraged to deliver suspicious links.

References

No references.

Sublime Security
Created Nov 5th, 2026 • Last updated Nov 5th, 2026
Source
type.inbound
and (
  sender.email.domain.domain == "messaging.microsoft.com"
  or sender.email.email == 'office365alerts@microsoft.com'
)
// CrossTenant headers
and any(headers.hops,
        any(.fields,
            strings.ilike(.name,
                          "X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp"
            )
        )
)
// needs to contain at least one link
and length(filter(body.current_thread.links, .href_url.scheme != 'mailto')) > 0
// exclude Purview links or rpmsg attachments
and not (
  any(body.current_thread.links,
      strings.starts_with(.href_url.url,
                          'https://outlook.office365.com/Encryption'
      )
      or .href_url.domain.domain in (
        'purview.microsoft.com',
        'security.microsoft.com'
      )
  )
  or any(attachments,
         .file_extension == "rpmsg"
         or .content_type == "application/x-microsoft-rpmsg-message"
  )
)
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