Detection rules › Sublime MQL
DLP: Azure Authentication Token
Detects messages containing Azure authentication tokens and credentials.
Event coverage
| Message attribute |
|---|
| body.current_thread |
| subject |
| type |
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.
- outbound message
any of
[body.current_thread.text, subject.subject]where:- . matches 'azure|microsoft\\s+cloud'
any of
[body.current_thread.text, subject.subject]where:- . matches 'auth|token|credential|secret|key'
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)
| Field | Match | Value |
|---|---|---|
regex.icontains | regex | azure|microsoft\s+cloud |
regex.icontains | regex | auth|token|credential|secret|key |
regex.contains | regex | \b[A-Za-z0-9_-]{40,}\b |