Detection rules › Sublime MQL

DLP: Japan Bank Account Number

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

Detects messages containing Japanese bank account numbers.

Event coverage

Rule body MQL

type.outbound
and any([body.current_thread.text, subject.subject],
        // Japanese bank account: typically 7 digits
        regex.contains(., '\b\d{7}\b')
)
and any([body.current_thread.text, subject.subject],
        regex.icontains(., 'bank\s+account|口座番号|銀行口座|account\s+number')
)
and (
  strings.icontains(sender.email.domain.tld, "jp")
  or strings.icontains(body.current_thread.text, "japan")
)

Detection logic

Scope: outbound message.

Detects messages containing Japanese bank account numbers.

  1. outbound message
  2. any of [body.current_thread.text, subject.subject] where:
    • . matches '\\b\\d{7}\\b'
  3. any of [body.current_thread.text, subject.subject] where:
    • . matches 'bank\\s+account|口座番号|銀行口座|account\\s+number'
  4. any of:
    • sender.email.domain.tld contains 'jp'
    • body.current_thread.text contains 'japan'

Inspects: body.current_thread.text, sender.email.domain.tld, subject.subject, type.outbound. Sensors: regex.contains, regex.icontains, strings.icontains.

Indicators matched (4)

FieldMatchValue
regex.containsregex\b\d{7}\b
regex.icontainsregexbank\s+account|口座番号|銀行口座|account\s+number
strings.icontainssubstringjp
strings.icontainssubstringjapan