Detection rules › Sublime MQL
DLP: France Passport Number
Detects messages containing French passport numbers.
Event coverage
| Message attribute |
|---|
| body.current_thread |
| sender.email |
| subject |
| type |
Rule body MQL
type.outbound
and any([body.current_thread.text, subject.subject],
// French passport: 2 digits + 2 letters + 5 digits (e.g., 12AB12345)
regex.contains(., '\b\d{2}[A-Z]{2}\d{5}\b')
)
and any([body.current_thread.text, subject.subject],
regex.icontains(., 'passeport|passport')
)
and (
strings.icontains(sender.email.domain.tld, "fr")
or strings.icontains(body.current_thread.text, "france")
)
Detection logic
Scope: outbound message.
Detects messages containing French passport numbers.
- outbound message
any of
[body.current_thread.text, subject.subject]where:- . matches '\\b\\d{2}[A-Z]{2}\\d{5}\\b'
any of
[body.current_thread.text, subject.subject]where:- . matches 'passeport|passport'
any of:
- sender.email.domain.tld contains 'fr'
- body.current_thread.text contains 'france'
Inspects: body.current_thread.text, sender.email.domain.tld, subject.subject, type.outbound. Sensors: regex.contains, regex.icontains, strings.icontains.
Indicators matched (4)
| Field | Match | Value |
|---|---|---|
regex.contains | regex | \b\d{2}[A-Z]{2}\d{5}\b |
regex.icontains | regex | passeport|passport |
strings.icontains | substring | fr |
strings.icontains | substring | france |