Factually correct retrieved docs can mislead security RAG into unsafe remediation
COMA attacks cause security RAG to output vulnerable remediation despite correct, non-contradictory documents, and CCD can detect such attacks
Security & privacy arXiv 18 Aug 2026 Attack Prototype evidence
Published as “COMA: A Compositional Misleading Attack Class on Security-RAG, and a Causal Counterfactual Defense”
Why it matters
The work shows that security-RAG deployments need an audit layer like ccd to guard against attacks that exploit multi-document reasoning, otherwise they may recommend insecure mitigations despite correct vulnerability assessments.
Summary
COMA attacks-compositional misleading attacks where every retrieved document is individually clean-successfully mislead security-RAG systems across five contemporary LLMs. The deterministic action-corruption mechanism flips the recommended remediation on every run, while the stochastic verdict-flip mechanism causes exploitability decisions to flip in 60-100% of runs depending on model capability. The proposed causal counterfactual defense (ccd) pinpoints the attacker-controlled documents with zero false positives on four benign controls, and an aggregate variant defeats an adaptive attacker that spreads influence across multiple documents. Evidence comes from hand-crafted synthetic and real-CVE seeds evaluated over 15 runs per condition, showing consistent attack bite rates and defense detection.
What they found 2
- Action-corruption deterministically misleads all tested models on both synthetic and real-CVE seeds.
“Action-corruption is deterministic and universal across the models tested: both synthetic seeds and the grounded JDOM seed bite all five models on every run.”
- Verdict-flip causes exploitability decisions to flip stochastically, with success rates decreasing for larger models.
“Verdict-flip is stochastic and capability-dependent.”
Caveats 4
- Verdict-flip does not always succeed; its bite rate drops to 60-67% on frontier models.
- An adaptive adversary can split the misdirection across several low-trust documents, evading the per-document ccd detection.
- Our evaluation rests on a small set of hand-constructed seeds rather than a population-scale benchmark: enough to establish the mechanisms, the cross-model and cross-grounding reach of action-corruption, and the ccd results, but not to measure attack prevalence in real corpora and we observe no false positives, though only on four benign controls.
- ccd is reported at the flip/no-flip level; a calibrated continuous influence score and principled thresholds θ, θagg remain future work.
What’s new here 4
- Defines a new attack class (COMA) where all documents satisfy strict truth and consistency constraints yet the composition misleads the model.
- Introduces two concrete mechanisms-action-corruption and verdict-flip-that exploit inference-versus-stated omissions.
- Proposes a causal counterfactual audit (ccd) that measures per-document influence on the answer, a defense not present in prior content, consensus, isolation, or uncertainty paradigms.
- Demonstrates that an aggregate ccd variant can detect adaptive attacks that evade the per-document rule.