Detection rules › Sublime MQL

DLP: India Bank Account Number

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

Detects messages containing Indian bank account numbers with IFSC codes.

Event coverage

Rule body MQL

type.outbound
and any([body.current_thread.text, subject.subject],
        // IFSC: 4 letters + 7 alphanumeric (e.g., SBIN0001234)
        // Account: 9-18 digits
        regex.contains(., '\b[A-Z]{4}0[A-Z0-9]{6}\b')
)
and any([body.current_thread.text, subject.subject],
        regex.icontains(., 'IFSC|bank\s+account|account\s+number|खाता')
)

Detection logic

Scope: outbound message.

Detects messages containing Indian bank account numbers with IFSC codes.

  1. outbound message
  2. any of [body.current_thread.text, subject.subject] where:
    • . matches '\\b[A-Z]{4}0[A-Z0-9]{6}\\b'
  3. any of [body.current_thread.text, subject.subject] where:
    • . matches 'IFSC|bank\\s+account|account\\s+number|खाता'

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

Indicators matched (2)

FieldMatchValue
regex.containsregex\b[A-Z]{4}0[A-Z0-9]{6}\b
regex.icontainsregexIFSC|bank\s+account|account\s+number|खाता