Detection rules › Sublime MQL

DLP: South Korea Resident Registration Number (RRN)

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

Detects messages containing South Korean Resident Registration Numbers.

Event coverage

Rule body MQL

type.outbound
and any([body.current_thread.text, subject.subject],
        // RRN: 13 digits in YYMMDD-XXXXXXX format
        regex.contains(., '\b\d{6}-?[1-4]\d{6}\b')
)
and any([body.current_thread.text, subject.subject],
        regex.icontains(., 'RRN|resident\s+registration|주민등록번호|korean\s+ID')
)

Detection logic

Scope: outbound message.

Detects messages containing South Korean Resident Registration Numbers.

  1. outbound message
  2. any of [body.current_thread.text, subject.subject] where:
    • . matches '\\b\\d{6}-?[1-4]\\d{6}\\b'
  3. any of [body.current_thread.text, subject.subject] where:
    • . matches 'RRN|resident\\s+registration|주민등록번호|korean\\s+ID'

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

Indicators matched (2)

FieldMatchValue
regex.containsregex\b\d{6}-?[1-4]\d{6}\b
regex.icontainsregexRRN|resident\s+registration|주민등록번호|korean\s+ID