Crossref DOIMemberCiteFactoropen accessissn
SJIF Impact Factor 8.659 | ISSN: 2582-3930
IJSREM Logo

International Journal of Scientific Research in Engineering and Management

(Gateway to Global Scholars - An International, Scholarly, Multi-Disciplinary, Open Access Journal)

Peer-Reviewed Journal Designed to Meet UGC's Quality Parameters

HomeCurrent IssuePast IssuesPay OnlineConferencesEditorial BoardAbout UsContact Us
IJSREM

Loading article...

Follow Us

  • Google Scholar
  • ResearchGate
  • Academia.edu
  • Mendeley
  • LinkedIn
  • Facebook
  • Instagram

Journal Policies

  • Peer Review Policy
  • Publication Ethics
  • Copyright Infringement
  • Refund & Cancellation Policy
  • Terms and Conditions
  • Privacy Policy

Journal Identifiers & Licenses

  • ISSN Verified: 2582-3930ISSN Verified: 2582-3930
  • Crossref DOI: 10.55041Crossref DOI: 10.55041
  • SJIF Ranking: 08.659SJIF Ranking: 08.659
  • Licensed under CC BY 4.0Licensed under CC BY 4.0
  • ISO Certification: 9001:2015ISO Certification: 9001:2015
  • Indexed & Cited In: Google ScholarIndexed & Cited In: Google Scholar

Contact Us

International Journal of Scientific Research in Engineering and Management (IJSREM)

#62/1, New No 7, 1st Cross, 2nd Main, Ganganagar, R T Nagar, Bangalore North, Bangalore, Karnataka, India – 560032
[email protected]+91 93911 67991
logos
logos
Working Hours

Mon – Sat: 9:00 AM – 6:00 PM

Sunday: 10:00 AM – 4:00 PM

+91 93911 67991

© 2026 IJSREM – International Journal of Scientific Research in Engineering and Management. This is an open-access journal. Articles are published under the Creative Commons Attribution (CC BY 4.0) License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.

DisclaimerPrivacy PolicyTerms and Conditions
ArticlePeer ReviewedOpen AccessPlagiarism Passed
Paper ID:IJSREM68040

A Context-Aware Framework for Detecting Prompt Injection in Retrieval-Augmented AI Systems

Stream/Area:

-

Subject:

-

Paper ID:

IJSREM68040

Volume:

10 |

10 |

Oct 2026

Pages:

1-16

Publication Frequency:

Monthly (12 issues per year)

DOI
Digital Object Identifier
Not assigned

License:International Journal of Scientific Research in Engineering and Management follows the Creative Commons Attribution 4.0 (CC BY 4.0) License, allowing free use and distribution with proper attribution.

Share this article:

Authors

NG

Narmadha G

Department of Computer Science and Engineering

Kings College of Engineering, Punalkulam

Download Author Certificate
ASD

Atchaya Sri. D

Department of Computer Science and Engineering

Kings College of Engineering, Punalkulam

Download Co-Author Certificate
AAS

Abikayil Aarthi. S

Department of Computer Science and Engineering

Kings College of Engineering, Punalkulam

Download Co-Author Certificate
LPK

Lakshmi Priya. K

Department of Computer Science and Engineering

Kings College of Engineering, Punalkulam

Download Co-Author Certificate
MS

Merudula. S

Department of Computer Science and Engineering

Kings College of Engineering, Punalkulam

Download Co-Author Certificate
LK

Lavanya. K

Department of Computer Science and Engineering

Kings College of Engineering, Punalkulam

Download Co-Author Certificate

Author Services & Downloads

Full ArticlesAcceptance Certificate

Abstract

Retrieval-augmented generation (RAG) connects large language models (LLMs) to external documents, websites, repositories, and organizational knowledge bases. Although retrieval improves factual grounding, it also exposes the model to untrusted text that may contain instructions designed to override the application’s intended behaviour. This threat, commonly described as prompt injection, may appear directly in a webpage or indirectly inside a file, email, code comment, or hidden markup. This paper proposes PromptShield, a context-aware screening framework placed between retrieval and generation. It combines provenance tagging, structural parsing, instruction-intent classification, risk scoring, and policy-aware sanitization. Instead of blocking every imperative sentence, it examines whether a passage targets the assistant, conflicts with the user’s task, requests a protected action, or attempts to change the instruction hierarchy. Low-risk evidence is retained, suspicious spans may be sanitized, and high-risk passages are quarantined. The paper defines the threat model, system architecture, dataset plan, candidate detection methods, evaluation metrics, and deployment safeguards. As no implementation experiment is claimed, the results section specifies a reproducible evaluation plan rather than reporting invented measurements. PromptShield aims to provide a practical foundation for secure RAG applications while balancing attack detection, evidence retention, latency, and usability.

KEYWORDS

Prompt Injection Retrieval-Augmented Generation Large Language Models AI Security Trust Boundaries Adversarial NLP Content Sanitization.

Cite This Article

Narmadha G, Atchaya Sri. D, Abikayil Aarthi. S, Lakshmi Priya. K, Merudula. S, Lavanya. K, "A Context-Aware Framework for Detecting Prompt Injection in Retrieval-Augmented AI Systems," International Journal of Scientific Research in Engineering and Management, vol. 10, no. 10, pp. 1-16, Oct 2026.

Full Article/Conclusion

PromptShield proposes a context-aware approach to prompt-injection screening in retrieval-augmented AI systems. Its main idea is to preserve the distinction between instructions that govern the application and text retrieved as evidence. Provenance, structural analysis, semantic classification, risk scoring, and policy-aware sanitization work together to reduce the chance that untrusted passages redirect the model. The framework also requires independent tool authorization, careful logging, source-separated evaluation, and explicit measurement of benign-evidence retention. The approach is modular and suitable for a final-year CSE prototype that begins with local documents and gradually adds classifier-based screening. Because the framework has not yet been experimentally validated, its effectiveness remains a research question rather than a proven result. A completed implementation should use a well-labelled benchmark, report actual metrics, analyse errors, and state its limitations clearly. Secure RAG requires layered controls and continuous evaluation; prompt screening is valuable, but it cannot replace application-level security

References

[1]     P. Lewis et al., “Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks,” Advances in Neural Information Processing Systems, vol. 33, pp. 9459–9474, 2020. [2]     K. Greshake et al., “Not What You’ve Signed Up For: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injection,” in Proc. AISec Workshop, 2023. [3]     OWASP Foundation, “LLM01: Prompt Injection,” OWASP Top 10 for Large Language Model Applications, 2025. [4]     T. Brown et al., “Language Models are Few-Shot Learners,” Advances in Neural Information Processing Systems, vol. 33, pp. 1877–1901, 2020. [5]     S. Yao et al., “ReAct: Synergizing Reasoning and Acting in Language Models,” in Proc. International Conference on Learning Representations, 2023. [6]     L. Ouyang et al., “Training Language Models to Follow Instructions with Human Feedback,” Advances in Neural Information Processing Systems, vol. 35, 2022. [7]     A. Vaswani et al., “Attention Is All You Need,” Advances in Neural Information Processing Systems, vol. 30, 2017. [8]     T. Wolf et al., “Transformers: State-of-the-Art Natural Language Processing,” in EMNLP: System Demonstrations, pp. 38–45, 2020. [9]     M. Mitchell et al., “Model Cards for Model Reporting,” in Proc. Conference on Fairness, Accountability, and Transparency, pp. 220–229, 2019. [10]  T. Gebru et al., “Datasheets for Datasets,” Communications of the ACM, vol. 64, no. 12, pp. 86–92, 2021.

Editorial & Review Transparency

Publication Date

10/16/2026

Peer Review Type

Double-Blind Peer Review

Review Rounds: 2

Documents

Review Report (Confidential)
Copyright Form (Office)

Article Metrics & Impact

Article Views

1

Total views since publication

PDF Downloads

5

Total downloads since publication

Geographic Reach

5

Indexing, Archiving & Preservation

Google Scholar
Academia
ResearchGate
Crossref
SSRN
Semantic Scholar
Thomson Reuters
WorldCat
Mendeley
OpenAlex
EBSCO
Zenodo

Digital Preservation: This article is permanently archived on Zenodo and complies with all data preservation standards across major indexing platforms.

Ethics, Compliance & Transparency

Plagiarism Screening

This manuscript has been checked for plagiarism using TurnitinPlagiarismChecker software.

Conflict of Interest

The authors declare no conflict of interest related to this research work.

Funding Information

No funding information available for this research.

Similar & Recommended Articles

Similar Articles by Topic

Related research in the same subject area

Loading similar articles...