Detection rules › Sublime MQL

DLP: US Driver's License Number

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

Detects messages containing US driver's license numbers.

Event coverage

Rule body MQL

type.outbound
and any([body.current_thread.text, subject.subject],
        // US DL varies by state, typically 7-12 alphanumeric
        regex.contains(., '\b[A-Z0-9]{7,12}\b')
)
and any([body.current_thread.text, subject.subject],
        regex.icontains(., 'driver.?s?\s+licen[cs]e|DL\s+number|DMV')
)

Detection logic

Scope: outbound message.

Detects messages containing US driver's license numbers.

  1. outbound message
  2. any of [body.current_thread.text, subject.subject] where:
    • . matches '\\b[A-Z0-9]{7,12}\\b'
  3. any of [body.current_thread.text, subject.subject] where:
    • . matches 'driver.?s?\\s+licen[cs]e|DL\\s+number|DMV'

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

Indicators matched (2)

FieldMatchValue
regex.containsregex\b[A-Z0-9]{7,12}\b
regex.icontainsregexdriver.?s?\s+licen[cs]e|DL\s+number|DMV