Detection rules › Sublime MQL

DLP: Romania Personal Numerical Code

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

Detects messages containing Romanian Personal Numerical Codes (CNP).

Event coverage

Rule body MQL

type.outbound
and any([body.current_thread.text, subject.subject],
        // Romanian CNP: 13 digits
        regex.contains(., '\b[1-8]\d{12}\b')
)
and any([body.current_thread.text, subject.subject],
        regex.icontains(., 'CNP|cod\s+numeric\s+personal|personal\s+code')
)

Detection logic

Scope: outbound message.

Detects messages containing Romanian Personal Numerical Codes (CNP).

  1. outbound message
  2. any of [body.current_thread.text, subject.subject] where:
    • . matches '\\b[1-8]\\d{12}\\b'
  3. any of [body.current_thread.text, subject.subject] where:
    • . matches 'CNP|cod\\s+numeric\\s+personal|personal\\s+code'

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

Indicators matched (2)

FieldMatchValue
regex.containsregex\b[1-8]\d{12}\b
regex.icontainsregexCNP|cod\s+numeric\s+personal|personal\s+code