Badgujar, Shreyas Kiran (2025) Analyzing and Mitigating Prompt Injection Attacks in AI-driven Cloud Applications. Masters thesis, Dublin, National College of Ireland.
Preview |
PDF (Master of Science)
Download (870kB) | Preview |
Preview |
PDF (Configuration Manual)
Download (719kB) | Preview |
Abstract
Large Language Models (LLMs) are becoming more directly involved with interactive applications, but they are susceptible to prompt injection attacks that influence system response. The current literature primarily categorizes attacks or introduces single-layer defences, which provide less protection in real-time. In this study, a multi-stage defence pipeline which mix the TF-IDF and Logistic Regression–based classifier, Structured Query Filtering, prompt sanitisation, and the controlled GPT-4 processing is built to confirm safe and consistent handling of the user inputs. The Experimental results show 94.6% accuracy, 92.3% precision, and 93.1% recall, determining the strong recognition ability. The model improves the secure implementation of LLM-powered applications by ensuring secure, flexible and efficient protection against changing threats of prompt injection.
Actions (login required)
![]() |
View Item |
Tools
Tools