Detection rules › Sublime MQL

DLP: Japan Social Insurance Number

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

Detects messages containing Japanese Social Insurance Numbers.

Event coverage

Rule body MQL

type.outbound
and any([body.current_thread.text, subject.subject],
        // Social Insurance Number: 10 digits
        regex.contains(., '\b\d{4}[\s\-]?\d{6}\b')
)
and any([body.current_thread.text, subject.subject],
        regex.icontains(., 'social\s+insurance|基礎年金番号|年金手帳')
)

Detection logic

Scope: outbound message.

Detects messages containing Japanese Social Insurance Numbers.

  1. outbound message
  2. any of [body.current_thread.text, subject.subject] where:
    • . matches '\\b\\d{4}[\\s\\-]?\\d{6}\\b'
  3. any of [body.current_thread.text, subject.subject] where:
    • . matches 'social\\s+insurance|基礎年金番号|年金手帳'

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

Indicators matched (2)

FieldMatchValue
regex.containsregex\b\d{4}[\s\-]?\d{6}\b
regex.icontainsregexsocial\s+insurance|基礎年金番号|年金手帳