Answers are grounded in this paper and cite their sources.
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.
No takes yet. Share an insight, caveat, or question.
Vats et al. (2026) studied this question.
Synapse has enriched 5 closely related papers on similar clinical questions. Consider them for comparative context: