mlsanityData to 7 Oct 2026

Know Thy Enemy: Securing LLMs Against Prompt Injection via Diverse Data Synthesis and Instruction-Level Chain-of-Thought Learning

arXiv 2601.04666 ↗First posted 8 Jan 2026cs.AI cs.CRcited by 1

On the map: LLM reasoning → Reasoning for agents, planning and code

also in 2 more
Abstract (arXiv)

Large language model (LLM)-integrated applications have become increasingly prevalent, yet face critical security vulnerabilities from prompt injection (PI) attacks. Defending against PI attacks faces two major issues: malicious instructions can be injected through diverse vectors, and injected instructions often lack clear semantic boundaries from the surrounding context, making them difficult to identify. To address these issues, we propose InstruCoT, a model enhancement method for PI defense that synthesizes diverse training data and employs instruction-level chain-of-thought fine-tuning, enabling LLMs to effectively identify and reject malicious instructions regardless of their source or position in the context. We evaluate InstruCoT across three critical dimensions: Behavior Deviation, Privacy Leakage, and Harmful Output. Experimental results across four LLMs demonstrate that InstruCoT significantly outperforms baselines in all dimensions while maintaining utility performance without degradation

Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Placed in Reasoning for agents, planning and code, one of 17 directions in LLM reasoning. Builds on 2 of its 38 references that are in the map. First posted on arXiv 8 Jan 2026.

Builds on

2 of 38 references.

References · 2

  1. 2023Effective Prompt Extraction from Language Modelscited by 83
  2. 2025Meta SecAlign: A Secure Foundation LLM Against Prompt Injection Attackscited by 6

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 1.

1 paper.

Similar, not cited

Close in wording, no citation either way

  1. 2025Defending against Indirect Prompt Injection by Instruction Detection
  2. 2025System Prompt Poisoning: Persistent Attacks on Large Language Models Beyond User Injection
  3. 2025Attention is All You Need to Defend Against Indirect Prompt Injection Attacks in LLMs
  4. 2026Analysis of LLMs Against Prompt Injection and Jailbreak Attacks
  5. 2025Mitigating Indirect Prompt Injection via Instruction-Following Intent Analysis
  6. 2025Breaking to Build: A Threat Model of Prompt-Based Attacks for Securing LLMs
  7. 2025SecInfer: Preventing Prompt Injection via Inference-time Scaling
  8. 2026Universal Defenses for Tool-Integrated LLM Agents Against Adversarial Attacks