Detection rules › Sublime MQL
DLP: Japan Passport Number
Detects messages containing Japanese passport 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 passport: 2 letters + 7 digits
regex.contains(., '\b[A-Z]{2}\d{7}\b')
)
and any([body.current_thread.text, subject.subject],
regex.icontains(., 'passport|パスポート|旅券')
)
and (
strings.icontains(sender.email.domain.tld, "jp")
or strings.icontains(body.current_thread.text, "japan")
or strings.icontains(body.current_thread.text, "日本")
)
Detection logic
Scope: outbound message.
Detects messages containing Japanese passport numbers.
- outbound message
any of
[body.current_thread.text, subject.subject]where:- . matches '\\b[A-Z]{2}\\d{7}\\b'
any of
[body.current_thread.text, subject.subject]where:- . matches 'passport|パスポート|旅券'
any of:
- sender.email.domain.tld contains 'jp'
- body.current_thread.text contains 'japan'
- body.current_thread.text contains '日本'
Inspects: body.current_thread.text, sender.email.domain.tld, subject.subject, type.outbound. Sensors: regex.contains, regex.icontains, strings.icontains.
Indicators matched (5)
| Field | Match | Value |
|---|---|---|
regex.contains | regex | \b[A-Z]{2}\d{7}\b |
regex.icontains | regex | passport|パスポート|旅券 |
strings.icontains | substring | jp |
strings.icontains | substring | japan |
strings.icontains | substring | 日本 |