Detection rules › Sublime MQL

DLP: Italy Fiscal Code

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

Detects messages containing Italian Fiscal Codes (Codice Fiscale).

Event coverage

Rule body MQL

type.outbound
and any([body.current_thread.text, subject.subject],
        // Italian Fiscal Code: 16 alphanumeric (e.g., RSSMRA85T10A562S)
        regex.contains(., '\b[A-Z]{6}\d{2}[A-Z]\d{2}[A-Z]\d{3}[A-Z]\b')
)
and any([body.current_thread.text, subject.subject],
        regex.icontains(., 'codice\s+fiscale|fiscal\s+code')
)

Detection logic

Scope: outbound message.

Detects messages containing Italian Fiscal Codes (Codice Fiscale).

  1. outbound message
  2. any of [body.current_thread.text, subject.subject] where:
    • . matches '\\b[A-Z]{6}\\d{2}[A-Z]\\d{2}[A-Z]\\d{3}[A-Z]\\b'
  3. any of [body.current_thread.text, subject.subject] where:
    • . matches 'codice\\s+fiscale|fiscal\\s+code'

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

Indicators matched (2)

FieldMatchValue
regex.containsregex\b[A-Z]{6}\d{2}[A-Z]\d{2}[A-Z]\d{3}[A-Z]\b
regex.icontainsregexcodice\s+fiscale|fiscal\s+code