Detecting Prompt Injection Attacks in Generative AI Systems: A Hybrid SIEM and One-Class SVM Framework
Abdulrahman A. Alshammari, Omar Alsaleh
King Saud University
Abstract
Prompt injection, ranked first in the OWASP Top 10 for Large Language Model (LLM) applications, enables adversaries to override system instructions and exfiltrate sensitive information by crafting inputs that blur the boundary between data and control. While application-layer defenses such as PromptShield and Prompt-G have advanced, they operate in isolation from enterprise Security Operations Center (SOC) infrastructure and lack the session-level visibility required to detect multi-turn fragmented campaigns. This paper presents a hybrid detection framework that instruments a Phi-3 Mini Instruct gateway to emit structured telemetry, correlates events in Elastic SIEM using four expert-authored detection rules, and augments rule coverage with a One-Class Support Vector Machine (OCSVM) trained exclusively on 1200 benign interactions. Evaluated against 1100 prompts (900 malicious from CySecBench, 200 benign from Stanford Alpaca), the framework achieves a precision of 0.971, a recall of 0.810, and an F1-score of 0.883, and it reduces the Attack Success Rate (ASR) to 19.0% with a Mean Time to Detection (MTTD) of 2.3 s under the evaluated Phi-3 Mini configuration. The OCSVM layer accounts for 162 of 243 incremental true positives over the baseline, identifying attacks whose behavioral feature vectors deviate from the benign manifold. The framework is architected around OpenAI-compatible gateway telemetry and is therefore designed for vendor-neutral integration; however, broader validation across model families, prompt templates, and application domains is required before making general claims about cross-model performance or production-scale effectiveness.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Enhancing security in LLM applications: a performance evaluation of early detection systemsInternational Journal of Information Security · 2026
- Scope-Gap Injection: Exploiting Evaluator Channel Blind Spots in the OpenClaw Agent Security CompetitionarXiv · 2026
- The Devil is in the Context: Nine Dimensions of Prompt Injection AttacksarXiv · 2026
- Detecting and Mitigating Query-Based System Prompt Leakage AttacksarXiv · 2026
- Prompt Injection Attacks on Large Language Models: A Survey of Attack Methods, Root Causes, and Defense StrategiesComputers, materials & continua/Computers, materials & continua (Print) · 2025
- INFUSE: A Unified Surface Benchmark for Indirect Prompt Injection in Agentic SystemsarXiv · 2026