← Lab /AI/ML

Unified dataset enables high-accuracy detection of phishing attachments across Word, Excel, PDF, HTML

Their CIC-Trap4Phish dataset and static feature pipelines achieve high detection accuracy for malicious attachments across five formats

AI/ML arXiv 9 Feb 2026 Benchmark Prototype evidence

Published as “CIC-Trap4Phish: A Unified Multi-Format Dataset for Phishing and Quishing Attachment Detection”

Why it matters

The dataset enables researchers to train and benchmark multi-format attachment detectors, potentially improving real-time email gateway defenses.

Summary

The paper reports that static feature sets achieve near-perfect detection for Word, Excel and PDF attachments (100% accuracy for Word, >99% for PDF) and about 93% accuracy for HTML, while QR-code detection using lightweight language models on decoded URLs reaches up to 99.4% precision and recall, far outperforming a CNN image-based approach. Evidence is strong for the static-feature classifiers but the QR-code image results and lower HTML scores qualify the overall claim.

What they found 1

  1. Static features for Word documents achieve perfect classification.

    “The selected set of 10 features achieved 100% Accuracy, Precision, Recall, and F1-score, demonstrating the strong effectiveness of the selected feature subset.”

Caveats 5

  • The CNN image-based QR-code detector attains only moderate performance (Precision 0.9301, Recall 0.8401).
  • HTML classifiers reach only about 93% accuracy, lower than the near-perfect results for other formats.
  • The image-based approach has some limitations in detection phase.
  • benign and malicious QR codes have highly similar visual characteristics, making them almost indistinguishable
  • The QR code visual similarity analysis shows a silhouette score of 0.002 and SSIM of 0.34-0.35, indicating overlap between classes.

What’s new here 4

  • Provides a single unified dataset covering five attachment types (Word, Excel, PDF, HTML, QR) which were previously fragmented.
  • Introduces execution-free static feature pipelines for each document type with SHAP-based feature selection.
  • Evaluates QR-code phishing using both CNN image analysis and lightweight LLMs on decoded URLs.
  • Releases the dataset publicly via the CIC portal.