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

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.

Authors

Institutions

Publication Details

Journal
Indian Journal of Computer Science and Technology
Published
2026-11-23
DOI
https://doi.org/10.59256/indjcst.20260503118
Primary Topic
Adversarial Robustness in Machine Learning
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

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

K P Preethi, G S Chethan Kumar, R Prasanna Kumar Naik, S Chandana et al.
Indian Journal of Computer Science and Technology
Adversarial Robustness in Machine Learning
article

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

K P Preethi, G S Chethan Kumar, R Prasanna Kumar Naik, S Chandana, A Swarnalatha
article en

Abstract

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.

Indian Journal of Computer Science and Technology
University B.D.T College of Engineering (IN)
Adversarial Robustness in Machine Learning
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon