Detection rules › Sublime MQL

DLP: Poland Identity Card

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

Detects messages containing Polish Identity Card numbers (Dowód osobisty).

Event coverage

Rule body MQL

type.outbound
and any([body.current_thread.text, subject.subject],
        // Polish ID: 3 letters + 6 digits (e.g., ABC123456)
        regex.contains(., '\b[A-Z]{3}\d{6}\b')
)
and any([body.current_thread.text, subject.subject],
        regex.icontains(., 'dowód\s+osobisty|identity\s+card')
)

Detection logic

Scope: outbound message.

Detects messages containing Polish Identity Card numbers (Dowód osobisty).

  1. outbound message
  2. any of [body.current_thread.text, subject.subject] where:
    • . matches '\\b[A-Z]{3}\\d{6}\\b'
  3. any of [body.current_thread.text, subject.subject] where:
    • . matches 'dowód\\s+osobisty|identity\\s+card'

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

Indicators matched (2)

FieldMatchValue
regex.containsregex\b[A-Z]{3}\d{6}\b
regex.icontainsregexdowód\s+osobisty|identity\s+card