Detection rules › Sublime MQL

DLP: Germany Bank Account Number (IBAN)

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

Detects messages containing German bank account numbers (IBAN).

Event coverage

Rule body MQL

type.outbound
and any([body.current_thread.text, subject.subject],
        // German IBAN: DE + 2 check digits + 18 digits
        regex.contains(., '\bDE\d{2}[\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|bankkonto|bank\s+account')
)

Detection logic

Scope: outbound message.

Detects messages containing German bank account numbers (IBAN).

  1. outbound message
  2. any of [body.current_thread.text, subject.subject] where:
    • . matches '\\bDE\\d{2}[\\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|bankkonto|bank\\s+account'

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

Indicators matched (2)

FieldMatchValue
regex.containsregex\bDE\d{2}[\s]?\d{4}[\s]?\d{4}[\s]?\d{4}[\s]?\d{4}[\s]?\d{2}\b
regex.icontainsregexIBAN|bankkonto|bank\s+account