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