Detection rules › Sublime MQL

DLP: France National ID Card (CNI)

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

Detects messages containing French National ID Card numbers (Carte Nationale d'Identité).

Event coverage

Rule body MQL

type.outbound
and any([body.current_thread.text, subject.subject],
        // French CNI: 12 digits or alphanumeric
        regex.contains(., '\b[A-Z0-9]{12}\b')
)
and any([body.current_thread.text, subject.subject],
        regex.icontains(., 'CNI|carte\s+nationale|national\s+ID')
)
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 National ID Card numbers (Carte Nationale d'Identité).

  1. outbound message
  2. any of [body.current_thread.text, subject.subject] where:
    • . matches '\\b[A-Z0-9]{12}\\b'
  3. any of [body.current_thread.text, subject.subject] where:
    • . matches 'CNI|carte\\s+nationale|national\\s+ID'
  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[A-Z0-9]{12}\b
regex.icontainsregexCNI|carte\s+nationale|national\s+ID
strings.icontainssubstringfr
strings.icontainssubstringfrance