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