mlsanityData to 14 Oct 2026

BadSKP: Backdoor Attacks on Knowledge Graph-Enhanced LLMs with Soft Prompts

arXiv 2605.11996 ↗First posted 12 May 2026cs.AIcited by 0

On the map: LLM safety and security → Backdoor and data poisoning attacks

Abstract (arXiv)

Recent knowledge graph (KG)-enhanced large language models (LLMs) move beyond purely textual knowledge augmentation by encoding retrieved subgraphs into continuous soft prompts via graph neural networks, introducing a graph-conditioned channel that operates alongside the standard text interface. However, existing backdoor attacks are largely designed for the textual channel, and their effectiveness against this dual-channel architecture remains unclear. We show that this architecture creates a robustness gap: text-channel backdoor attacks that readily compromise textual KG prompting systems become largely ineffective against soft-prompt-based counterparts. We interpret this gap through semantic anchoring, whereby graph-derived soft prompts bias the generation-driving hidden state toward query-consistent semantics and suppress surface-level malicious instructions. Because this anchoring effect is itself induced by the graph channel, an attacker who manipulates graph-level representations can in turn redirect it toward adversarial semantics. To demonstrate this risk, we propose BadSKP, a backdoor attack that targets the graph-to-prompt interface through a multi-stage optimization strategy: it constructs adversarial target embeddings, optimizes poisoned node embeddings to steer the induced soft prompt, and approximates the optimized representations with fluent adversarial node attributes. Experiments on two soft-prompt KG-enhanced LLMs across four datasets show that BadSKP achieves high attack success under both frozen and trojaned settings, while text-only attacks remain unreliable even under perplexity-based defenses.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Placed in Backdoor and data poisoning attacks, one of 12 directions in LLM safety and security. Builds on 43 of its 52 references that are in the map. First posted on arXiv 12 May 2026.

Builds on

43 of 52 references.

Closest ancestors · 3

Same direction, newest first

  1. 2025Persistent Backdoor Attacks under Continual Fine-Tuning of LLMs12 Dec
  2. 2024Cross-Context Backdoor Attacks against Graph Prompt Learning28 May
  3. 2022BadPrompt: Backdoor Attacks on Continuous Prompts27 Nov

Other references · 40

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  2. 2024The Llama 3 Herd of Modelscited by 14,715
  3. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
  4. 2016Semi-Supervised Classification with Graph Convolutional Networkscited by 11,361
  5. 2017Graph Attention Networkscited by 8,923
  6. 2025Qwen3 Technical Reportcited by 8,820
  7. 2023Mistral 7Bcited by 3,164
  8. 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 3,104
  9. 2016Towards Evaluating the Robustness of Neural Networkscited by 2,998
  10. 2022Survey of Hallucination in Natural Language Generationcited by 2,075
  11. 2023A Survey on Hallucination in Large Language Models: Principles, Taxonomy, Challenges, and Open Questionscited by 1,601
  12. 2021Unsupervised Dense Information Retrieval with Contrastive Learningcited by 1,216
28 more
  1. 2023Baseline Defenses for Adversarial Attacks Against Aligned Language Modelscited by 651
  2. 2021Knowledge Neurons in Pretrained Transformerscited by 601
  3. 2019Graph Transformer Networkscited by 523
  4. 2023Catastrophic Jailbreak of Open-source LLMs via Exploiting Generationcited by 451
  5. 2023Detecting Language Model Attacks with Perplexitycited by 431
  6. 2018The Web as a Knowledge-base for Answering Complex Questionscited by 410
  7. 2023Formalizing and Benchmarking Prompt Injection Attacks and Defensescited by 364
  8. 2023StructGPT: A General Framework for Large Language Model to Reason over Structured Datacited by 343
  9. 2023Reasoning on Graphs: Faithful and Interpretable Large Language Model Reasoningcited by 328
  10. 2024PoisonedRAG: Knowledge Corruption Attacks to Retrieval-Augmented Generation of Large Language Modelscited by 267
  11. 2023Benchmarking and Defending Against Indirect Prompt Injection Attacks on Large Language Modelscited by 264
  12. 2022RealTime QA: What's the Answer Right Now?cited by 244
  13. 2024G-Retriever: Retrieval-Augmented Generation for Textual Graph Understanding and Question Answeringcited by 223
  14. 2019Topology Attack and Defense for Graph Neural Networks: An Optimization Perspectivecited by 196
  15. 2024Optimization-based Prompt Injection Attack to LLM-as-a-Judgecited by 143
  16. 2025DataSentinel: A Game-Theoretic Detection of Prompt Injection Attackscited by 143
  17. 2020Backdoor Attacks to Graph Neural Networkscited by 128
  18. 2020Graph Backdoorcited by 112
  19. 2024BadRAG: Identifying Vulnerabilities in Retrieval Augmented Generation of Large Language Modelscited by 86
  20. 2024Simple Is Effective: The Roles of Graphs and Large Language Models in Knowledge-Graph-Based Retrieval-Augmented Generationcited by 80
  21. 2023Graph Neural Prompting with Large Language Modelscited by 64
  22. 2024Think-on-Graph 2.0: Deep and Faithful Large Language Model Reasoning with Knowledge-guided Retrieval Augmented Generationcited by 64
  23. 2023Are ChatGPT and GPT-4 General-Purpose Solvers for Financial Text Analytics? A Study on Several Typical Taskscited by 59
  24. 2025Can Indirect Prompt Injection Attacks Be Detected and Removed?cited by 52
  25. 2024Graph-constrained Reasoning: Faithful Reasoning on Knowledge Graphs with Large Language Modelscited by 48
  26. 2024FiDeLiS: Faithful Reasoning in Large Language Model for Knowledge Graph Question Answeringcited by 39
  27. 2025Poison-RAG: Adversarial Data Poisoning Attacks on Retrieval-Augmented Generation in Recommender Systemscited by 32
  28. 2025Question-Aware Knowledge Graph Prompting for Enhancing Large Language Modelscited by 1

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2025Stealthy Dual-Trigger Backdoors: Attacking Prompt Tuning in LM-Empowered Graph Foundation Models
  2. 2026Can LLMs Fool Graph Learning? Exploring Universal Adversarial Attacks on Text-Attributed Graphs
  3. 2024BackdoorLLM: A Comprehensive Benchmark for Backdoor Attacks and Defenses on Large Language Models
  4. 2024Large Language Models are Good Attackers: Efficient and Stealthy Textual Backdoor Attacks
  5. 2024TrojanRAG: Retrieval-Augmented Generation Can Be Backdoor Driver in Large Language Models
  6. 2026Merging Triggers, Breaking Backdoors: Defensive Poisoning for Instruction-Tuned Language Models
  7. 2025A Few Words Can Distort Graphs: Knowledge Poisoning Attacks on Graph-based Retrieval-Augmented Generation of Large Language Models
  8. 2024A Survey of Recent Backdoor Attacks and Defenses in Large Language Models