Detection rules › Sublime MQL

DLP: Hungary Social Security Number (TAJ)

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

Detects messages containing Hungarian Social Security Numbers (TAJ).

Event coverage

Rule body MQL

type.outbound
and any([body.current_thread.text, subject.subject],
        // TAJ: 9 digits in XXX XXX XXX format
        regex.contains(., '\b\d{3}[\s]?\d{3}[\s]?\d{3}\b')
)
and any([body.current_thread.text, subject.subject],
        regex.icontains(., 'TAJ|társadalombiztosítás|social\s+security')
)

Detection logic

Scope: outbound message.

Detects messages containing Hungarian Social Security Numbers (TAJ).

  1. outbound message
  2. any of [body.current_thread.text, subject.subject] where:
    • . matches '\\b\\d{3}[\\s]?\\d{3}[\\s]?\\d{3}\\b'
  3. any of [body.current_thread.text, subject.subject] where:
    • . matches 'TAJ|társadalombiztosítás|social\\s+security'

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

Indicators matched (2)

FieldMatchValue
regex.containsregex\b\d{3}[\s]?\d{3}[\s]?\d{3}\b
regex.icontainsregexTAJ|társadalombiztosítás|social\s+security