Detection rules › Sublime MQL

DLP: Estonia Personal Identification Code

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

Detects messages containing Estonian Personal Identification Codes (isikukood).

Event coverage

Rule body MQL

type.outbound
and any([body.current_thread.text, subject.subject],
        // Estonian ID: 11 digits
        regex.contains(., '\b[1-6]\d{10}\b')
)
and any([body.current_thread.text, subject.subject],
        regex.icontains(., 'isikukood|personal\s+code')
)

Detection logic

Scope: outbound message.

Detects messages containing Estonian Personal Identification Codes (isikukood).

  1. outbound message
  2. any of [body.current_thread.text, subject.subject] where:
    • . matches '\\b[1-6]\\d{10}\\b'
  3. any of [body.current_thread.text, subject.subject] where:
    • . matches 'isikukood|personal\\s+code'

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

Indicators matched (2)

FieldMatchValue
regex.containsregex\b[1-6]\d{10}\b
regex.icontainsregexisikukood|personal\s+code