Detection rules › Sublime MQL

DLP: Ireland Personal Public Service (PPS) Number

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

Detects messages containing Irish Personal Public Service Numbers.

Event coverage

Rule body MQL

type.outbound
and any([body.current_thread.text, subject.subject],
        // Irish PPS: 7 digits + 1-2 letters (e.g., 1234567A or 1234567AB)
        regex.contains(., '\b\d{7}[A-Z]{1,2}\b')
)
and any([body.current_thread.text, subject.subject],
        regex.icontains(., 'PPS|personal\s+public\s+service')
)

Detection logic

Scope: outbound message.

Detects messages containing Irish Personal Public Service Numbers.

  1. outbound message
  2. any of [body.current_thread.text, subject.subject] where:
    • . matches '\\b\\d{7}[A-Z]{1,2}\\b'
  3. any of [body.current_thread.text, subject.subject] where:
    • . matches 'PPS|personal\\s+public\\s+service'

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

Indicators matched (2)

FieldMatchValue
regex.containsregex\b\d{7}[A-Z]{1,2}\b
regex.icontainsregexPPS|personal\s+public\s+service