Detection rules › Sublime MQL

DLP: Australia Tax File Number

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

Detects messages containing Australian Tax File Numbers (TFN).

Event coverage

Rule body MQL

type.outbound
and any([body.current_thread.text, subject.subject],
        // TFN: 8 or 9 digits, sometimes with spaces or hyphens
        regex.contains(., '\b\d{3}[\s\-]?\d{3}[\s\-]?\d{3}\b')
)
and any([body.current_thread.text, subject.subject],
        regex.icontains(., 'tax\s+file\s+number|TFN')
)

Detection logic

Scope: outbound message.

Detects messages containing Australian Tax File Numbers (TFN).

  1. outbound message
  2. any of [body.current_thread.text, subject.subject] where:
    • . matches '\\b\\d{3}[\\s\\-]?\\d{3}[\\s\\-]?\\d{3}\\b'
  3. any of [body.current_thread.text, subject.subject] where:
    • . matches 'tax\\s+file\\s+number|TFN'

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

Indicators matched (2)

FieldMatchValue
regex.containsregex\b\d{3}[\s\-]?\d{3}[\s\-]?\d{3}\b
regex.icontainsregextax\s+file\s+number|TFN