Detection rules › Sublime MQL

Sendgrid onmicrosoft.com domain phishing

Severity
medium
Type
rule
Source
github.com/sublime-security/sublime-rules

The message originates from an onmicrosoft.com email address being sent via Sendgrid.

Threat classification

Sublime's own taxonomy (not MITRE ATT&CK).

CategoryValues
Attack typesCredential Phishing
Tactics and techniquesEvasion

Event coverage

Rule body MQL

type.inbound
and headers.return_path.domain.domain == "sendgrid.net"
and sender.email.domain.root_domain == "onmicrosoft.com"
and not strings.like(sender.email.local_part,
                     "*postmaster*",
                     "*mailer-daemon*",
                     "*administrator*"
)

Detection logic

Scope: inbound message.

The message originates from an onmicrosoft.com email address being sent via Sendgrid.

  1. inbound message
  2. headers.return_path.domain.domain is 'sendgrid.net'
  3. sender.email.domain.root_domain is 'onmicrosoft.com'
  4. not:
    • sender.email.local_part matches any of 3 patterns
      • *postmaster*
      • *mailer-daemon*
      • *administrator*

Inspects: headers.return_path.domain.domain, sender.email.domain.root_domain, sender.email.local_part, type.inbound. Sensors: strings.like.

Indicators matched (5)

FieldMatchValue
headers.return_path.domain.domainequalssendgrid.net
sender.email.domain.root_domainequalsonmicrosoft.com
strings.likesubstring*postmaster*
strings.likesubstring*mailer-daemon*
strings.likesubstring*administrator*