Detection rules › Sublime MQL

DLP: Saudi Arabia National ID

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

Detects messages containing Saudi Arabian National ID numbers.

Event coverage

Rule body MQL

type.outbound
and any([body.current_thread.text, subject.subject],
        // Saudi National ID: 10 digits
        regex.contains(., '\b[12]\d{9}\b')
)
and any([body.current_thread.text, subject.subject],
        regex.icontains(., 'national\s+ID|iqama|رقم\s+الهوية|إقامة')
)

Detection logic

Scope: outbound message.

Detects messages containing Saudi Arabian National ID numbers.

  1. outbound message
  2. any of [body.current_thread.text, subject.subject] where:
    • . matches '\\b[12]\\d{9}\\b'
  3. any of [body.current_thread.text, subject.subject] where:
    • . matches 'national\\s+ID|iqama|رقم\\s+الهوية|إقامة'

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

Indicators matched (2)

FieldMatchValue
regex.containsregex\b[12]\d{9}\b
regex.icontainsregexnational\s+ID|iqama|رقم\s+الهوية|إقامة