arXiv:2611.02643cs.AINov 2026

Manuscript Offprint

arXiv:2611.02643

SearchInject: Retrieval Exposure Control for Indirect Prompt Injection in Language-Model Search

Kainan Zhou, Gangzhen Qian, Janet Sung, Zhi Jing, Rong Bao, Qianru Lao

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Kainan Zhou

Google LLC

Mountain View, USA

zhoumark@google.com

Gangzhen Qian

Google LLC

Mountain View, USA

irisqian@google.com

Janet Sung

Google LLC

Mountain View, USA

janetsung@google.com

Zhi Jing

Google LLC

Mountain View, USA

varusjing@google.com

Rong Bao

Google LLC

Mountain View, USA

arielbao@google.com

Qianru Lao

Harvard University

Cambridge, USA

estherbear17@gmail.com

Abstract—An indirect prompt injection can affect a search-augmented large language model only after its carrier page reaches model context. SearchInject controls this admission decision with a joint score combining retrieval relevance, search-abuse cues, instruction likelihood, and two relevance interactions. A quarantine threshold is selected under an empirical 0.5% clean-candidate false-quarantine constraint on a calibration split. Evaluation uses 300 held-out SciFact queries and held-out payload categories within four construction families already represented during development. Across 1,200 query–family outcomes per retriever, top-10 target exposure falls from 0.9408 to 0.1583 for BM25, from 0.9158 to 0.1508 for a normalized hybrid, and from 0.8450 to 0.1375 for latent semantic analysis. These are relative reductions of 83.2–83.7%; the largest absolute change in clean normalized discounted cumulative gain at rank 10 is 0.0018. The frozen threshold yields clean test false-quarantine rates of 0.59–0.65%, above the empirical calibration constraint. A query-level analytical reanalysis accounts for the repeated construction outcomes under an independent-query assumption. A separate 104-case generation follow-up records context removal but no confirmed undefended hijacks under a post hoc endpoint, so it cannot estimate a reduction in attack success. The evidence supports retrieval exposure control within the evaluated construction families; the benefit of the interaction terms at matched clean cost remains unresolved.

Index Terms—indirect prompt injection, information retrieval, retrieval-augmented generation, language models

I. INTRODUCTION

Search-augmented language models answer queries using retrieved third-party text. Publishers can embed instructions without authority over the application; early demonstrations showed that such content could redirect language-model applications [1]. In search, the carrier page must first be retrieved, ranked, and admitted to context.

Query-term repetition, title manipulation, doorway text, and copied passages can promote a page [2]. When results become model inputs, promotion determines which untrusted instructions the generator encounters, creating an admission problem before any instruction is followed.

InjecAgent and AgentDojo evaluate behavior after hostile content is delivered through tool observations or task environments [3], [4]. Their endpoints do not isolate carrier selection.

Retrievable trigger fragments can cross this selection boundary under ordinary-looking queries [5]. SearchInject addresses the admission decision and its clean retrieval cost.

The main technical contribution is a relevance-conditioned risk score coupled with a clean-cost-constrained quarantine threshold. Logistic scoring and refill implement this admission policy. The evaluation separates target exposure from task hijacking, so a change in one quantity is not credited as a change in the other.

Exposure decreases by 83.2–83.7% across three lightweight retrievers, with small clean ranking changes. We report calibration transfer and query-level uncertainty; interaction effects and matched-cost comparisons remain unresolved.

References (26)