Detection rules › Sublime MQL
DLP: Germany Passport Number
Detects messages containing German passport numbers (Reisepass).
Event coverage
| Message attribute |
|---|
| body.current_thread |
| sender.email |
| subject |
| type |
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).
- outbound message
any of
[body.current_thread.text, subject.subject]where:- . matches '\\b[CFGHJK]\\d{8}|[CFGHJK][A-Z0-9]{8}\\b'
any of
[body.current_thread.text, subject.subject]where:- . matches 'reisepass|passport'
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)
| Field | Match | Value |
|---|---|---|
regex.contains | regex | \b[CFGHJK]\d{8}|[CFGHJK][A-Z0-9]{8}\b |
regex.icontains | regex | reisepass|passport |
strings.icontains | substring | de |
strings.icontains | substring | germany |
strings.icontains | substring | deutschland |