Detection rules › Sublime MQL

DLP: US Bank Account Number

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

Detects messages containing US bank account numbers with ABA routing numbers.

Event coverage

Rule body MQL

type.outbound
and any([body.current_thread.text, subject.subject],
        // ABA routing: 9 digits, Account: 8-17 digits
        regex.contains(., '\b\d{9}\b.*\b\d{8,17}\b|\b\d{8,17}\b.*\b\d{9}\b')
)
and any([body.current_thread.text, subject.subject],
        regex.icontains(., 'routing|ABA|bank\s+account|account\s+number')
)

Detection logic

Scope: outbound message.

Detects messages containing US bank account numbers with ABA routing numbers.

  1. outbound message
  2. any of [body.current_thread.text, subject.subject] where:
    • . matches '\\b\\d{9}\\b.*\\b\\d{8,17}\\b|\\b\\d{8,17}\\b.*\\b\\d{9}\\b'
  3. any of [body.current_thread.text, subject.subject] where:
    • . matches 'routing|ABA|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{9}\b.*\b\d{8,17}\b|\b\d{8,17}\b.*\b\d{9}\b
regex.icontainsregexrouting|ABA|bank\s+account|account\s+number