Hidden text in resumes: measuring prompt injection in real settings
Hidden Text in Resumes: Measuring Prompt Injection in the Wild
The paper "Measuring Real-World Prompt Injection Attacks in LLM-based Resume Screening" (USENIX Security 2026, arXiv:2605.28999) analyzed 196,682 resumes from the recruiting platform hireEZ and found that 2,030 (about 1%) contained hidden text invisible to the human eye but readable by PDF parsers, which the authors say is only a lower bound. The hidden text is implemented through colors matching the background, extremely small font sizes, placement outside the visible page area, or PDF layers, and falls into two categories: instruction injection and data injection; more than 90% of the injections in the two datasets contain no instructions at all, being merely hidden skill lists to improve keyword matching. On a test set with a 1% injection rate, PromptGuard and PromptArmor detected only 5% and 7% of injected resumes; the cross-modal detectors HCD and VDA built by the authors achieved precision of 86.1% and 92.7%, respectively.
Based on nearly 200,000 real resumes, the paper points out that more than 90% of hidden injections contain no instructions, and defense teams that rely on instruction-phrasing matching need to rethink their detection approach.