cs.CRMay 1, 2026

E-MIA: Exam-Style Black-Box Membership Inference Attacks against RAG Systems

Authors: Zelin GuanShengda ZhuoZeyan LiJinchun HeWangjie QiuZhiming ZhengShuqiang Huang

Organizations: College of Cyber Security, Jinan University, Guangzhou, China · School of Computer Science, Shanghai Jiaotong University, Shanghai, China · Institute of Artificial Intelligence, Beijing Advanced Innovation Center for Future Blockchain and Privacy Computing, Beihang University, Beijing 100191, China · Zhongguancun Laboratory, Beijing, China

Abstract

Retrieval-Augmented Generation (RAG) equips large language models (LLMs) with external evidence by retrieving documents at inference time, but it also turns the retrieval corpusinto a sensitive asset. Under a black-box setting, an adversary given a candidate document can infer whether it has been ingested into the RAG knowledge base (i.e., document-level membership inference) solely from query response interactions, thereby leaking corpus coverage and the existence of sensitive topics. Existing RAG MIA methods either rely on soft signals such as semantic similarity, which often yield overlapping member/non-member score distributions and unstable thresholds, or employ explicit confirmation probes whose intent is conspicuous and thus prone to refusal and detection. We propose E-MIA, which converts verifiable hard evidence in the target document (e.g., fine-grained details, proper nouns/technical terms, definitional statements, metadata cues, and causal/constraint relations) into an exam with four objectively gradable question types (FB/SC/MC/T/F), and uses the aggregated exam score across multiple evidence targeted questions as the membership signal. Experiments across multiple datasets and diverse RAG configurations demonstrate that E-MIA improves member/non-member separability in stringent settings while preserving natural, stealthy queries, and we further analyze the impact of question composition and exam length on attack effectiveness.

Explore similar work

CardsList
  1. Detecting Data Contamination in Large Language Models

    Apr 21, 2026Juliusz Janicki, Savvas Chamezopoulos, Evangelos Kanoulas +1Membership Inference AttacksContamination

  2. Embedding Inference Attack

    Jul 1, 2026Cedric Fitiavana Raelijohn, Sébastien Gambs, Jean-Francois RajotteRetrieval-Augmented Generation SystemsRecent Retrieval-Augmented Generation