Detection rules › Sublime MQL

DLP: Chile Identity Card Number

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

Detects messages containing Chilean Identity Card (CDI) numbers.

Event coverage

Rule body MQL

type.outbound
and any([body.current_thread.text, subject.subject],
        // Chilean RUT: 7-8 digits with verification digit
        regex.contains(., '\b\d{1,2}\.\d{3}\.\d{3}-[0-9Kk]\b')
)
and any([body.current_thread.text, subject.subject],
        regex.icontains(., 'RUT|cédula|identity\s+card|CDI')
)
and (
  strings.icontains(sender.email.domain.tld, "cl")
  or strings.icontains(body.current_thread.text, "chile")
)

Detection logic

Scope: outbound message.

Detects messages containing Chilean Identity Card (CDI) numbers.

  1. outbound message
  2. any of [body.current_thread.text, subject.subject] where:
    • . matches '\\b\\d{1,2}\\.\\d{3}\\.\\d{3}-[0-9Kk]\\b'
  3. any of [body.current_thread.text, subject.subject] where:
    • . matches 'RUT|cédula|identity\\s+card|CDI'
  4. any of:
    • sender.email.domain.tld contains 'cl'
    • body.current_thread.text contains 'chile'

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{1,2}\.\d{3}\.\d{3}-[0-9Kk]\b
regex.icontainsregexRUT|cédula|identity\s+card|CDI
strings.icontainssubstringcl
strings.icontainssubstringchile