TLDR: Sentra-Guard is a new defense system designed to protect large language models (LLMs) from jailbreak and prompt injection attacks in real-time. It uses a hybrid approach combining semantic understanding, machine learning classifiers, and human feedback, offering multilingual detection across over 100 languages. The system boasts a 99.96% detection rate and a very low attack success rate (0.004%), significantly outperforming existing defenses, while maintaining low latency for practical deployment.
Large Language Models (LLMs) like GPT-4, Claude, Gemini, and LLaMA have revolutionized how we interact with technology, offering capabilities from answering complex questions to generating code. However, this rapid expansion into everyday applications and enterprise systems has brought significant security challenges, particularly from adversarial attacks known as jailbreaks and prompt injections.
Jailbreaking involves cleverly manipulating prompts to bypass the ethical safeguards built into LLMs, causing them to generate responses they would normally filter. These tactics often include role-playing, obscuring context, or embedding fictional scenarios to trick the AI. Prompt injection attacks, on the other hand, subtly embed malicious instructions within trusted contexts, redirecting the model’s behavior without the user’s explicit knowledge. Both threats undermine AI safety and pose risks of misinformation, misuse, and unauthorized information disclosure.
Addressing these critical vulnerabilities, a new real-time defense system called Sentra-Guard has been introduced. This innovative framework is designed to detect and mitigate both jailbreak and prompt injection attacks targeting LLMs. Sentra-Guard employs a sophisticated hybrid architecture that combines several advanced techniques to offer robust protection.
How Sentra-Guard Works
At its core, Sentra-Guard utilizes a hybrid approach. It leverages SBERT embedding representations, which capture the semantic meaning of prompts, indexed by FAISS for efficient retrieval. This is combined with fine-tuned transformer classifiers, specialized machine learning models that distinguish between normal and adversarial language inputs. This allows the system to identify malicious prompts whether they are direct or cleverly disguised.
A key innovation is its classifier-retriever fusion module, which dynamically calculates context-aware risk scores. These scores estimate the likelihood of a prompt being adversarial based on its content and context. This multi-layered evaluation ensures a comprehensive assessment of potential threats.
One of Sentra-Guard’s standout features is its multilingual resilience. It includes a language-agnostic preprocessing layer that automatically translates non-English prompts into English for semantic evaluation. This enables consistent and effective detection across more than 100 languages, crucial in a globally connected digital landscape where attackers might use code-mixing or foreign languages to evade detection.
The system also incorporates a Human-in-the-Loop (HITL) feedback mechanism. This means that decisions made by the automated system are reviewed by human experts, allowing for continuous learning and rapid adaptation to new and evolving adversarial tactics. Sentra-Guard maintains an evolving knowledge base of both benign and malicious prompts, constantly enhancing its detection reliability and reducing false positives.
Also Read:
- Unmasking Self-Jailbreak: A Framework for Safer Large Reasoning Models
- Unmasking a Hidden Threat: How Prompt Compression Exposes LLM Agents to New Attacks
Performance and Impact
The evaluation results for Sentra-Guard are impressive. It boasts a 99.96% detection rate (with an AUC of 1.00 and F1 score of 1.00) and an exceptionally low attack success rate (ASR) of only 0.004%. This performance significantly surpasses leading baseline defenses such as LlamaGuard-2 (1.3% ASR) and OpenAI Moderation (3.7% ASR).
Unlike many ‘black-box’ defense approaches, Sentra-Guard is transparent, fine-tunable, and compatible with a wide range of LLM backends, including OpenAI, Anthropic, Google, and Meta’s LLaMA. Its modular design supports scalable deployment in both commercial and open-source environments, making it a practical solution for securing modern LLM deployments.
The framework maintains an average inference latency of just 47 milliseconds per query, making it suitable for real-time moderation and integration into LLM pipelines without sacrificing usability. This low latency, combined with its high accuracy and multilingual capabilities, establishes Sentra-Guard as a new state-of-the-art in adversarial LLM defense.
For more in-depth information, you can read the full research paper: Sentra-Guard: A Multilingual Human-AI Framework for Real-Time Defense Against Adversarial LLM Jailbreaks.


