- Home
- Archives
- 2026
- Vol. 5 Issue 3
- Article
A Lightweight Multimodal Prompt Injection Detection and Robustness Assessment Framework for LLM Applications
Authors
1 2 3 4 Assistant Professor, Department of Master of Computer Application, University BDT.College of Engineering, (A Constituent College of VTU,Belagavi), Davanagere, Bengaluru, Karnataka, India. 5 Student, Department of Master of Computer Application, University BDT.College of Engineering, (A Constituent College of VTU,Belagavi), Davanagere, Bengaluru, Karnataka, India.
Article Information
- Published In
- Volume 5, Issue 3 (2026)
- Published Online
- September-December 2026
- Pages
- 993-999
- Article Type
- Original Article
Abstract
View PDFPrompt injection is a security risk for applications that process instructions and external content through large language models (LLMs). Malicious text embedded in prompts, documents, or images may attempt to override intended instructions or disclose protected information. This paper presents a lightweight web-based prompt-injection screening framework that accepts three input forms: direct text, PDF documents, and images. The application is implemented with Flask and uses a shared text-classification pipeline based on Term Frequency–Inverse Document Frequency (TF-IDF) features and Logistic Regression. Text entered by a user is classified directly; PDF text is extracted page by page and analysed in chunks; and text in uploaded images is extracted using Tesseract Optical Character Recognition (OCR) before classification. The training dataset contains 703 labelled prompts and is divided using a stratified 80:20 split into 562 training and 141 test samples. On the held-out test set, the reported accuracy, precision, recall, and F1-score are each 100%. These results describe performance on the available dataset split and should not be interpreted as proof of generalisation to unseen real-world attacks. A supplementary 16-sample evaluation also reported 100%, but one prompt overlaps with the training dataset. The paper therefore distinguishes implemented functionality and preliminary classification results from a broader adversarial robustness evaluation, which remains future work.
Related Articles
Share Article
*Instagram doesn't support direct link sharing from web. Copy the link and share it in your Instagram story or post.