Detection rules › Sublime MQL

DLP: US ICD-10-CM Code

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

Detects messages containing ICD-10-CM diagnosis and procedure codes.

Event coverage

Rule body MQL

type.outbound
and any([body.current_thread.text, subject.subject],
        // ICD-10-CM diagnosis: letter + 2 digits + optional dot + up to 4 more alphanumeric
        // ICD-10-PCS procedure: 7 alphanumeric (no I or O)
        regex.contains(., '\b[A-Z]\d{2}\.?[A-Z0-9]{0,4}\b|\b[A-HJ-NP-Z0-9]{7}\b')
)
and any([body.current_thread.text, subject.subject],
        regex.icontains(., 'ICD-?10|diagnosis\s+code|procedure\s+code')
)

Detection logic

Scope: outbound message.

Detects messages containing ICD-10-CM diagnosis and procedure codes.

  1. outbound message
  2. any of [body.current_thread.text, subject.subject] where:
    • . matches '\\b[A-Z]\\d{2}\\.?[A-Z0-9]{0,4}\\b|\\b[A-HJ-NP-Z0-9]{7}\\b'
  3. any of [body.current_thread.text, subject.subject] where:
    • . matches 'ICD-?10|diagnosis\\s+code|procedure\\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]\d{2}\.?[A-Z0-9]{0,4}\b|\b[A-HJ-NP-Z0-9]{7}\b
regex.icontainsregexICD-?10|diagnosis\s+code|procedure\s+code