Detection rules › Sublime MQL
DLP: Japan Bank Account Number
Detects messages containing Japanese bank account numbers.
Event coverage
| Message attribute |
|---|
| body.current_thread |
| sender.email |
| subject |
| type |
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.
- outbound message
any of
[body.current_thread.text, subject.subject]where:- . matches '\\b\\d{7}\\b'
any of
[body.current_thread.text, subject.subject]where:- . matches 'bank\\s+account|口座番号|銀行口座|account\\s+number'
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)
| Field | Match | Value |
|---|---|---|
regex.contains | regex | \b\d{7}\b |
regex.icontains | regex | bank\s+account|口座番号|銀行口座|account\s+number |
strings.icontains | substring | jp |
strings.icontains | substring | japan |