Detection rules › Sublime MQL
DLP: Turkey ID Number
Detects messages containing Turkish National Identification Numbers.
Event coverage
| Message attribute |
|---|
| body.current_thread |
| sender.email |
| subject |
| type |
Rule body MQL
type.outbound
and any([body.current_thread.text, subject.subject],
// Turkish ID: 11 digits
regex.contains(., '\b[1-9]\d{10}\b')
)
and any([body.current_thread.text, subject.subject],
regex.icontains(., 'TC\s+kimlik|turkish\s+ID|türkiye|turkey')
)
and (
strings.icontains(sender.email.domain.tld, "tr")
or strings.icontains(body.current_thread.text, "turkey")
or strings.icontains(body.current_thread.text, "türkiye")
)
Detection logic
Scope: outbound message.
Detects messages containing Turkish National Identification Numbers.
- outbound message
any of
[body.current_thread.text, subject.subject]where:- . matches '\\b[1-9]\\d{10}\\b'
any of
[body.current_thread.text, subject.subject]where:- . matches 'TC\\s+kimlik|turkish\\s+ID|türkiye|turkey'
any of:
- sender.email.domain.tld contains 'tr'
- body.current_thread.text contains 'turkey'
- body.current_thread.text contains 'türkiye'
Inspects: body.current_thread.text, sender.email.domain.tld, subject.subject, type.outbound. Sensors: regex.contains, regex.icontains, strings.icontains.
Indicators matched (5)
| Field | Match | Value |
|---|---|---|
regex.contains | regex | \b[1-9]\d{10}\b |
regex.icontains | regex | TC\s+kimlik|turkish\s+ID|türkiye|turkey |
strings.icontains | substring | tr |
strings.icontains | substring | turkey |
strings.icontains | substring | türkiye |