type.inbound
and any(filter(attachments, .file_type == "pdf"),
any(file.explode(.),
any(.scan.yara.matches,
.name in (
"pdf_prompt_ack_secure_document_link",
"pdf_prompt_ack_secure_document_image_sizes"
)
)
)
)
Playground
Test against your own EMLs or sample data.