Detection rules › Sublime MQL

DLP: Australia Bank Account Number

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

Detects messages containing Australian bank account numbers with BSB codes.

Event coverage

Rule body MQL

type.outbound
and any([body.current_thread.text, subject.subject],
        // BSB: 6 digits (XXX-XXX format)
        // Account: 6-10 digits
        regex.contains(., '\b\d{3}-\d{3}\b')
)
and any([body.current_thread.text, subject.subject],
        regex.icontains(., 'BSB|bank\s+account|account\s+number')
)

Detection logic

Scope: outbound message.

Detects messages containing Australian bank account numbers with BSB codes.

  1. outbound message
  2. any of [body.current_thread.text, subject.subject] where:
    • . matches '\\b\\d{3}-\\d{3}\\b'
  3. any of [body.current_thread.text, subject.subject] where:
    • . matches 'BSB|bank\\s+account|account\\s+number'

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

Indicators matched (2)

FieldMatchValue
regex.containsregex\b\d{3}-\d{3}\b
regex.icontainsregexBSB|bank\s+account|account\s+number