preprint Open access

EmbedGuard: Cross-Layer Detection and Provenance Attestation for Adversarial Embedding Attacks in RAG Systems

  • Zenodo (CERN European Organization for Nuclear Research)
  • European Organization for Nuclear Research
Research footprint

At a glance

Citations
0
References
0
Comments
0
Paper overview

Abstract

Abstract Embedding-based Retrieval-Augmented Generation (RAG) systems are critical infrastructure for production AI applications, yet remain vulnerable to embedding space poisoning attacks that achieve disproportionate success with minimal payloads (less than 1% corpus contamination achieving greater than 80% attack success rates). Current defense approaches optimize for isolated attack surfaces, making them vulnerable to coordinated attacks distributing adversarial signals across architectural layers. EmbedGuard is an adaptive, cross-layer detection framework integrating hardware-backed cryptographic attestation with statistical anomaly detection across four RAG architectural layers: prompt injection detection, TEE-based embedding attestation, retrieval distributional analysis, and output consistency verification. The framework employs weighted multi-signal fusion to correlate individually benign signals that collectively indicate attacks. Evaluation on the EmbedGuard Benchmark v1.0—comprising Natural Questions (N=50), HotpotQA (N=25), MS-MARCO (N=25), and a curated injection attack dataset (N=35) spanning 25 attack categories—demonstrates 100% detection rate (30/30 attacks) with 0% false positive rate (0/105 benign queries) at sub-millisecond latency (0.04ms mean, p99 < 0.14ms on AMD EPYC 7542). Statistical significance is confirmed via Wilcoxon signed-rank test (p < 0.001). The cross-layer architecture detects all tested attack variants including direct instruction injection, jailbreak attempts, encoding obfuscation, context manipulation, and composite multi-vector attacks.

Record transparency

Publication details

DOI
10.5281/zenodo.18364920
OpenAlex
W7125642367
Document type
preprint
Language
EN
Source
Zenodo (CERN European Organization for Nuclear Research)
Last metadata update
Community

Comments

Log in to join the discussion.

  1. No comments yet. Start the discussion.