What it says

RAGShield treats RAG knowledge base poisoning as a software supply chain attack and applies supply chain provenance verification to the RAG pipeline. A five-layer defense-in-depth framework does C2PA-inspired cryptographic document attestation at ingestion, trust-weighted retrieval, taint-tracked context assembly with cross-source contradiction detection, provenance-aware generation with auditable citations, and NIST SP 800-53 compliance mapping. It reports 0.0% attack success rate across six adversary tiers including adaptive attacks with 0.0% false positive rate, but honestly reports in-place replacement attacks by insiders achieving 17.5% ASR.

Claims drawn from this source

  • Poisoned RAG is structurally analogous to software supply chain attacks. The authors observe that injecting malicious content into a trusted pipeline is structurally the same attack as SolarWinds: malicious documents into a knowledge base as malicious code into a build. The defense in software supply chains is provenance verification, and no existing RAG defense applies it.
  • Layer 1 blocks unsigned, forged, and PhantomText-invisible documents at ingestion. Each document carries an attestation with SHA-256 content hash after normalization, source identifier, trust tier, key fingerprint, timestamp, and Ed25519 signature. Content normalization strips zero-width characters and hidden HTML/CSS before hashing; divergence delta above 0.20 blocks a document and delta above 0.05 flags it.
  • Trust-weighted retrieval enforces minimum trust thresholds by query sensitivity. Retrieval scores combine embedding similarity with trust: CRITICAL queries (legal/medical) require tau_min 0.8, HIGH (financial) 0.6, MEDIUM (procedural) 0.3. Composite trust is bounded by the minimum component trust.
  • Provenance verification alone cannot stop insider attacks; contradiction detection fills the gap. Three content-based checks run only on newly-ingested documents. Cross-source contradiction detection flags subtle insider attacks such as a 15,500 numerical manipulation even when provenance is valid.
  • RAGShield achieves 0.0% attack success rate across six adversary tiers, including adaptive attacks. On a 500-passage Natural Questions corpus with 63 attack documents and 200 queries, RAGShield reaches 0.0% ASR (95% CI [0.0%, 1.9%]) and 0.0% false positive rate, versus 8-13% ASR without defense, 7.5-12.5% for RAGDefender, and 0-0.5% for RobustRAG.
  • In-place replacement attacks remain RAGShield’s fundamental blind spot. Insiders replacing existing corpus documents in-place (20 documents modified by single-number edits, e.g. 1788 to 1789) bypass all ingestion-time checks because the modified documents are part of the baseline. Result: 17.5% ASR, with mean embedding similarity between original and modified passages of 0.9964.
  • Graduated bootstrapping mirrors confidence in the signing infrastructure. When full cryptographic signing is unavailable, RAGShield supports Level 0 TLS-URL verification, Level 1 hash pinning at ingestion, Level 2 cross-reference against multiple official sources, and Level 3 full C2PA-style attestation, with trust scores capped at 0.5, 0.6, 0.8, and 1.0 respectively.
  • The framework is cheap at query time. Layer 1 verification is O(1) per document; trust-weighted retrieval adds no asymptotic overhead; insider detection is O(n) per new document against n existing embeddings, running ~50ms for a 1M-document corpus on CPU. Per-query overhead is ~10ms, dominated by embedding inference.