editor@bjddjournal.org +91 8600071634, +91 98903 82132
Open-Access, Transparent Peer-Reviewed, Refereed

BODHIVRUKSHA JOURNAL OF DIVERSE DISCIPLINE

ISSN: 3139-1486 (Online) | ISSN: 3139-9819 (Print) Impact Factor : 6.21 ESTD Year : 2025
Bi-monthly Multilingual Academic Research Multidisciplinary

*** Important Announcement: Call for Papers! Submissions are now open for the upcoming issue. Please visit the "Submit Paper" section to learn more. ***
← Back to Special Issue on Emerging Frontiers in Artificial Intelligence and Multidisciplinary Intelligent Systems

Prompt Injection Attacks on AI Coding Assistants - A Literature Survey and Layered Defense Framework

Department of Artificial Intelligence and Data Science, Ajeenkya DY Patil School of Engineering, Pune, India · India

Abstract

AI coding assistants are no longer limited to suggesting the next line of code. Many can inspect a repository, use external tools and execute commands for a developer. These features make them useful but also open up to a security concern: prompt injection. In this type of attack, untrusted text can steer a model away from the task it was given and may lead to actions such as exposing data or executing unsafe commands. This paper reviews eight studies published between 2022 and 2026, following the development of the topic from early chatbot attacks to attacks against agents that use tools. The studies are compared in a year-wise literature matrix and assessed across five capabilities. The review highlights four recurring gaps: limited evaluation focused specifically on coding assistants, insufficient testing against adaptive attackers, a separation between attack benchmarks and proposed defenses, and the absence of a combined defense architecture at the protocol level. Based on methods already discussed in the reviewed work, we outline a five-layer defense pipeline and suggest a way to evaluate it. This is a literature review not an implementation study; no model is trained and no new attack or defense is built nor tested.

Keywords

Prompt injectionAI coding assistantslarge language modelsModel Context Protocolindirect prompt injectionagentic AIliterature surveydefense in depth

How to Cite This Article

Anushka Kedar, Prof. Ashima Mahendra. (2026). Prompt Injection Attacks on AI Coding Assistants - A Literature Survey and Layered Defense Framework. Special Issue on Emerging Frontiers in Artificial Intelligence and Multidisciplinary Intelligent Systems.

Rights

Copyright
BODHIVRUKSHA JOURNAL OF DIVERSE DISCIPLINE