Detection rules › Sublime MQL

DLP: Mexico CURP Number

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

Detects messages containing Mexican Unique Population Registry Code (CURP).

Event coverage

Rule body MQL

type.outbound
and any([body.current_thread.text, subject.subject],
        // CURP: 18 alphanumeric characters
        regex.contains(., '\b[A-Z]{4}\d{6}[HM][A-Z]{5}[0-9A-Z]\d\b')
)
and any([body.current_thread.text, subject.subject],
        regex.icontains(., 'CURP|clave\s+única|población')
)

Detection logic

Scope: outbound message.

Detects messages containing Mexican Unique Population Registry Code (CURP).

  1. outbound message
  2. any of [body.current_thread.text, subject.subject] where:
    • . matches '\\b[A-Z]{4}\\d{6}[HM][A-Z]{5}[0-9A-Z]\\d\\b'
  3. any of [body.current_thread.text, subject.subject] where:
    • . matches 'CURP|clave\\s+única|población'

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

Indicators matched (2)

FieldMatchValue
regex.containsregex\b[A-Z]{4}\d{6}[HM][A-Z]{5}[0-9A-Z]\d\b
regex.icontainsregexCURP|clave\s+única|población