Detection rules › Sublime MQL

DLP: Hungary Personal Identification Number

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

Detects messages containing Hungarian Personal Identification Numbers.

Event coverage

Rule body MQL

type.outbound
and any([body.current_thread.text, subject.subject],
        // Hungarian PIN: 11 digits
        regex.contains(., '\b[1-8]\d{10}\b')
)
and any([body.current_thread.text, subject.subject],
        regex.icontains(., 'személyi\s+szám|personal\s+identification')
)

Detection logic

Scope: outbound message.

Detects messages containing Hungarian Personal Identification Numbers.

  1. outbound message
  2. any of [body.current_thread.text, subject.subject] where:
    • . matches '\\b[1-8]\\d{10}\\b'
  3. any of [body.current_thread.text, subject.subject] where:
    • . matches 'személyi\\s+szám|personal\\s+identification'

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

Indicators matched (2)

FieldMatchValue
regex.containsregex\b[1-8]\d{10}\b
regex.icontainsregexszemélyi\s+szám|personal\s+identification