Abstract
An indirect prompt injection can influence a search-augmented large language model (LLM) only after retrieval includes its carrier page in model context. This study measures that inclusion event. SearchInject scores each candidate using ranker relevance, query-aligned search-abuse cues, instruction likelihood, and two relevance interactions. A threshold selected under a 0.5% clean-candidate false-positive ceiling determines which candidates are withheld before context assembly. The evaluation covers four spam-inspired page constructions, 300 untouched SciFact queries, and three retrievers, giving 1,200 transformation–query cases per retriever. Top-10 poison exposure falls from 0.941 to 0.158 for Okapi BM25, from 0.916 to 0.151 for a normalized hybrid, and from 0.845 to 0.138 for latent semantic analysis. The largest change in clean normalized discounted cumulative gain at rank 10 is 0.0018. A separate follow-up passes 104 exposed cases to Qwen3-4B and Phi-4-mini and retains 1,192 responses. The automated endpoint confirms no task hijacks and leaves 48 case-level judgments unresolved, so the trace cannot support an attack-success comparison. For the four evaluated constructions, the search-side rule removes most crafted pages with little measured loss in clean ranking. Most remaining exposures involve natural question-like payloads or near duplicates. The experiment does not cover unseen construction families, adaptive attacks, or modern dense retrievers.