Detection rules › Sublime MQL

DLP: France Bank Account Number

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

Detects messages containing French bank account numbers (IBAN).

Event coverage

Rule body MQL

type.outbound
and any([body.current_thread.text, subject.subject],
        // French IBAN: FR + 2 check digits + 23 digits
        regex.contains(., '\bFR\d{2}[\s]?\d{4}[\s]?\d{4}[\s]?\d{4}[\s]?\d{4}[\s]?\d{4}[\s]?\d{3}\b')
)
and any([body.current_thread.text, subject.subject],
        regex.icontains(., 'IBAN|compte\s+bancaire|bank\s+account|RIB')
)

Detection logic

Scope: outbound message.

Detects messages containing French bank account numbers (IBAN).

  1. outbound message
  2. any of [body.current_thread.text, subject.subject] where:
    • . matches '\\bFR\\d{2}[\\s]?\\d{4}[\\s]?\\d{4}[\\s]?\\d{4}[\\s]?\\d{4}[\\s]?\\d{4}[\\s]?\\d{3}\\b'
  3. any of [body.current_thread.text, subject.subject] where:
    • . matches 'IBAN|compte\\s+bancaire|bank\\s+account|RIB'

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

Indicators matched (2)

FieldMatchValue
regex.containsregex\bFR\d{2}[\s]?\d{4}[\s]?\d{4}[\s]?\d{4}[\s]?\d{4}[\s]?\d{4}[\s]?\d{3}\b
regex.icontainsregexIBAN|compte\s+bancaire|bank\s+account|RIB