Detection rules › Sublime MQL

Sharepoint file share with suspicious recipients pattern

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

This rule detects messages originating from sharepoint.com with undisclosed recipients that are attempting to solicit the user to click a link. This has been observed in the event of an account compromise where the compromised account was utilizing legitimate file sharing services to share malicious links.

Threat classification

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

CategoryValues
Attack typesCredential Phishing, Malware/Ransomware
Tactics and techniquesEvasion

Event coverage

Rule body MQL

type.inbound

// Suspicious recipient pattern
and any(recipients.to, .display_name == "Undisclosed recipients")
and strings.ilike(body.current_thread.text,
                  "*shared a file with you*",
                  "*shared with you*",
                  "*invited you to access a file*"
)
and strings.icontains(subject.subject, "shared")
and any(body.links, .href_url.domain.root_domain == "sharepoint.com")

Detection logic

Scope: inbound message.

This rule detects messages originating from sharepoint.com with undisclosed recipients that are attempting to solicit the user to click a link. This has been observed in the event of an account compromise where the compromised account was utilizing legitimate file sharing services to share malicious links.

  1. inbound message
  2. any of recipients.to where:
    • .display_name is 'Undisclosed recipients'
  3. body.current_thread.text matches any of 3 patterns
    • *shared a file with you*
    • *shared with you*
    • *invited you to access a file*
  4. subject.subject contains 'shared'
  5. any of body.links where:
    • .href_url.domain.root_domain is 'sharepoint.com'

Inspects: body.current_thread.text, body.links, body.links[].href_url.domain.root_domain, recipients.to, recipients.to[].display_name, subject.subject, type.inbound. Sensors: strings.icontains, strings.ilike.

Indicators matched (6)

FieldMatchValue
recipients.to[].display_nameequalsUndisclosed recipients
strings.ilikesubstring*shared a file with you*
strings.ilikesubstring*shared with you*
strings.ilikesubstring*invited you to access a file*
strings.icontainssubstringshared
body.links[].href_url.domain.root_domainequalssharepoint.com