Detection rules › Sublime MQL

DLP: India PAN Number

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

Detects messages containing Indian Permanent Account Numbers (PAN).

Event coverage

Rule body MQL

type.outbound
and any([body.current_thread.text, subject.subject],
        // PAN: 5 letters + 4 digits + 1 letter (e.g., ABCDE1234F)
        regex.contains(., '\b[A-Z]{5}\d{4}[A-Z]\b')
)
and any([body.current_thread.text, subject.subject],
        regex.icontains(., 'PAN|permanent\s+account|पैन')
)

Detection logic

Scope: outbound message.

Detects messages containing Indian Permanent Account Numbers (PAN).

  1. outbound message
  2. any of [body.current_thread.text, subject.subject] where:
    • . matches '\\b[A-Z]{5}\\d{4}[A-Z]\\b'
  3. any of [body.current_thread.text, subject.subject] where:
    • . matches 'PAN|permanent\\s+account|पैन'

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

Indicators matched (2)

FieldMatchValue
regex.containsregex\b[A-Z]{5}\d{4}[A-Z]\b
regex.icontainsregexPAN|permanent\s+account|पैन