Detection rules › Sublime MQL

DLP: Germany Passport Number

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

Detects messages containing German passport numbers (Reisepass).

Event coverage

Rule body MQL

type.outbound
and any([body.current_thread.text, subject.subject],
        // German passport: 9 alphanumeric (e.g., C01X00T47)
        regex.contains(., '\b[CFGHJK]\d{8}|[CFGHJK][A-Z0-9]{8}\b')
)
and any([body.current_thread.text, subject.subject],
        regex.icontains(., 'reisepass|passport')
)
and (
  strings.icontains(sender.email.domain.tld, "de")
  or strings.icontains(body.current_thread.text, "germany")
  or strings.icontains(body.current_thread.text, "deutschland")
)

Detection logic

Scope: outbound message.

Detects messages containing German passport numbers (Reisepass).

  1. outbound message
  2. any of [body.current_thread.text, subject.subject] where:
    • . matches '\\b[CFGHJK]\\d{8}|[CFGHJK][A-Z0-9]{8}\\b'
  3. any of [body.current_thread.text, subject.subject] where:
    • . matches 'reisepass|passport'
  4. any of:
    • sender.email.domain.tld contains 'de'
    • body.current_thread.text contains 'germany'
    • body.current_thread.text contains 'deutschland'

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

Indicators matched (5)

FieldMatchValue
regex.containsregex\b[CFGHJK]\d{8}|[CFGHJK][A-Z0-9]{8}\b
regex.icontainsregexreisepass|passport
strings.icontainssubstringde
strings.icontainssubstringgermany
strings.icontainssubstringdeutschland