Detection rules › Sublime MQL

DLP: Turkey ID Number

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

Detects messages containing Turkish National Identification Numbers.

Event coverage

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.

  1. outbound message
  2. any of [body.current_thread.text, subject.subject] where:
    • . matches '\\b[1-9]\\d{10}\\b'
  3. any of [body.current_thread.text, subject.subject] where:
    • . matches 'TC\\s+kimlik|turkish\\s+ID|türkiye|turkey'
  4. 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)

FieldMatchValue
regex.containsregex\b[1-9]\d{10}\b
regex.icontainsregexTC\s+kimlik|turkish\s+ID|türkiye|turkey
strings.icontainssubstringtr
strings.icontainssubstringturkey
strings.icontainssubstringtürkiye