Detection rules › Sublime MQL

DLP: Bulgaria Uniform Civil Number

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

Detects messages containing Bulgarian Uniform Civil Numbers (ЕГН).

Event coverage

Rule body MQL

type.outbound
and any([body.current_thread.text, subject.subject],
        // Bulgarian UCN: 10 digits
        regex.contains(., '\b\d{10}\b')
)
and any([body.current_thread.text, subject.subject],
        regex.icontains(., 'ЕГН|uniform\s+civil|personal\s+number')
)

Detection logic

Scope: outbound message.

Detects messages containing Bulgarian Uniform Civil Numbers (ЕГН).

  1. outbound message
  2. any of [body.current_thread.text, subject.subject] where:
    • . matches '\\b\\d{10}\\b'
  3. any of [body.current_thread.text, subject.subject] where:
    • . matches 'ЕГН|uniform\\s+civil|personal\\s+number'

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

Indicators matched (2)

FieldMatchValue
regex.containsregex\b\d{10}\b
regex.icontainsregexЕГН|uniform\s+civil|personal\s+number