Detection rules › Sublime MQL

DLP: Greece Tax Identification Number

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

Detects messages containing Greek Tax Identification Numbers (ΑΦΜ).

Event coverage

Rule body MQL

type.outbound
and any([body.current_thread.text, subject.subject],
        // Greek Tax ID: 9 digits
        regex.contains(., '\b\d{9}\b')
)
and any([body.current_thread.text, subject.subject],
        regex.icontains(., 'ΑΦΜ|AFM|tax\s+identification')
)

Detection logic

Scope: outbound message.

Detects messages containing Greek Tax Identification Numbers (ΑΦΜ).

  1. outbound message
  2. any of [body.current_thread.text, subject.subject] where:
    • . matches '\\b\\d{9}\\b'
  3. any of [body.current_thread.text, subject.subject] where:
    • . matches 'ΑΦΜ|AFM|tax\\s+identification'

Inspects: body.current_thread.text, subject.subject, type.outbound. Sensors: regex.contains, regex.icontains.

Indicators matched (2)

FieldMatchValue
regex.containsregex\b\d{9}\b
regex.icontainsregexΑΦΜ|AFM|tax\s+identification