Detection rules › Sublime MQL
DLP: Malta Identity Card Number
Detects messages containing Maltese Identity Card 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],
// Malta ID: 7-8 digits + 1 letter (e.g., 1234567M)
regex.contains(., '\b\d{7,8}[A-Z]\b')
)
and any([body.current_thread.text, subject.subject],
regex.icontains(., 'identity\s+card|ID\s+card|karta\s+tal-identità')
)
and (
strings.icontains(sender.email.domain.tld, "mt")
or strings.icontains(body.current_thread.text, "malta")
)
Detection logic
Scope: outbound message.
Detects messages containing Maltese Identity Card numbers.
- outbound message
any of
[body.current_thread.text, subject.subject]where:- . matches '\\b\\d{7,8}[A-Z]\\b'
any of
[body.current_thread.text, subject.subject]where:- . matches 'identity\\s+card|ID\\s+card|karta\\s+tal-identità'
any of:
- sender.email.domain.tld contains 'mt'
- body.current_thread.text contains 'malta'
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,8}[A-Z]\b |
regex.icontains | regex | identity\s+card|ID\s+card|karta\s+tal-identità |
strings.icontains | substring | mt |
strings.icontains | substring | malta |