Detection rules › Sublime MQL

DLP: Germany Identity Card Number (Personalausweisnummer)

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

Detects messages containing German Identity Card numbers.

Event coverage

Rule body MQL

type.outbound
and any([body.current_thread.text, subject.subject],
        // German ID: 10 alphanumeric characters (e.g., L01X00T471)
        regex.contains(., '\b[A-Z]\d{9}|\d[A-Z0-9]{8}\d\b')
)
and any([body.current_thread.text, subject.subject],
        regex.icontains(., 'personalausweis|identity\s+card|Ausweisnummer')
)

Detection logic

Scope: outbound message.

Detects messages containing German Identity Card numbers.

  1. outbound message
  2. any of [body.current_thread.text, subject.subject] where:
    • . matches '\\b[A-Z]\\d{9}|\\d[A-Z0-9]{8}\\d\\b'
  3. any of [body.current_thread.text, subject.subject] where:
    • . matches 'personalausweis|identity\\s+card|Ausweisnummer'

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

Indicators matched (2)

FieldMatchValue
regex.containsregex\b[A-Z]\d{9}|\d[A-Z0-9]{8}\d\b
regex.icontainsregexpersonalausweis|identity\s+card|Ausweisnummer