Detection rules › Sublime MQL

DLP: Denmark Personal Identification Number

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

Detects messages containing Danish Personal Identification Numbers (CPR-nummer).

Event coverage

Rule body MQL

type.outbound
and any([body.current_thread.text, subject.subject],
        // Danish CPR: 10 digits in DDMMYY-XXXX format
        regex.contains(., '\b\d{6}[\s\-]?\d{4}\b')
)
and any([body.current_thread.text, subject.subject],
        regex.icontains(., 'CPR|personnummer|personal\s+identification')
)

Detection logic

Scope: outbound message.

Detects messages containing Danish Personal Identification Numbers (CPR-nummer).

  1. outbound message
  2. any of [body.current_thread.text, subject.subject] where:
    • . matches '\\b\\d{6}[\\s\\-]?\\d{4}\\b'
  3. any of [body.current_thread.text, subject.subject] where:
    • . matches 'CPR|personnummer|personal\\s+identification'

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

Indicators matched (2)

FieldMatchValue
regex.containsregex\b\d{6}[\s\-]?\d{4}\b
regex.icontainsregexCPR|personnummer|personal\s+identification