Sublime Security medium experimental mql

Attachment: Password-protected PDF with fake document indicators

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

View Source

Detection Logic

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")
                )
        )
)

Field Validations

Loading…

Comments (0)

Loading comments...