[email protected] +91 9840521421 Scholarly Open Access, Peer-reviewed, Refereed Journal e-ISSN 2583-5300 Since 2022
  1. Home
  2. Archives
  3. 2026
  4. Vol. 5 Issue 3
  5. Article
Original Article

A Lightweight Multimodal Prompt Injection Detection and Robustness Assessment Framework for LLM Applications

Open Access Peer Reviewed Crossref DOI

Authors

  • Prasanna Kumar Naik R1
  • Chethan Kumar G S2
  • Swarnalatha3
  • Preethi K P4
  • Chandana S5

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 Online
September-December 2026
Pages
993-999
Article Type
Original Article
Check for updates
check update

Abstract

View PDF

Prompt 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.

APC from ₹1200 + 18% GST

Peer-reviewed open access₹1200 Indian (₹1400 with DOI)$80 USD internationalpaid after acceptance Peer-reviewed open access₹1200 Indian$80 USD international ₹1200 Indian · $80 intl

  • CrossRef DOI
  • ISSN 2583-5300
  • Open Access
  • Peer Reviewed
  • Plagiarism Checked
  • Google Scholar
Contact Us Submit Paper