Abstract
As large language models (LLMs) increasingly become more integrated into everyday workflows, they are also increasingly being used to help resume reviewers screen documents and support decision making ((Vaishampayan et al., 2025). This project starts with a question of whether PDFs with hidden and embedded prompt injections can manipulate an LLM-based screener, and whether classic structural PDF parsing scripts, a custom rule-based heuristic scanner, and PhantomLint, can catch the hidden payload before it reaches the end of the automated screening pipeline.
It begins by creating a 99-file corpus, which is then run through all four detectors, three different PDF extractors (pypdf, pdfplumber, and PyMuPDF), then finally through locally hosted llama3.1:8b resume-screening pipeline that is used to determine the contents of a document. At the end, for the exact same hiding techniques, the attack success rate (ASR) swung from 100% to 0% depending purely on which PDF extractor the screener used. Classic structural tools caught none of the 78 hidden-attack files. The custom rule-based heuristic scanner achieved the highest overall recall of 87.2% at 100% precision, outperforming PhantomLint in both passthrough (80.8%) and NLP (67.9%) modes by inspecting PDF metadata and annotations. In contrast, the heuristic's own weak point was off-page text, a gap traced to a PyMuPDF behavior that also explains part of the extractor-dependent attack success results.
Faculty Advisor/Mentor
Ayan Roy
Document Type
Paper
Disciplines
Artificial Intelligence and Robotics
DOI
10.25776/32be-dj14
Publication Date
11-30-2026
Upload File
wf_yes
Included in
Detecting Hidden Prompt Injection in PDFs Across ATS-Style Screening Pipelines
As large language models (LLMs) increasingly become more integrated into everyday workflows, they are also increasingly being used to help resume reviewers screen documents and support decision making ((Vaishampayan et al., 2025). This project starts with a question of whether PDFs with hidden and embedded prompt injections can manipulate an LLM-based screener, and whether classic structural PDF parsing scripts, a custom rule-based heuristic scanner, and PhantomLint, can catch the hidden payload before it reaches the end of the automated screening pipeline.
It begins by creating a 99-file corpus, which is then run through all four detectors, three different PDF extractors (pypdf, pdfplumber, and PyMuPDF), then finally through locally hosted llama3.1:8b resume-screening pipeline that is used to determine the contents of a document. At the end, for the exact same hiding techniques, the attack success rate (ASR) swung from 100% to 0% depending purely on which PDF extractor the screener used. Classic structural tools caught none of the 78 hidden-attack files. The custom rule-based heuristic scanner achieved the highest overall recall of 87.2% at 100% precision, outperforming PhantomLint in both passthrough (80.8%) and NLP (67.9%) modes by inspecting PDF metadata and annotations. In contrast, the heuristic's own weak point was off-page text, a gap traced to a PyMuPDF behavior that also explains part of the extractor-dependent attack success results.