Detection rules › Sublime MQL
DLP: Netherlands Tax Identification Number
Detects messages containing Dutch Tax Identification 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],
// Dutch Tax ID: 9 digits
regex.contains(., '\b\d{9}\b')
)
and any([body.current_thread.text, subject.subject],
regex.icontains(., 'tax\s+identification|belastingnummer|TIN')
)
and (
strings.icontains(sender.email.domain.tld, "nl")
or strings.icontains(body.current_thread.text, "netherlands")
)
Detection logic
Scope: outbound message.
Detects messages containing Dutch Tax Identification Numbers.
- outbound message
any of
[body.current_thread.text, subject.subject]where:- . matches '\\b\\d{9}\\b'
any of
[body.current_thread.text, subject.subject]where:- . matches 'tax\\s+identification|belastingnummer|TIN'
any of:
- sender.email.domain.tld contains 'nl'
- body.current_thread.text contains 'netherlands'
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{9}\b |
regex.icontains | regex | tax\s+identification|belastingnummer|TIN |
strings.icontains | substring | nl |
strings.icontains | substring | netherlands |