Sublime Security high experimental mql

Attachment: Archive contains DLL-loading macro

An attacker could send a trusted and signed document that references an untrusted DLL file, which will be loaded by the signed document.

View Source

Detection Logic

type.inbound
and any(attachments,
        (
          .file_extension in~ $file_extensions_common_archives
          or .file_type == "rar"
        )
        and (
          (
            any(file.explode(.),
                .scan.zip.encrypted == false
                // zip contains a dll file
                and any(.scan.zip.all_paths, strings.icontains(., "dll"))
            )
            and any(file.explode(.),
                    // macro references a dll file
                    any(.flavors.yara, strings.like(., "vb_file"))
                    and any(.scan.strings.strings, strings.icontains(., "dll"))
            )
          )
          or any(file.explode(.), // fallback for encrypted zips
                 .scan.zip.encrypted == true
                 and any(.scan.zip.all_paths,
                         any($file_extensions_macros, strings.icontains(.., .))
                 )
                 // zip contains a dll file
                 and any(.scan.zip.all_paths, strings.icontains(., "dll"))
          )
          or (
            any(file.explode(.),
                any(.flavors.yara, strings.like(., "vb_file"))
                and any(.scan.strings.strings, strings.ilike(., "*Lib*.dll*"))
            )
            and any(file.explode(.), strings.ilike(.file_extension, "dll"))
          )
        )
)

Field Validations

Loading…

Comments (0)

Loading comments...