CPA-RAG:Covert Poisoning Attacks on Retrieval-Augmented Generation in Large Language Models

CPA-RAG: Скрытые атаки отравления на генерацию с дополнением извлечением в больших языковых моделях
Chunyang Li, Junwei Zhang, Anda Cheng, Zhuo Ma, Xinghua Li, Jianfeng Ma
2025-05-26

CPA-RAGblack-box adversarial frameworkcovert poisoning attackscross-guided optimizationretrieval-augmented generation
Retrieval-Augmented Generation (RAG) enhances large language models (LLMs) by incorporating external knowledge, but its openness introduces vulnerabilities that can be exploited by poisoning attacks. Existing poisoning methods for RAG systems have limitations, such as poor generalization and lack of fluency in adversarial texts. In this paper, we propose CPA-RAG, a black-box adversarial framework that generates query-relevant texts capable of manipulating the retrieval process to induce target answers. The proposed method integrates prompt-based text generation, cross-guided optimization through multiple LLMs, and retriever-based scoring to construct high-quality adversarial samples. We conduct extensive experiments across multiple datasets and LLMs to evaluate its effectiveness. Results show that the framework achieves over 90\% attack success when the top-k retrieval setting is 5, matching white-box performance, and maintains a consistent advantage of approximately 5 percentage points across different top-k values. It also outperforms existing black-box baselines by 14.5 percentage points under various defense strategies. Furthermore, our method successfully compromises a commercial RAG system deployed on Alibaba's BaiLian platform, demonstrating its practical threat in real-world applications. These findings underscore the need for more robust and secure RAG frameworks to defend against poisoning attacks.
1
Across multiple datasets and LLMs, CPA-RAG achieves over 90% attack success when top-k retrieval is 5, matching white-box performance.
2
CPA-RAG combines prompt-based text generation, cross-guided optimization across multiple LLMs, and retriever-based scoring to construct high-quality adversarial samples.
3
CPA-RAG is a black-box adversarial framework that generates query-relevant texts to manipulate RAG retrieval and induce target answers.
4
CPA-RAG maintains an approximate 5 percentage point advantage in attack success across different top-k retrieval values compared to alternatives.
5
CPA-RAG outperforms existing black-box baselines by 14.5 percentage points under various defense strategies.
6
CPA-RAG successfully compromises a commercial RAG system on Alibaba's BaiLian platform, demonstrating practical real-world threat.
7
The results indicate current RAG frameworks require stronger defenses to mitigate covert poisoning attacks like CPA-RAG.

Retrieval-Augmented Generation (RAG) systems for large language models, including their retriever and external knowledge corpus

Covert poisoning attacks that generate query-relevant adversarial texts to manipulate retrieval and induce target answers, and the attack effectiveness against RAG under various top-k settings and defenses

Publication Details
Publication Date
2025-05-26
Journal
Publisher
ISSN
Cited by
0
Access Type
Author Information
Authors
Chunyang Li
Junwei Zhang
Anda Cheng
Zhuo Ma
Xinghua Li
Jianfeng Ma
Explore further
Open the scid.ai AI chat with a ready-made request: it will find papers on a similar topic and help build a literature review.
Find similar papers in the chat
Make a presentation
100%