Detection rules › Sublime MQL

DLP: Malta Tax ID Number

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

Detects messages containing Maltese Tax Identification Numbers.

Event coverage

Rule body MQL

type.outbound
and any([body.current_thread.text, subject.subject],
        // Malta Tax ID: 8 digits
        regex.contains(., '\b\d{8}\b')
)
and any([body.current_thread.text, subject.subject],
        regex.icontains(., 'tax\s+ID|TIN|numru\s+tat-taxxa')
)
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 Tax Identification Numbers.

  1. outbound message
  2. any of [body.current_thread.text, subject.subject] where:
    • . matches '\\b\\d{8}\\b'
  3. any of [body.current_thread.text, subject.subject] where:
    • . matches 'tax\\s+ID|TIN|numru\\s+tat-taxxa'
  4. 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)

FieldMatchValue
regex.containsregex\b\d{8}\b
regex.icontainsregextax\s+ID|TIN|numru\s+tat-taxxa
strings.icontainssubstringmt
strings.icontainssubstringmalta