计算机科学 > 密码学与安全
[提交于 2026年10月29日 (v1),最后修订于 2026年11月25日 (此版本, v6)]
标题:Systematic Evaluation of Adversarial Jailbreaking Attacks and Defenses Across Seven Large Language Models
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:Large language models (LLMs) deployed in safety-critical settings must withstand adversarial inputs designed to elicit harmful outputs. This study systematically evaluates five jailbreak attack families-direct requests, roleplay, hypothetical framing, instruction override, and obfuscation-across seven locally served open-weight LLMs: Llama-3-8B, Llama-3.1-8B, Llama-3.2-3B, Mistral-7B, Qwen2.5-7B, Gemma2-9B, and Phi-4-14B. We also assess four defense mechanisms-keyword blacklisting, self-reminder prompting, paraphrase-based sanitization, and perplexity-based filtering-on Mistral-7B and Llama-3.1-8B using a 20-prompt subset. Across 250 prompts per model, obfuscation achieved the highest pooled success rate (62.3%) when HARMFUL and PARTIAL responses were counted, although only 7.1% were rated HARMFUL. Hypothetical framing was the most successful attack family for three models, while obfuscation achieved nonzero success across all seven. However, the content judge remains unvalidated against human labels, and preliminary non-expert assessment indicated substantially lower harm rates; therefore, these findings are provisional. Model size was not a significant predictor of robustness (Spearman Rho = -0.64, p = 0.12, n = 7). Notably, the content judge found little difference between Llama-3 generations (17.2% vs. 18.4%), unlike the rule-based judge (16.8% vs. 40.8%). Self-reminder prompting showed the largest defense improvement, reducing attack success rates from 50% to 10% on Mistral-7B and from 45% to 5% on Llama-3.1-8B. These 40-percentage-point reductions were measured against matched no-defense runs using a rule-based judge with known limitations, making the results provisional. Code and prompts are publicly available at https://github.com/Mdniloykhan/jailbreak-eval-7llms, while model responses and judge outputs are available upon request.