Detection rules › Sublime MQL

DLP: Japan Passport Number

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

Detects messages containing Japanese passport numbers.

Event coverage

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.

  1. outbound message
  2. any of [body.current_thread.text, subject.subject] where:
    • . matches '\\b[A-Z]{2}\\d{7}\\b'
  3. any of [body.current_thread.text, subject.subject] where:
    • . matches 'passport|パスポート|旅券'
  4. 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)

FieldMatchValue
regex.containsregex\b[A-Z]{2}\d{7}\b
regex.icontainsregexpassport|パスポート|旅券
strings.icontainssubstringjp
strings.icontainssubstringjapan
strings.icontainssubstring日本