Skip to main content
LLM Security Database
Skip to research details
Back to research findings
LMVD-ID: 8d63e46a
Paper published November 1, 2025
Entry analyzed December 30, 2025
Paper-reported evidence
Confidence: Source-linked

The LMVD-ID is an internal research identifier, not an official CVE identifier.

RAG Poisoning Mitigation Downgrade

A data poisoning vulnerability exists in the Retrieval-Augmented Generation (RAG) component of Large Language Model (LLM)-based Network Intrusion Detection Systems (NIDS). The vulnerability allows an attacker to inject…

BibTeX citation

Paper-evaluated models

No paper-evaluated models are recorded for this entry.

Description

A data poisoning vulnerability exists in the Retrieval-Augmented Generation (RAG) component of Large Language Model (LLM)-based Network Intrusion Detection Systems (NIDS). The vulnerability allows an attacker to inject adversarially perturbed text into the system's knowledge base. By employing a transfer-learning attack using a surrogate model (e.g., BERT) and word-level perturbation algorithms (e.g., TextFooler), an attacker can generate semantic-preserving descriptions that alter the vector retrieval context. When the system detects a network threat and queries the poisoned knowledge base, the LLM ingests the adversarial context, leading to decoupled reasoning where the generated attack analysis fails to link observed traffic features to the correct attack behavior. This results in the generation of vague, generic, or incomplete mitigation strategies, significantly degrading the automated defense capabilities for IoT and IIoT devices.

Examples

  • Port Scanning Attack Scenario:
  1. Surrogate Training: An attacker fine-tunes a BERT model on paraphrased descriptions of IoT attacks (e.g., Port Scanning).
  2. Perturbation: Using TextFooler, the attacker generates an adversarial description for "Port Scanning" by substituting words (five word substitutions in the documented case) to shift the text's vector representation while maintaining semantic similarity (cosine similarity ~0.76). The surrogate model misclassifies this perturbed text as "Vulnerability Scanning."
  3. Poisoning: The attacker replaces the valid "Port Scanning" entry in the RAG knowledge base with the adversarial variant.
  4. Execution: When the NIDS detects Port Scanning traffic (high packet emission, inbound-only traffic), it retrieves the poisoned description.
  5. Failure: The target LLM (ChatGPT-5 Thinking) generates a response that correctly identifies traffic anomalies but fails to explicitly connect them to Port Scanning behavior. Crucially, the mitigation advice degrades: the LLM omits specific countermeasures like the Port Scan Attack Detector (PSAD) and fails to provide implementation code for tools like Fail2Ban, offering only generic firewall advice instead.

Impact

  • Degraded Remediation Quality: Automated mitigation suggestions lose specificity, failing to provide deployable code snippets or configurations for resource-constrained IoT devices.
  • Operational Security Risk: Security teams relying on LLM-augmented analysis may implement incomplete defenses, leaving networks vulnerable to specific attack vectors (e.g., failing to deploy specific intrusion prevention rules).
  • Context misalignment: The linkage between observed network traffic features (JSON telemetry) and the retrieved threat context is weakened, reducing the overall accuracy of the threat narrative.

Affected Systems

  • LLM-based Network Intrusion Detection Systems (NIDS) utilizing Retrieval-Augmented Generation (RAG) for threat analysis.
  • Security frameworks employing vector database retrieval (e.g., FAISS with sentence transformers) coupled with generative models (e.g., ChatGPT-series) for automated incident response in IoT/IIoT environments.
  • The paper evaluates the ChatGPT-5 Thinking product/mode as the attacked target; its other listed models (including Gemini, Claude, Llama, DeepSeek, Falcon, and Mixtral) are response judges, not attacked targets.

Mitigation Steps

  • Validate and version retrieval sources and embeddings, isolate tenants or sessions, and independently authorize any action derived from retrieved or cached content.
  • Cross-check retrieved incident-response guidance against trusted security references before applying automated containment or mitigation actions.
  • Add a targeted regression using inert data and actions, measure both safety and utility regressions, and monitor production for repeated or adaptive attempts.

Research context and confidence

Evidence and verification
Paper-reported; independent reproduction is not documented.
Primary research source linked.
Severity
Not rated by this catalog.
Source and publication type
arXiv · Research preprint.
Peer-review status is not provided by this source.
Author and publication status
Author metadata is not stored; see the primary paper.
Threat model and attacker access
Black-box model, service, or application access.
Related deployment categories
Retrieval-augmented generation
Taxonomy labels only; paper-specific deployment prerequisites are not inferred.
Affected systems
LLM-based Network Intrusion Detection Systems (NIDS) utilizing Retrieval-Augmented Generation (RAG) for threat analysis. Security frameworks employing vector database retrieval (e.g., FAISS with sentence transformers)…

Research Paper

RAG-targeted Adversarial Attack on LLM-based Threat Detection and Mitigation Framework

Primary source: arXiv. Findings are reported by the cited research and have not been independently verified.

View Paper

Evidence

This entry is based on a primary research source. Its findings are paper-reported; independent reproduction and verification are not claimed.

https://arxiv.org/abs/2511.06212