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