Detection rules › Sublime MQL

Attachment: Password-protected PDF with fake document indicators

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

Detects PDF attachments that are password protected and matching YARA signatures looking for specific content observed in previous activity.

Threat classification

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

CategoryValues
Attack typesMalware/Ransomware, Credential Phishing
Tactics and techniquesEncryption, Evasion, PDF

Event coverage

Rule body MQL

type.inbound
and length(attachments) == 1
and any(filter(attachments, .file_type == "pdf"),
        //
        // This rule makes use of a beta feature and is subject to change without notice
        // using the beta featuer in custom rules is not suggested until it has been formally released.
        //
        any(beta.parse_exif(.).fields,
            strings.icontains(.value, 'password protected')
        )
        and any(file.explode(.),
                any(.scan.yara.matches,
                    .name in ("pwd_protected_pdf_fake_document_1")
                )
        )
)

Detection logic

Scope: inbound message.

Detects PDF attachments that are password protected and matching YARA signatures looking for specific content observed in previous activity.

  1. inbound message
  2. length(attachments) is 1
  3. any of filter(attachments) where all hold:
    • any of beta.parse_exif(.).fields where:
      • .value contains 'password protected'
    • any of file.explode(.) where:
      • any of .scan.yara.matches where:
        • .name in ('pwd_protected_pdf_fake_document_1')

Inspects: attachments[].file_type, type.inbound. Sensors: beta.parse_exif, file.explode, strings.icontains.

Indicators matched (3)

FieldMatchValue
attachments[].file_typeequalspdf
strings.icontainssubstringpassword protected
file.explode(filter(attachments)[])[].scan.yara.matches[].namememberpwd_protected_pdf_fake_document_1