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:IJSREM65186

ADVERSARIAL PROMPT INJECTION DETECTION SYSTEM

Stream/Area:

-

Subject:

-

Paper ID:

IJSREM65186

Volume:

10 |

6 |

Jun 2026

Pages:

1-7

Publication Frequency:

Monthly (12 issues per year)

DOI
Digital Object Identifier
10.55041/IJSREM65186

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

AKC

Anjali Krishna C

MASTER OF COMPUTER APPLICATION

NEHRU INSTITUTE OF INFORMATION TECHNOLOGY AND MANAGEMENT

Download Author Certificate

Mentors

 K.V. Indulekha

K.V. Indulekha

MASTER OF COMPUTER APPLICATION

NEHRU INSTITUTE OF INFORMATION TECHNOLOGY AND MANAGEMENT

Download Mentor Certificate

Author Services & Downloads

Full ArticlesAcceptance Certificate

Abstract

The rapid adoption of Large Language Models (LLMs) in enterprise, healthcare, education, and digital services has introduced new security challenges, among which prompt injection attacks have emerged as a critical threat. Prompt injection occurs when malicious or manipulated inputs override system instructions, causing an AI model to produce unintended, unsafe, or unauthorized responses. This project presents the design and development of a hybrid prompt injection detection system that combines rule-based pattern matching with AI-powered classification using Gemini 2.5 Flash to improve the accuracy and reliability of threat detection.The proposed system analyzes user prompts through multiple detection layers. The rule-based component identifies known attack patterns, suspicious keywords, and common jailbreak techniques, while the Gemini-based classifier evaluates contextual and semantic characteristics that may indicate sophisticated prompt injection attempts. By integrating both approaches, the system leverages the speed and transparency of rule-based methods together with the adaptability and contextual understanding of advanced language models. The project aims to enhance the security of LLM-powered applications by detecting and classifying malicious prompts before they reach the target model. The architecture is designed to be modular, scalable, and capable of graceful degradation, ensuring continuous operation even when one detection component becomes unavailable. Experimental evaluation demonstrates the effectiveness of the hybrid approach in identifying prompt injection attacks while reducing false positives and improving overall detection performance. This system contributes to the growing field of AI security by providing a practical and efficient solution for safeguarding LLM applications against prompt injection threats, thereby improving trust, reliability, and safe deployment of artificial intelligence systems in real-world environments.

KEYWORDS

Artificial Intelligence Career Guidance Resume Builder Interview Preparation Generative AI Career Development.

Cite This Article

Anjali Krishna C, K.V. Indulekha, "ADVERSARIAL PROMPT INJECTION DETECTION SYSTEM," International Journal of Scientific Research in Engineering and Management, vol. 10, no. 6, pp. 1-7, Jun 2026. https://doi.org/10.55041/IJSREM65186

Full Article/Conclusion

This paper presented the design and implementation of an Adversarial Prompt Injection Detection System, a security solution developed to protect Large Language Models (LLMs) from malicious prompt injection attacks. The proposed system integrates rule-based pattern matching with Google Gemini AI to identify and classify potentially harmful prompts before they are processed by the language model. The implementation results demonstrate that the hybrid detection approach effectively identifies a wide range of prompt injection attacks, including instruction override, jailbreak attempts, role manipulation, prompt leakage, and hidden command injection. By combining regular expression-based detection with semantic analysis, the system provides improved detection accuracy while maintaining efficient real-time performance. The proposed solution demonstrates the practical application of artificial intelligence in enhancing the security and reliability of LLM-based applications. The lightweight Streamlit interface and modular architecture make the system easy to deploy, maintain, and extend. Overall, the developed framework provides an effective security layer that helps reduce the risk of adversarial prompt manipulation and supports the safe adoption of AI-powered systems across various application domains.

References

[1] S. Russell and P. Norvig, Artificial Intelligence: A Modern Approach, 4th ed., Pearson, 2021. [2] T. Brown et al., "Language Models are Few-Shot Learners," Advances in Neural Information Processing Systems (NeurIPS), vol. 33, pp. 1877–1901, 2020. [3] J. Wei et al., "Finetuned Language Models Are Zero-Shot Learners," International Conference on Learning Representations (ICLR), 2022. [4] Google DeepMind, "Gemini API Documentation," Google AI for Developers, 2025. Available: https://ai.google.dev [5] Streamlit Inc., "Streamlit Documentation," 2025. Available: https://docs.streamlit.io [6] Python Software Foundation, "Python 3.11 Documentation," 2025. Available: https://docs.python.org/3 [7] OWASP Foundation, "OWASP Top 10 for Large Language Model Applications," 2025. Available: https://owasp.org/www-project-top-10-for-large-language-model-applications/ [8] N. Carlini, F. Tramer, E. Wallace, M. Jagielski, A. Herbert-Voss, K. Lee, A. Roberts, T. Brown, D. Song, U. Erlingsson, A. Oprea, and C. Raffel, "Extracting Training Data from Large Language Models," USENIX Security Symposium, pp. 2633–2650, 2021. [9] Hugging Face Inc., "Transformers Documentation," 2025. Available: https://huggingface.co/docs/transformers [10] A. Greshake, M. Abdelnabi, S. Mishra, and others, "More than You've Asked For: A Comprehensive Analysis of Novel Prompt Injection Threats to Application-Integrated Large Language Models," arXiv:2302.12173, 2023.

Editorial & Review Transparency

Publication Date

6/19/2026

Peer Review Type

Double-Blind Peer Review

Review Rounds: 2

Documents

Review Report (Confidential)
Copyright Form (Office)

Article Metrics & Impact

Article Views

0

Total views since publication

PDF Downloads

3

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