Detection rules › Sublime MQL

Attachment: PDF with ReportLab library and default metadata

Severity
low
Type
rule
Source
github.com/sublime-security/sublime-rules

Detects PDF attachments generated using the ReportLab PDF Library with default anonymous metadata values, including untitled document, anonymous creator/author, and unspecified subject. This combination of characteristics is commonly associated with automated PDF generation tools used in malicious activities.

Threat classification

Sublime's own taxonomy (not MITRE ATT&CK).

CategoryValues
Attack typesCredential Phishing
Tactics and techniquesPDF, Evasion

Event coverage

Message attribute
type

Rule body MQL

type.inbound
and any(attachments,
        beta.parse_exif(.).producer == "ReportLab PDF Library - (opensource)"
        and beta.parse_exif(.).title == "untitled"
        and beta.parse_exif(.).creator == "anonymous"
        and any(beta.parse_exif(.).fields,
                .key == "Subject" and .value == "unspecified"
        )
        and beta.parse_exif(.).author == "anonymous"
) 

Detection logic

Scope: inbound message.

Detects PDF attachments generated using the ReportLab PDF Library with default anonymous metadata values, including untitled document, anonymous creator/author, and unspecified subject. This combination of characteristics is commonly associated with automated PDF generation tools used in malicious activities.

  1. inbound message
  2. any of attachments where all hold:
    • beta.parse_exif(.).producer is 'ReportLab PDF Library - (opensource)'
    • beta.parse_exif(.).title is 'untitled'
    • beta.parse_exif(.).creator is 'anonymous'
    • any of beta.parse_exif(.).fields where all hold:
      • .key is 'Subject'
      • .value is 'unspecified'
    • beta.parse_exif(.).author is 'anonymous'

Inspects: type.inbound. Sensors: beta.parse_exif.

Indicators matched (2)

FieldMatchValue
beta.parse_exif(attachments[]).fields[].keyequalsSubject
beta.parse_exif(attachments[]).fields[].valueequalsunspecified