Detection rules › Sublime MQL

DLP: Azure Authentication Token

Severity
high
Type
dlp
Source
github.com/sublime-security/sublime-rules

Detects messages containing Azure authentication tokens and credentials.

Event coverage

Rule body MQL

type.outbound
and any([body.current_thread.text, subject.subject],
        regex.icontains(., 'azure|microsoft\s+cloud')
)
and any([body.current_thread.text, subject.subject],
        regex.icontains(., 'auth|token|credential|secret|key')
)
and any([body.current_thread.text, subject.subject],
        // Long alphanumeric tokens
        regex.contains(., '\b[A-Za-z0-9_-]{40,}\b')
)

Detection logic

Scope: outbound message.

Detects messages containing Azure authentication tokens and credentials.

  1. outbound message
  2. any of [body.current_thread.text, subject.subject] where:
    • . matches 'azure|microsoft\\s+cloud'
  3. any of [body.current_thread.text, subject.subject] where:
    • . matches 'auth|token|credential|secret|key'
  4. any of [body.current_thread.text, subject.subject] where:
    • . matches '\\b[A-Za-z0-9_-]{40,}\\b'

Inspects: body.current_thread.text, subject.subject, type.outbound. Sensors: regex.contains, regex.icontains.

Indicators matched (3)

FieldMatchValue
regex.icontainsregexazure|microsoft\s+cloud
regex.icontainsregexauth|token|credential|secret|key
regex.containsregex\b[A-Za-z0-9_-]{40,}\b