Detection rules › Sublime MQL

Spam: Link to blob.core.windows.net from new domain (<30d)

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

This rule detects messages containing a link to blob.core.windows.net from a sender domain less than 30 days old. There is a single recipient present, but the recipient is a random email address, and not someone at the organization.

Threat classification

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

CategoryValues
Attack typesSpam
Tactics and techniquesFree subdomain host

Event coverage

Rule body MQL

type.inbound
and length(recipients.to) == 1
and any(recipients.to, .email.domain.root_domain not in $org_domains)
and network.whois(sender.email.domain).days_old < 30
and length(body.links) < 3
and any(body.links,
        strings.ends_with(.href_url.domain.subdomain, "blob.core")
        and .href_url.domain.root_domain == "windows.net"
)
and (
  not profile.by_sender().solicited
  or (
    profile.by_sender().any_messages_malicious_or_spam
    and not profile.by_sender().any_messages_benign
  )
)
and not profile.by_sender().any_messages_benign

Detection logic

Scope: inbound message.

This rule detects messages containing a link to blob.core.windows.net from a sender domain less than 30 days old. There is a single recipient present, but the recipient is a random email address, and not someone at the organization.

  1. inbound message
  2. length(recipients.to) is 1
  3. any of recipients.to where:
    • .email.domain.root_domain not in $org_domains
  4. network.whois(sender.email.domain).days_old < 30
  5. length(body.links) < 3
  6. any of body.links where all hold:
    • .href_url.domain.subdomain ends with 'blob.core'
    • .href_url.domain.root_domain is 'windows.net'
  7. any of:
    • not:
      • profile.by_sender().solicited
    • all of:
      • profile.by_sender().any_messages_malicious_or_spam
      • not:
        • profile.by_sender().any_messages_benign
  8. not:
    • profile.by_sender().any_messages_benign

Inspects: body.links, body.links[].href_url.domain.root_domain, body.links[].href_url.domain.subdomain, recipients.to, recipients.to[].email.domain.root_domain, sender.email.domain, type.inbound. Sensors: network.whois, profile.by_sender, strings.ends_with. Reference lists: $org_domains.

Indicators matched (2)

FieldMatchValue
strings.ends_withsuffixblob.core
body.links[].href_url.domain.root_domainequalswindows.net