Detection rules › Sublime MQL
DLP: Greece National ID Card
Detects messages containing Greek National ID 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],
// Greek ID: 1-2 letters + 6 digits
regex.contains(., '\b[A-Z]{1,2}\d{6}\b')
)
and any([body.current_thread.text, subject.subject],
regex.icontains(., 'ταυτότητα|national\s+ID|identity\s+card')
)
and (
strings.icontains(sender.email.domain.tld, "gr")
or strings.icontains(body.current_thread.text, "greece")
)
Detection logic
Scope: outbound message.
Detects messages containing Greek National ID Card numbers.
- outbound message
any of
[body.current_thread.text, subject.subject]where:- . matches '\\b[A-Z]{1,2}\\d{6}\\b'
any of
[body.current_thread.text, subject.subject]where:- . matches 'ταυτότητα|national\\s+ID|identity\\s+card'
any of:
- sender.email.domain.tld contains 'gr'
- body.current_thread.text contains 'greece'
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[A-Z]{1,2}\d{6}\b |
regex.icontains | regex | ταυτότητα|national\s+ID|identity\s+card |
strings.icontains | substring | gr |
strings.icontains | substring | greece |