IntentShield: A Semantic Framework for Detecting Obfuscated Jailbreak Attacks in Domain-Specific Large Language Models

Large Language Models (LLMs) are currently em-ployed in several applications such as healthcare, finance, ed-ucation, and law firms. The increasing application of LLMs raises concerns regard- ing security issues including jailbreak and prompt injection that involves malicious instructions embedded in seemingly harmless prompts. The attackers have the option to paraphrase their instructions, use role-playing scenarios, switch languages, tokenize the prompt, and encode different portions of the input. Such variations can render traditional safety filters ineffective. Keyword detection, hardcoded policies, and prior attack data could fail to detect any different iteration of the same malicious instructions. This paper introduces IntentShield which utilizes a semantic approach to detect obfuscated jail-break attacks within domain-specific Large Language Models. IntentShield does not rely on just plain text but also transformer representations to detect the intentions of the inputs. From a number of practical perspectives, the effectiveness of the approach is considered: detection capability, behavior in professional domains, false positives on legitimate prompts, resilience to unseen obfuscation techniques, and computational costs. From the test results, it is clear that the approach demonstrates high effectiveness in the domain-balanced test with frozen data. Nevertheless, the experiment of unseen obfuscation shows an essential vulnerability of the approach under some specific encoding technique of malicious intent.

Authors

Publication Details

Journal
Research Square
Published
2026-11-27
DOI
https://doi.org/10.21203/rs.3.rs-11879471/v1
Primary Topic
Adversarial Robustness in Machine Learning
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

IntentShield: A Semantic Framework for Detecting Obfuscated Jailbreak Attacks in Domain-Specific Large Language Models

Jay Bankar
Research Square
Adversarial Robustness in Machine Learning
preprint

IntentShield: A Semantic Framework for Detecting Obfuscated Jailbreak Attacks in Domain-Specific Large Language Models

Jay Bankar
preprint en

Abstract

Large Language Models (LLMs) are currently em-ployed in several applications such as healthcare, finance, ed-ucation, and law firms. The increasing application of LLMs raises concerns regard- ing security issues including jailbreak and prompt injection that involves malicious instructions embedded in seemingly harmless prompts. The attackers have the option to paraphrase their instructions, use role-playing scenarios, switch languages, tokenize the prompt, and encode different portions of the input. Such variations can render traditional safety filters ineffective. Keyword detection, hardcoded policies, and prior attack data could fail to detect any different iteration of the same malicious instructions. This paper introduces IntentShield which utilizes a semantic approach to detect obfuscated jail-break attacks within domain-specific Large Language Models. IntentShield does not rely on just plain text but also transformer representations to detect the intentions of the inputs. From a number of practical perspectives, the effectiveness of the approach is considered: detection capability, behavior in professional domains, false positives on legitimate prompts, resilience to unseen obfuscation techniques, and computational costs. From the test results, it is clear that the approach demonstrates high effectiveness in the domain-balanced test with frozen data. Nevertheless, the experiment of unseen obfuscation shows an essential vulnerability of the approach under some specific encoding technique of malicious intent.

Research Square
Adversarial Robustness in Machine Learning
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon