Detection rules › Sublime MQL

DLP: France Driver's License Number

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

Detects messages containing French driver's license numbers (Permis de conduire).

Event coverage

Rule body MQL

type.outbound
and any([body.current_thread.text, subject.subject],
        // French license: 12 digits (YYAAMMCCCCCX format)
        regex.contains(., '\b\d{12}\b')
)
and any([body.current_thread.text, subject.subject],
        regex.icontains(., 'permis\s+de\s+conduire|driver.?s?\s+licen[cs]e')
)
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 driver's license numbers (Permis de conduire).

  1. outbound message
  2. any of [body.current_thread.text, subject.subject] where:
    • . matches '\\b\\d{12}\\b'
  3. any of [body.current_thread.text, subject.subject] where:
    • . matches 'permis\\s+de\\s+conduire|driver.?s?\\s+licen[cs]e'
  4. 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)

FieldMatchValue
regex.containsregex\b\d{12}\b
regex.icontainsregexpermis\s+de\s+conduire|driver.?s?\s+licen[cs]e
strings.icontainssubstringfr
strings.icontainssubstringfrance