Empirical evaluation of six mainstream LLMs under multilingual and obfuscated prompt injection attacksAn Empirical Evaluation of Prompt Injection Vulnerabilities in Large Language Models Across Multilingual and Obfuscated Attack Scenarios
The authors evaluate six LLMs' compliance with phishing and keylogging prompts: out of 15,540, full compliance 68.76%, fulfillment 80.84%.
- Public or local LLMs can be used to generate phishing emails, phishing web pages, and keylogging programs. The authors state that existing evaluations mostly focus on English and direct malicious requests, and there is little systematic evidence on how language and character encoding change compliance.
- Prompts are divided into direct requests and elaborate ones embedded in legitimate scenarios, covering phishing emails, web pages, and keyloggers. Four languages were translated via DeepL; Base64, ROT13, and Hex encode only the malicious behavior segment. Six black-box models were sampled 10 times per combination under default settings, with human annotation of full compliance, delayed assistance, and refusal.
- Among 15,540 responses, full compliance is 68.76%, and adding delayed assistance brings the fulfillment rate to 80.84%. The authors state that all six models have fulfillment rates no lower than 70%; non-English is higher than English, elaborate phishing prompts are higher than direct prompts, and encoding reduces but does not eliminate malicious outputs.
- The authors state that semantic quality and utility evaluation of responses are outside the scope of this study and left for future work. The conclusion calls for multilingual safety coverage, semantic intent detection, and resilience to adaptive and multi-stage prompt engineering. The experiments cover six black-box models, four languages, three encodings, and 15,540 human-annotated samples; the paper does not report sampling temperature or annotation agreement.
- Evaluated models
- DeepSeek-V3.2Gemini 2.5 FlashGPT-5 MiniGrok-4-1-Fast (Non-Reasoning)Meta Llama 4 Scout InstructQwen 3 235B A22B Instruct
- Benchmarks
- author prior prompt dataset for phishing emails, phishing webpages, and keyloggers
- Metrics
- Full complianceStalling assistanceRefusalFulfillmentWarning rate
An empirical evaluation tested six LLMs—DeepSeek, GPT, Gemini, Grok, Llama, and Qwen—under multilingual, multi-character-encoding direct and multi-stage obfuscated prompt injection attacks, finding systematic vulnerabilities in all tested models. Direct prompt injection can frequently induce models to generate phishing content, websites, and malware; carefully crafted prompts lead to higher malicious compliance, especially in phishing scenarios, with DeepSeek, Gemini, and Grok particularly susceptible under complex instructions. Non-English language compliance is consistently higher than English, exposing a significant gap in multilingual safety alignment; simple character encodings reduce malicious output but do not eliminate it.
Paper analysis
What problem does this paper attempt to solve?
Six black-box LLMs still comply substantially with multilingual and encoded phishing and keylogger prompts.
To what extent can publicly available or locally deployed large language models be induced by prompts to generate phishing emails, phishing webpages, and keylogger programs.
- Scenario: The authors state that models are being used to generate phishing content, deceptive websites, and malicious code at scale, lowering the barrier to cybercrime. The OWASP Top 10 for LLM Applications lists prompt injection as the most critical vulnerability; the paper cites the December 2023 case where a Chevrolet dealership's ChatGPT customer service was manipulated into seemingly agreeing to sell a vehicle for $1.
- Existing gaps: The authors state that alignment training, safety policies, and prompt filtering are still in use, but public evaluations mostly focus on English and simpler direct malicious requests. There is little systematic evidence on how compliance varies in Turkish, Russian, or with Base64, ROT13, or hexadecimal.
- Hypothesis: When semantic intent is unchanged, embedding requests in legitimate appearances such as security awareness training, red team evaluations, or academic research, and avoiding terms that easily trigger filters, will increase malicious compliance rates.
- This paper's approach: Provides an evaluation framework that measures compliance of six models for three types of malicious outputs and compares four natural languages and three lightweight encodings.
- Threat model:
- Target: Phishing emails supporting social engineering, phishing webpages for credential harvesting, and keylogger programs that can be compiled and executed on target systems.
- Knowledge: Interacts through the normal text channel of public or local models; treated as black-box, observing only text outputs.
- Capability: Can rewrite instructions, switch languages, or add simple obfuscation; cannot modify model parameters, system-level prompts, or provider safety controls.
- Victim systems: DeepSeek, GPT, Gemini, Grok, Llama, and Qwen; locally deployable models are deployed via Replicate without modifying security-related settings.
What related research exists?
Related work covers phishing, malware, injection defenses, and safety benchmarks; this paper adds language and encoding measurements.
The literature is discussed in four groups: phishing, malware, prompt injection, and safety benchmarks. The authors position this paper on measuring malicious compliance, not on new attacks or new defenses.
- Phishing and social engineering: Fujima et al. (2023) analyze linguistic features of phishing emails related to ransomware; Wang and Lutchkus (2023) discuss cognitive biases. Sayyafzadeh et al. (2024) and Campesato (2023) address emotional manipulation and socially credible communication. The authors state that the realism and success rate of LLM phishing relative to human-authored content still lacks systematic benchmarks; they also state that tools such as APOLLO (Desolda et al., 2025, using GPT-4) focus on detection rather than using LLMs as automated phishing agents. The authors state that this paper fills the gap for multilingual scenarios and encoded prompts aimed at bypassing defenses.
- Malware: Warikoo (2023) and Yadav et al. (2022) describe ransomware monetization pipelines and how automation lowers the skill barrier. Böke and Torka (2025), Huang et al. (2024), and Sapra et al. (2013) discuss code obfuscation, mobile malware targeting LLM applications, and bypassing keystroke detection. The authors state that end-to-end generation demos and controlled experiments quantifying success rates against modern defenses remain scarce; this paper reports cross-model keystroke prompt compliance.
- Injection, alignment, and multilingual jailbreaks: OWASP Top 10:2021 and its mapping to CWE Top 25:2023 provide classification references. Lan et al. (2025) do detection; Prompt-G (Pingua et al., 2024), Signed-prompt (Suo, 2024), and dynamic moving target defense (Panterino and Fellington, 2024) are mitigation approaches. HarmBench (Mazeika et al., 2024) and AdvBench are used for red teaming and refusal elicitation; the authors state that this study requires different prompt schemes and thus uses prior datasets. Yong et al. (2024), Deng et al. (2024), and Yuan et al. (2024) report that low-resource languages, multilingualism, and cipher-style prompts alter bypass behavior. StrongREJECT (Souly et al., 2024) notes that seemingly compliant outputs may lack executable or semantically meaningful harmful content.
- Empirical safety benchmarks: Work on system robustness under unsafe prompts, Bioinfo-Bench, and MedAgentBench measure reliability with large-scale or domain-specific tasks. Kant and Rana (2025) and OSPC (Cai, 2024) do harmful content detection. The authors state that in these evaluations, multilingual robustness and code-based malicious compliance remain under-covered.
- Experimental controls: The paper does not use AdvBench, HarmBench, Signed-prompt, or other defenses as control baselines. The controls are six models, direct versus elaborate, four languages, and three encodings. Prompts come from the authors' prior phishing and malware datasets.
The authors state that the paper's position is to simultaneously measure refusal and compliance across models, languages, encodings, and prompt frameworks, without evaluating the semantic quality of compliant responses.
How does the paper address this problem?
Using direct and elaborate prompts, we sample ten times across six black-box models in four languages and three encodings.
The authors do not train new models or change safety settings, but measure malicious compliance on black-box interfaces with fixed templates. They compare direct and elaborate prompts, as well as languages and lightweight encodings.
Adversarial Assumptions
- Channel and permissions: The adversary uses the standard text interface of public or local models, can iteratively rewrite, change language, or do simple obfuscation; cannot change parameters, system-level prompts, or provider safety controls.
- Target outputs: Phishing emails supporting social engineering, phishing web pages for credential collection, and compilable/executable keylogging programs.
- Correspondence with abstract wording: The abstract writes direct and multi-stage obfuscated attacks. The methods section operationalizes as direct/elaborate and encoding variants; each is an independent generation, not a multi-turn conversation.
Prompt Set
- Source and counts: Templates come from the authors' previous dataset. Direct phishing emails 7, elaborate phishing emails 6; direct phishing web pages 7, elaborate phishing web pages 6; direct keyloggers 6, elaborate keyloggers 5.
- direct: Explicitly requests malicious outputs, e.g., phishing email text or malware source code.
- elaborate: The same underlying request is embedded in a legitimate-looking wrapper such as security awareness training, red-team evaluation, or academic research, and avoids obvious malicious terminology. The authors use it to formalize the hypothesis that "legitimate, professional phrasing increases compliance while semantic intent remains unchanged."
Languages, Encodings, and Sampling
- Languages: English, Turkish, Russian, Simplified Chinese. Translated via DeepL, requiring preservation of semantic intent, pragmatic force, and scenario realism.
- Encodings: Base64, ROT13, Hex. Only the specified malicious behavior segment is transformed; surrounding instructions remain in English. The authors state this simulates bypassing surface-level keyword filters with lightweight obfuscation, without requiring the model to decode arbitrary binary. Transformations implemented in Python.
- Models: DeepSeek-V3.2, Gemini 2.5 Flash, GPT-5 Mini, Grok-4-1-Fast (Non-Reasoning), Meta Llama 4 Scout Instruct, Qwen 3 235B A22B Instruct. All black-box; locally deployable models uniformly deployed via Replicate, without changing safety-related settings.
- Replication: Each prompt template, condition (language or encoding), and target model is independently sampled 10 times under default inference settings. No system prompt or sampling parameter adjustments. Total 15,540 outputs.
Annotation and Metrics
- Three categories: One human expert annotates, three mutually exclusive categories. Full compliance means directly producing the requested malicious payload. Stalling assistance means not giving the final payload but providing specific, actionable guidance that can facilitate the attack. Refusal means refusing without substantive support.
- Warning label: Whether there is an explicit ethical or legal warning, such as illegality, consent, privacy, or policy restrictions.
- Derived rates: Fulfillment rate is defined as full compliance plus stalling assistance. Also report refusal rate and warning rate, and aggregate at global, model, condition, category, and cross levels.
- What is not judged: The authors state they do not evaluate the semantic quality or usefulness of compliant responses, nor do they perform manual utility checks on generated content.
What experiments did the paper conduct?
Of 15,540 samples, full compliance was 68.76% and fulfillment 80.84%; non-English and elaborate phishing were higher.
Experimental Setup
- Target models: DeepSeek-V3.2, Gemini 2.5 Flash, GPT-5 Mini, Grok-4-1-Fast (Non-Reasoning), Meta Llama 4 Scout Instruct, Qwen 3 235B A22B Instruct. Table II writes the first two as Deepseek and Grok-4-1-Fast-Non-Reasoning. All are called as black-box; local models go through Replicate, with safety settings unchanged (Section III.C).
- Prompts: six template types from the prior dataset: phishing emails, 7 direct and 6 elaborate; phishing webpages, 7 and 6; keyloggers, 6 direct and 5 elaborate (Section III.B).
- Conditions: English, Turkish, Russian, Simplified Chinese, plus Base64, ROT13, Hex. Translation uses DeepL; encoding changes only the malicious-behavior segment, with surrounding instructions kept in English (Section III.D).
- Repetitions and denominators: each template × condition × model is independently sampled 10 times, default reasoning, no system prompt or sampling parameter adjustments, 15,540 total (Section III.E). The Table II caption states 2 590 per model; the Table III caption states 2 220 per language or encoding.
- Metrics: full compliance, delayed assistance, refusal; fulfillment rate is the sum of the first two; whether an ethical or legal warning is present is also recorded (Section III.F).
- Judging: one human expert, not an LLM judge. The paper does not report specific values such as sampling temperature, nor annotation agreement.
Main Results
Table I: of 15 540, full compliance 10 685 (68.76%), delayed assistance 1 878 (12.08%), refusal 2 977 (19.16%), fulfillment rate 80.84%. Model results per Table II:
Swipe horizontally to read the table
Model (Table II wording) Full compliance Delayed assistance Refusal Fulfillment rate Warning Deepseek 84.32% 4.09% 11.58% 88.42% 44.67% Gemini 2.5 Flash 77.72% 4.09% 18.19% 81.81% 50.97% Grok-4-1-Fast-Non-Reasoning 72.55% 2.39% 25.06% 74.94% 55.02% Qwen 3 235B A22B Instruct 67.84% 11.78% 20.39% 79.61% 63.44% Meta Llama 4 Scout Instruct 66.02% 19.92% 14.05% 85.95% 43.59% GPT-5 Mini 44.09% 30.23% 25.68% 74.32% 70.66% - The authors state that full compliance differs by 40.23 percentage points between the two extremes; DeepSeek has little delayed assistance and the highest fulfillment, while GPT-5 Mini has the lowest full compliance but high delayed assistance, so its fulfillment is still not low.
- The Discussion states that no model has a fulfillment rate below 70%; the authors state that even the more cautious GPT-5 Mini, counting delayed assistance, still fulfills nearly three quarters of requests.
- The authors consider full compliance negatively correlated with warning rate. Section IV.A: 43.71% of full-compliance responses carry a warning, versus 61.02% for delayed assistance and 90.29% for refusal. The authors consider that existing mechanisms do not separate refusal and warning.
Language and Encoding Effects
- What was measured: Table III aggregates the four languages and three encodings across the six models, all categories and all iterations.
- Results: full compliance is, in order, Turkish 80.18%, Simplified Chinese 77.52%, Russian 73.92%, English 71.31%, Base64 65.59%, ROT13 58.38%, Hex 54.41%. The natural-language average is 75.73%, the encoding average 59.46%, a difference the authors give as 16.27 percentage points. Hex's fulfillment rate is still 72.16%.
- Authors' interpretation: the authors state that non-English full compliance is higher than English for all six models, and consider this consistent with the hypothesis that "safety fine-tuning and red-teaming are mainly in English, with weaker coverage of other languages," creating a structural disadvantage for non-English users. The authors consider that models are at least partially familiar with common encodings, so simple obfuscation is insufficient to guarantee safety; the Discussion also states that this gap averages over 16 percentage points.
Prompt Category and Iteration Stability
- Categories: in Table IV, elaborate phishing emails have 83.06% full compliance and 17.18% warning; elaborate phishing webpages have 80.52% and 37.58%. Direct phishing emails have the lowest full compliance, 59.08%, with 49.66% warning. The direct category averages 62.01% full compliance, the elaborate category 76.69%.
- Exception: for keyloggers, elaborate full compliance is 64.48%, not higher than the direct category's 64.88%; the two categories' warnings are 88.81% and 91.03%. The authors limit the claim that "elaborate more easily elicits the payload and triggers fewer warnings" to the phishing scenario. The values annotated in Figure 1 are the same as Table IV; the caption states that elaborate, context-rich prompts systematically outperform direct prompts, especially for phishing emails and webpages.
- Stability: global full compliance across the ten iterations ranges between 68.02% and 69.56%. The authors state that models did not become more conservative or more permissive from repeated similar malicious prompts.
Cross-Condition Extremes
- Authors' examples (Section IV.E): Meta Llama 4 Scout Instruct has 98.11% full compliance in English and 97.84% in Simplified Chinese; DeepSeek 96.22% on Hex; Gemini 2.5 Flash 100.00% on elaborate phishing emails; DeepSeek exceeds 98% on both elaborate phishing types.
- Authors' interpretation: the authors state that the vulnerability is not limited to a single configuration; high-risk behavior is dispersed rather than concentrated in one outlier.
- Table scope: these are examples; the paper does not give a complete model × language × category cross table.
Other Ablations and Analyses
- 8,504 (54.72%) have an explicit ethical or legal warning, and 7,036 (45.28%) do not (Section IV.A).
- The proportions of refusal, delayed assistance and full compliance accompanied by a warning are 90.29%, 61.02% and 43.71%.
- ROT13 has a warning rate of 35.23%, the lowest among the Table III conditions; the paper does not explain this separately.
- The highest condition fulfillment rate is Turkish 87.57%, the lowest Hex 72.16% (Table III).
- The highest category fulfillment rate is elaborate phishing webpages 89.92%, the lowest direct phishing emails 73.10% (Table IV).
- The model full-compliance range the authors give is 40.23 percentage points (Section IV.B). The paper has no separate hyperparameter ablation.
What are some points that can be further explored?
The authors leave payload quality evaluation as future work and call for multilingual and intent-layer defenses.
Limitations and future directions noted by the authors
- Payload quality out of scope: The authors state that evaluating the semantic quality or usefulness of compliant responses is beyond the scope of this study; no manual verification or utility evaluation of generated responses is performed. The authors consider response quality evaluation as a complementary future direction (Section II.C).
- Defense directions: The conclusion states that stronger defenses are needed, including multilingual safety coverage, deeper semantic intent detection, and resilience against adaptive and multi-stage prompt engineering attacks. The introduction states that Section VI provides future research directions (Section VI, Section I).
Experimental coverage
- The tested models are DeepSeek-V3.2, Gemini 2.5 Flash, GPT-5 Mini, Grok-4-1-Fast (Non-Reasoning), Meta Llama 4 Scout Instruct, and Qwen 3 235B A22B Instruct, totaling 6; all are called as black-box through public interfaces, with local models using Replicate and not changing safety settings (Section III.C).
- Conditions are English, Turkish, Russian, and Simplified Chinese, as well as Base64, ROT13, and Hex; encoding only transforms the malicious behavior segment, with surrounding instructions kept in English; translations are generated by DeepL (Section III.D).
- Prompts are phishing emails with 7 direct and 6 elaborate, phishing webpages with 7 and 6, and keyloggers with 6 direct and 5 elaborate; each combination is independently generated 10 times, totaling 15,540 responses (Section III.B, III.E).
- Judgment is a three-way behavior classification plus warning labels by one human expert, not an LLM judge; the authors state that the semantic quality or executability of payloads is not evaluated (Section III.F, II.C).
- The paper does not report specific parameters such as sampling temperature, only stating default inference and no adjustment of system prompts or sampling parameters (Section III.E); the paper does not report whether translations were manually proofread or annotation consistency.
Summarize the main content of the paper
All six models have fulfillment rates no lower than 70%, with higher compliance for elaborate phishing and non-English prompts.
This empirical evaluation measures six black-box LLMs: how often phishing email, phishing webpage, and keylogger requests are assisted under default safety policies. The adversary can only rewrite prompts, switch languages, or apply light encoding through the text interface, and cannot change parameters or provider safety controls.
- Prompts are divided into direct requests and elaborate ones embedded in training, red teaming, or academic appearances. Languages are English, Turkish, Russian, and Simplified Chinese; encodings are Base64, ROT13, and Hex, encoding only the malicious behavior segment. Each combination is independently sampled 10 times and manually labeled as full compliance, delayed assistance, or refusal.
- Among 15,540 responses, full compliance is 68.76%, delayed assistance is 12.08%, and the fulfillment rate is 80.84% (Table I). The authors state that about four-fifths of malicious requests receive at least partial support.
- Full compliance in Table II ranges from 44.09% for GPT-5 Mini to 84.32% for DeepSeek. The authors state that no model has a fulfillment rate below 70% and associate higher compliance with fewer warnings.
- Turkish has 80.18% full compliance, English 71.31%; Hex still has 54.41% (Table III). The authors state that all six models have higher rates in non-English languages, and encoding reduces but does not eliminate malicious outputs.
- Elaborate phishing emails have 83.06% full compliance and 17.18% warnings; direct phishing emails have 59.08% and 49.66% (Table IV). For keyloggers, elaborate is not higher than direct. Global full compliance across ten iterations ranges between 68.02% and 69.56%.
- The authors conclude that current alignment is uneven across languages and prompt packaging; future work needs multilingual coverage, semantic intent detection, and resilience against adaptive, multi-stage prompt engineering. Whether payloads are truly executable is explicitly left out of scope.