[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-detail-273858-en":59,"doc-seo-273858-105":86,"doc-similar-273858":150},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":5,"data":60},{"doc_id":61,"user_id":62,"nickname":63,"user_avatar":64,"doc_module":4,"category_id":39,"category_name":40,"doc_title":65,"doc_description":66,"doc_content":67,"file_id":68,"file_url":69,"file_type":70,"file_size":71,"view_count":72,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":34,"language":73,"language_code":74,"site_id":75,"html_lang":74,"table_of_contents":76,"faqs":77,"seo_title":78,"seo_description":66,"update_tm":79,"read_time":80,"preview_page_count":8,"preview_urls":81},273858,13056703020460,"Valentina","https://ap-avatar.wpscdn.com/avatar/be000253dac470eee5d?_k=1778207105932848923","Trustworthy RAG - An Evaluation Agent for Detecting Misinformation and Knowledge Poisoning in Generative AI Systems","Retrieval-Augmented Generation (RAG) improves factual grounding for large language models by conditioning outputs on external documents, yet it often treats retrieved content as trustworthy. Knowledge poisoning exploits this by injecting malicious passages that maintain semantic relevance while steering generation toward targeted misinformation. This work introduces an Evaluation Agent combining NLI-based factual verification, a five-signal relevance-weighted poison detector, and a Trust Index for interpretable screening before generation, enabling robust defenses across benchmarks and attack strategies.","Author copy of the camera-ready paper accepted for publication in the Main Research Track of the Twenty-First International Conference on Software Engineering Advances (ICSEA 2026)  \nTrustworthy RAG: An Evaluation Agent for Detecting Misinformation and Knowledge Poisoning in Generative AI Systems  \nBalkrishna Giri , Md Toufique Hasan , Jussi Rasku , Muhammad Waseem , and Pekka Abrahamsson   \nFaculty of Information Technology and Communication Sciences, Tampere University  \nTampere, Finland  \ne-mail: {balkrishna.giri, mdtoufique.hasan, jussi.rasku, muhammad.waseem, [pekka.abrahamsson](pekka.abrahamsson}@tuni.fi)[}](pekka.abrahamsson}@tuni.fi)[@tuni.fi](pekka.abrahamsson}@tuni.fi)  \narXiv : 2608 .2 1095v 1 [cs .SE] 2 1 Aug 2026  \nAbstract—Retrieval-Augmented Generation (RAG) grounds Large Language Model (LLM) outputs in external knowledge, but RAG systems usually trust whatever they retrieve, creating a Security-Reliability Gap: high semantic relevance does not guarantee factual truth. Adversaries exploit this through knowledge poisoning, inserting malicious documents to cause targeted misinformation. We propose an Evaluation Agent, middleware that combines Natural Language Inference (NLI) factual verification, a five-signal poison detector with relevance-weighted aggregation, and a Trust Index T = 0 .4F +0 .35C +0 .25(1−P) with a non-linear dampener for high-contamination contexts. On TruthfulQA with Llama 3.3 70B, the agent reaches 91% accuracy and 100% precision, with 100% recall on instruction injection, while in-place edits, such as entity swaps, remain hard to detect. Across three LLMs the Trust Index stays discriminative, with a Receiver Operating Characteristic Area Under the Curve (ROC-AUC) of 0.73 to 0.81; generation style matters more than model size, and per-LLM threshold calibration restores baselinecompetitive accuracy, whereas a weaker FEVER result shows that cross-dataset generalization requires domain-specific calibration. In a software-engineering use case, a secure-coding assistant over guidance from the Open Worldwide Application Security Project (OWASP) Top 10 and the Common Weakness Enumeration (CWE), the agent reliably blocks instruction injection of unsafe advice (F1 92%), while contradiction and subtle semantic weakening remain hard. Throughout, the agent measures detection of poisoned context before generation, not whether the LLM adopts the injected misinformation. We release the proposed approach, attack generator, and experimental artifacts at the link: [https://github.com/GPT-Laboratory/TrustworthyRAG](https://github.com/GPT-Laboratory/TrustworthyRAG).  \nKeywords—Retrieval-augmented generation (RAG); large language models (LLMs); knowledge poisoning; trustworthy AI; misinformation detection; LLM security; natural language inference (NLI); AI safety.  \nI. INTRODUCTION  \nLarge Language Models (LLMs) built on the Transformer architecture [1] now power knowledge-intensive applications, such as question answering, search, and code assistance, yet their parametric knowledge is frozen at training time and they often hallucinate, producing fluent text that is factually wrong [2] . Retrieval-Augmented Generation (RAG) [3] addresses this by retrieving documents from an external corpus and conditioning generation on them, and it has become a default pattern for deploying LLMs over private or fast-changing knowledge [4] .  \nGrounding generation in retrieved text creates a new dependency: the answer is only as trustworthy as the corpus behind it. Standard RAG assumes a benign knowledge base, and existing evaluation frameworks, such as RAGAS [5] and ARES [6], measure faithfulness to the retrieved context rather than the integrity of that context. In open-world deployments, however, an adversary can insert malicious documents through knowledge poisoning [7]; injecting only five malicious passages per question into a corpus of millions (≈0.0002%) can drive attack success to roughly 90% . A system that answers faith","cbCaith5j55BJpbk","https://ap.wps.com/l/cbCaith5j55BJpbk","pdf",265109,22,"English","en",105,"# Introduction\n## Security-Reliability Gap in RAG\n## Evaluation Agent and Trust Index\n# Method Overview\n## NLI factual verification\n## Five-signal poison detection\n# Experiments and Results\n## Benchmarks and LLMs\n## Attack strategies\n## Software-engineering use case\n# Discussion and Release","[{\"question\":\"What problem does the paper address in retrieval-augmented generation systems?\",\"answer\":\"RAG systems often trust retrieved documents, creating a Security-Reliability Gap where high semantic relevance does not guarantee factual truth. Knowledge poisoning can inject malicious documents that still appear relevant.\"},{\"question\":\"How does the proposed Evaluation Agent verify trustworthiness before generation?\",\"answer\":\"It uses NLI-based factual verification together with a five-signal poison detector and a Trust Index that aggregates signals with relevance-weighted consistency estimation. The agent screens retrieved context inside the inference loop.\"},{\"question\":\"How effective is the agent against different attack types and across datasets?\",\"answer\":\"On TruthfulQA with Llama 3.3 70B, it achieves strong performance including 91% accuracy and 100% precision, with 100% recall on instruction injection. It remains discriminative across models using ROC-AUC between 0.73 and 0.81, while subtle in-place edits are harder and cross-dataset generalization may require domain-specific calibration.\"}]","Trustworthy RAG - An Evaluation Agent for Detecting Misinformation and Knowledge Poisoning in Generative AI Systems | PDF",1789473011,18,[82],{"page_no":8,"url":83,"width":84,"height":85},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-08/5885fcac898dd053189b3b926e9bfe70.webp",983,1272,{"code":4,"msg":87,"data":88},"ok",{"site_id":75,"language":74,"slug":89,"title":65,"keywords":90,"description":66,"schema_data":91,"social_meta":145,"head_meta":147,"extra_data":149,"updated_unix":79},"trustworthy-rag-an-evaluation-agent-for-detecting-misinformation-and-knowledge-poisoning-in-generative-ai-systems","",{"@graph":92,"@context":144},[93,107,127],{"@type":94,"itemListElement":95},"BreadcrumbList",[96,100,102,105],{"item":97,"name":98,"@type":99,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":101,"name":9,"@type":99,"position":14},"https://docshare.wps.com/document/",{"item":103,"name":40,"@type":99,"position":104},"https://docshare.wps.com/document/research-report/",3,{"item":106,"name":65,"@type":99,"position":19},"https://docshare.wps.com/document/trustworthy-rag-an-evaluation-agent-for-detecting-misinformation-and-knowledge-poisoning-in-generative-ai-systems/273858/",{"url":106,"name":65,"@type":108,"image":109,"author":114,"headline":65,"publisher":116,"fileFormat":119,"inLanguage":74,"description":66,"dateModified":120,"datePublished":121,"encodingFormat":119,"isAccessibleForFree":122,"interactionStatistic":123},"DigitalDocument",{"url":110,"@type":111,"width":112,"height":113},"https://docshare.wps.com/thumbnails/trustworthy-rag-an-evaluation-agent-for-detecting-misinformation-and-knowledge-poisoning-in-generative-ai-systems/273858.png","ImageObject",300,407,{"name":63,"@type":115},"Person",{"url":97,"name":117,"@type":118},"DocShare","Organization","application/pdf","2026-11-15","2026-09-15",true,{"@type":124,"interactionType":125,"userInteractionCount":72},"InteractionCounter",{"@type":126},"ViewAction",{"@type":128,"mainEntity":129},"FAQPage",[130,136,140],{"name":131,"@type":132,"acceptedAnswer":133},"What problem does the paper address in retrieval-augmented generation systems?","Question",{"text":134,"@type":135},"RAG systems often trust retrieved documents, creating a Security-Reliability Gap where high semantic relevance does not guarantee factual truth. Knowledge poisoning can inject malicious documents that still appear relevant.","Answer",{"name":137,"@type":132,"acceptedAnswer":138},"How does the proposed Evaluation Agent verify trustworthiness before generation?",{"text":139,"@type":135},"It uses NLI-based factual verification together with a five-signal poison detector and a Trust Index that aggregates signals with relevance-weighted consistency estimation. The agent screens retrieved context inside the inference loop.",{"name":141,"@type":132,"acceptedAnswer":142},"How effective is the agent against different attack types and across datasets?",{"text":143,"@type":135},"On TruthfulQA with Llama 3.3 70B, it achieves strong performance including 91% accuracy and 100% precision, with 100% recall on instruction injection. It remains discriminative across models using ROC-AUC between 0.73 and 0.81, while subtle in-place edits are harder and cross-dataset generalization may require domain-specific calibration.","https://schema.org",{"og:url":106,"og:type":146,"og:title":65,"og:site_name":117,"og:description":66},"article",{"robots":148,"canonical":106},"index,follow",{"doc_id":61,"site_id":75},{"list":151,"token":90},[152,159,166,173,180,186,192,198,205,212],{"doc_id":153,"doc_title":154,"file_type":70,"home_preview_img_url":155,"slug":156,"view_count":157,"category_name":40,"create_tm":158},273508,"Towards Safer RAG - Only Agents Capable of System 2 Thinking may Access Untrusted Documents","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229899943510/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109599&Signature=DynKcXDBzOdQLVNsmw%2Fyrw0qG5Y%3D","towards-safer-rag-only-agents-capable-of-system-2-thinking-may-access-untrusted-documents",13,1789471778,{"doc_id":160,"doc_title":161,"file_type":70,"home_preview_img_url":162,"slug":163,"view_count":164,"category_name":40,"create_tm":165},81708,"PRA-RAG Provably Robust Aggregation in Retrieval-Augmented Generation against Retrieval Corruption","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808473249/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109599&Signature=53FMEw61xWrtzCk1f6gFh1bY3PE%3D","pra-rag-provably-robust-aggregation-in-retrieval-augmented-generation-against-retrieval-corruption",35,1784175537,{"doc_id":167,"doc_title":168,"file_type":70,"home_preview_img_url":169,"slug":170,"view_count":171,"category_name":40,"create_tm":172},82531,"Dual-Confidence Contrastive Decoding for Retrieval-Augmented Generation","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808900289/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109599&Signature=Ap%2FOXV7R2YoWKmDJGpZbHvE5MgE%3D","dual-confidence-contrastive-decoding-for-retrieval-augmented-generation",29,1784181294,{"doc_id":174,"doc_title":175,"file_type":70,"home_preview_img_url":176,"slug":177,"view_count":178,"category_name":40,"create_tm":179},82895,"MIRAGE：Defending Long-Form RAG Against Misinformation Pollution","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808801865/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109599&Signature=HHW6wsCQ4QkXVNgMWgNq3E7IqqA%3D","mirage-defending-long-form-rag-against-misinformation-pollution",34,1784183769,{"doc_id":181,"doc_title":182,"file_type":70,"home_preview_img_url":183,"slug":184,"view_count":19,"category_name":40,"create_tm":185},711381,"MAIN-RAG - Multi-Agent Filtering Retrieval-Augmented Generation","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230017066041/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109599&Signature=sPNcZ9HWJ7OaxBQly%2BJAVKtDjgE%3D","main-rag-multi-agent-filtering-retrieval-augmented-generation",1794786018,{"doc_id":187,"doc_title":188,"file_type":70,"home_preview_img_url":189,"slug":190,"view_count":178,"category_name":40,"create_tm":191},82513,"KidnapRAG A Black-Box Attack for Hijacking Reasoning in Agentic Retrieval-Augmented Generation Systems","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808752956/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109599&Signature=TmMQA7ib0PGPhNRd6Q5CF4RHPkk%3D","kidnaprag-a-black-box-attack-for-hijacking-reasoning-in-agentic-retrieval-augmented-generation-systems",1784181048,{"doc_id":193,"doc_title":194,"file_type":70,"home_preview_img_url":195,"slug":196,"view_count":34,"category_name":40,"create_tm":197},511395,"Divide and Doubt - Diverse Distributed Poisoning for Retrieval-Augmented Generation - Abstract and Introduction","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229935553718/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109599&Signature=upaGEep6Brl%2FZ3w7w9Cbrx1W8qY%3D","divide-and-doubt-diverse-distributed-poisoning-for-retrieval-augmented-generation-abstract-and-introduction",1791251494,{"doc_id":199,"doc_title":200,"file_type":70,"home_preview_img_url":201,"slug":202,"view_count":203,"category_name":40,"create_tm":204},83551,"Beyond Document Grounding Span-Level Hallucination Detection","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808987186/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109599&Signature=gtPv9kkd%2FpplQEzdlTL58lw2vsY%3D","beyond-document-grounding-span-level-hallucination-detection",32,1784188763,{"doc_id":206,"doc_title":207,"file_type":70,"home_preview_img_url":208,"slug":209,"view_count":210,"category_name":40,"create_tm":211},327881,"Detecting Hallucinations in Retrieval-Augmented Generation through Grounding-Aware Sensitivity by Perturbation (GASP)","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229909352434/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109599&Signature=eQx4KcdCBmSutM2Eo6W0vpxQtXs%3D","detecting-hallucinations-in-retrieval-augmented-generation-through-grounding-aware-sensitivity-by-perturbation-gasp",16,1789978256,{"doc_id":213,"doc_title":214,"file_type":70,"home_preview_img_url":215,"slug":216,"view_count":217,"category_name":40,"create_tm":218},83016,"Mitigating Errors in LLM-Generated Web API Invocations via Retrieval-Augmented Generation and Constrained Decoding","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808926961/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109599&Signature=8%2BnO8xZOkWGbV6KTAHd97dJoSEE%3D","mitigating-errors-in-llm-generated-web-api-invocations-via-retrieval-augmented-generation-and-constrained-decoding",31,1784184682]