Detection rules › Sublime MQL

DLP: Finland National ID

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

Detects messages containing Finnish National ID numbers (henkilötunnus).

Event coverage

Rule body MQL

type.outbound
and any([body.current_thread.text, subject.subject],
        // Finnish ID: DDMMYY-XXXX or DDMMYY+XXXX or DDMMYYAXXXX
        regex.contains(., '\b\d{6}[\-\+A]\d{3}[A-Z0-9]\b')
)
and any([body.current_thread.text, subject.subject],
        regex.icontains(., 'henkilötunnus|personal\s+identity|HETU')
)

Detection logic

Scope: outbound message.

Detects messages containing Finnish National ID numbers (henkilötunnus).

  1. outbound message
  2. any of [body.current_thread.text, subject.subject] where:
    • . matches '\\b\\d{6}[\\-\\+A]\\d{3}[A-Z0-9]\\b'
  3. any of [body.current_thread.text, subject.subject] where:
    • . matches 'henkilötunnus|personal\\s+identity|HETU'

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

Indicators matched (2)

FieldMatchValue
regex.containsregex\b\d{6}[\-\+A]\d{3}[A-Z0-9]\b
regex.icontainsregexhenkilötunnus|personal\s+identity|HETU