Detection rules › Sublime MQL

DLP: Luxembourg National ID (Non-Natural Persons)

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

Detects messages containing Luxembourg National Identification Numbers for non-natural persons.

Event coverage

Rule body MQL

type.outbound
and any([body.current_thread.text, subject.subject],
        // Luxembourg Non-Natural Person ID: 11 digits
        regex.contains(., '\b\d{11}\b')
)
and any([body.current_thread.text, subject.subject],
        regex.icontains(., 'matricule|company\s+ID|identification')
)
and (
  strings.icontains(sender.email.domain.tld, "lu")
  or strings.icontains(body.current_thread.text, "luxembourg")
)

Detection logic

Scope: outbound message.

Detects messages containing Luxembourg National Identification Numbers for non-natural persons.

  1. outbound message
  2. any of [body.current_thread.text, subject.subject] where:
    • . matches '\\b\\d{11}\\b'
  3. any of [body.current_thread.text, subject.subject] where:
    • . matches 'matricule|company\\s+ID|identification'
  4. any of:
    • sender.email.domain.tld contains 'lu'
    • body.current_thread.text contains 'luxembourg'

Inspects: body.current_thread.text, sender.email.domain.tld, subject.subject, type.outbound. Sensors: regex.contains, regex.icontains, strings.icontains.

Indicators matched (4)

FieldMatchValue
regex.containsregex\b\d{11}\b
regex.icontainsregexmatricule|company\s+ID|identification
strings.icontainssubstringlu
strings.icontainssubstringluxembourg