Work

Prompt Injection in Open-Source Large Language Models: A Review of Attacks, Defenses and Evaluation Practice

Year: 2026
Type: article
Abstract: Prompt injection has become one of the most discussed security problems in applications built on large language models (LLMs), because these models cannot reliably tell the instructions of a developer from the text they are asked to process. Open-source LLMs add a further dimension, since organizations run them on their own infrastructure and control the full deployment stack. This paper reviews the literature on prompt injection with a focus on open-weight models. It proposes a taxonomy of attacks based on who supplies the injected text and how it is delivered, groups defenses into four families (prompt-level, training-level, detection and filtering, and system-level), and summarizes the benchmarks used for evaluation. The review finds that evidence on open-weight models is thinner than for proprietary systems, that most defenses are tested only against static attacks, and that reporting of utility cost is inconsistent. The paper concludes with a research agenda covering adaptive-attack evaluation, multilingual settings, standard reporting practice and defense-indepth architectures.
Language: English
Open Access status: green
OpenAlex ID: W7242535150
FWCI:
Cites:
Cited by:
Related to: