Detection rules › Sublime MQL

DLP: SSL Certificate

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

Detects messages containing SSL/TLS certificates.

Event coverage

Rule body MQL

type.outbound
and any([body.current_thread.text, subject.subject],
        regex.contains(., '-----BEGIN\s+CERTIFICATE-----')
)
and any([body.current_thread.text, subject.subject],
        regex.contains(., '-----END\s+CERTIFICATE-----')
)

Detection logic

Scope: outbound message.

Detects messages containing SSL/TLS certificates.

  1. outbound message
  2. any of [body.current_thread.text, subject.subject] where:
    • . matches '-----BEGIN\\s+CERTIFICATE-----'
  3. any of [body.current_thread.text, subject.subject] where:
    • . matches '-----END\\s+CERTIFICATE-----'

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

Indicators matched (2)

FieldMatchValue
regex.containsregex-----BEGIN\s+CERTIFICATE-----
regex.containsregex-----END\s+CERTIFICATE-----