Detection rules › Sublime MQL

DLP: Canada Personal Health Identification Number (PHIN)

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

Detects messages containing Canadian Personal Health Identification Numbers.

Event coverage

Rule body MQL

type.outbound
and any([body.current_thread.text, subject.subject],
        // PHIN varies by province but generally alphanumeric
        regex.contains(., '\b[A-Z0-9]{9,12}\b')
)
and any([body.current_thread.text, subject.subject],
        regex.icontains(., 'PHIN|personal\s+health\s+identification|health\s+ID')
)

Detection logic

Scope: outbound message.

Detects messages containing Canadian Personal Health Identification Numbers.

  1. outbound message
  2. any of [body.current_thread.text, subject.subject] where:
    • . matches '\\b[A-Z0-9]{9,12}\\b'
  3. any of [body.current_thread.text, subject.subject] where:
    • . matches 'PHIN|personal\\s+health\\s+identification|health\\s+ID'

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

Indicators matched (2)

FieldMatchValue
regex.containsregex\b[A-Z0-9]{9,12}\b
regex.icontainsregexPHIN|personal\s+health\s+identification|health\s+ID