Detection rules › Sublime MQL

Attachment with unscannable encrypted zip

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

Recursively scans files and archives to detect embedded ZIP files that are encrypted and could not be opened/scanned.

Threat classification

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

CategoryValues
Attack typesMalware/Ransomware
Tactics and techniquesEncryption, Evasion

Event coverage

Rule body MQL

type.inbound
and any(attachments,
        (.file_type == "zip" or .file_extension == "zip")
        and any(file.explode(.),
                any(.flavors.yara, . == 'encrypted_zip')
                and .scan.encrypted_zip.cracked_password == null
        )
)

Detection logic

Scope: inbound message.

Recursively scans files and archives to detect embedded ZIP files that are encrypted and could not be opened/scanned.

  1. inbound message
  2. any of attachments where all hold:
    • any of:
      • .file_type is 'zip'
      • .file_extension is 'zip'
    • any of file.explode(.) where all hold:
      • any of .flavors.yara where:
        • . is 'encrypted_zip'
      • .scan.encrypted_zip.cracked_password is None

Inspects: attachments[].file_extension, attachments[].file_type, type.inbound. Sensors: file.explode.

Indicators matched (3)

FieldMatchValue
attachments[].file_typeequalszip
attachments[].file_extensionequalszip
file.explode(attachments[])[].flavors.yara[]equalsencrypted_zip