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

A lightweight and explainable framework for prompt injection detection in AI applications

  • Paper ID 1201
  • Volume 7, Issue 5
  • Pages 102-106
  • Published Online: September-October 2026
Open Access Peer Reviewed Crossref DOI

Authors

  • Vaibhav Vats1
  • Vaibhav Kumar2

1 M.Tech Student, Department of Computer Science Engineering & Application, Bhagwnat Institute of Technology, Muzaffarnagar, Uttar Pradesh, India. 2 Assistant Professor, Department of Computer Science Engineering & Application, Bhagwnat Institute of Technology, Muzaffarnagar, Uttar Pradesh, India.

Article Information

Published Online
September-October 2026
Pages
102-106
Article Type
Original Article
Check for updates
check update

Abstract

View PDF

Large language models (LLMs) are increasingly embedded in chatbots, document assistants, retrieval-augmented generation (RAG) pipelines, and tool-using applications. These systems may interpret untrusted user or retrieved text as instructions, creating a prompt-injection risk. A practical detector must identify attempts to redirect model behaviour while allowing harmless security explanations, quotations, and ordinary instructions. This paper proposes a lightweight and explainable text-screening framework based on word- and character-level TF-IDF features, classical machine-learning classifiers, and a transparent rule-based baseline. The study compares Logistic Regression, linear Support Vector Machines, and a combined word-character model under source-separated evaluation. Particular attention is given to hard-benign inputs, controlled obfuscation, duplicate leakage, calibration, and inference cost. Candidate data sources include public prompt-injection examples, NotInject-related resources, and context-rich benchmark materials, subject to access, label, overlap, and licence checks. The framework returns a risk estimate, a concise evidence summary, and a review recommendation for uncertain inputs. It is intended as a screening layer, not a replacement for instruction separation, access control, least privilege, or human approval. Since implementation and testing are proposed work, no accuracy or performance improvement is claimed in advance. The intended contribution is a reproducible low-compute evaluation of when compact detectors are useful, where they over-block benign text, and how reliably their behaviour transfers to unseen sources.

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 2582-8746
  • Open Access
  • Peer Reviewed
  • Plagiarism Checked
  • Google Scholar
Submit Paper