Detection rules › Sublime MQL

DLP: Greece Social Security Number (AMKA)

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

Detects messages containing Greek Social Security Numbers (AMKA).

Event coverage

Rule body MQL

type.outbound
and any([body.current_thread.text, subject.subject],
        // AMKA: 11 digits
        regex.contains(., '\b\d{11}\b')
)
and any([body.current_thread.text, subject.subject],
        regex.icontains(., 'AMKA|ΑΜΚΑ|social\s+security')
)

Detection logic

Scope: outbound message.

Detects messages containing Greek Social Security Numbers (AMKA).

  1. outbound message
  2. any of [body.current_thread.text, subject.subject] where:
    • . matches '\\b\\d{11}\\b'
  3. any of [body.current_thread.text, subject.subject] where:
    • . matches 'AMKA|ΑΜΚΑ|social\\s+security'

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

Indicators matched (2)

FieldMatchValue
regex.containsregex\b\d{11}\b
regex.icontainsregexAMKA|ΑΜΚΑ|social\s+security