English

Detecting Prompt Injection Attacks Against Application Using Classifiers

Cryptography and Security 2025-12-16 v1 Artificial Intelligence

Abstract

Prompt injection attacks can compromise the security and stability of critical systems, from infrastructure to large web applications. This work curates and augments a prompt injection dataset based on the HackAPrompt Playground Submissions corpus and trains several classifiers, including LSTM, feed forward neural networks, Random Forest, and Naive Bayes, to detect malicious prompts in LLM integrated web applications. The proposed approach improves prompt injection detection and mitigation, helping protect targeted applications and systems.

Keywords

Cite

@article{arxiv.2512.12583,
  title  = {Detecting Prompt Injection Attacks Against Application Using Classifiers},
  author = {Safwan Shaheer and G. M. Refatul Islam and Mohammad Rafid Hamid and Md. Abrar Faiaz Khan and Md. Omar Faruk and Yaseen Nur},
  journal= {arXiv preprint arXiv:2512.12583},
  year   = {2025}
}

Comments

9 pages, X figures; undergraduate research project on detecting prompt injection attacks against LLM integrated web applications using classical machine learning and neural classifiers

R2 v1 2026-07-01T08:23:51.256Z