Detection rules › Sublime MQL

DLP: Saudi Arabia IBAN

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

Detects messages containing Saudi Arabian International Bank Account Numbers (IBAN).

Event coverage

Rule body MQL

type.outbound
and any([body.current_thread.text, subject.subject],
        // Saudi IBAN: SA + 2 check digits + 22 digits
        regex.contains(., '\bSA\d{2}[\s]?\d{4}[\s]?\d{4}[\s]?\d{4}[\s]?\d{4}[\s]?\d{4}[\s]?\d{2}\b')
)
and any([body.current_thread.text, subject.subject],
        regex.icontains(., 'IBAN|bank\s+account|حساب\s+بنكي')
)

Detection logic

Scope: outbound message.

Detects messages containing Saudi Arabian International Bank Account Numbers (IBAN).

  1. outbound message
  2. any of [body.current_thread.text, subject.subject] where:
    • . matches '\\bSA\\d{2}[\\s]?\\d{4}[\\s]?\\d{4}[\\s]?\\d{4}[\\s]?\\d{4}[\\s]?\\d{4}[\\s]?\\d{2}\\b'
  3. any of [body.current_thread.text, subject.subject] where:
    • . matches 'IBAN|bank\\s+account|حساب\\s+بنكي'

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

Indicators matched (2)

FieldMatchValue
regex.containsregex\bSA\d{2}[\s]?\d{4}[\s]?\d{4}[\s]?\d{4}[\s]?\d{4}[\s]?\d{4}[\s]?\d{2}\b
regex.icontainsregexIBAN|bank\s+account|حساب\s+بنكي