SafetySecurityAccountabilitycs.CR
Casting a SPELL: Sentence Pairing Exploration for LLM Limitation-breaking
Yifan Huang, Xiaojun Jia, Wenbo Guo, Yuqiang Sun, Yihao Huang, Chong Wang, Yang Liu
December 24, 2025
Proc. ACM Softw. Eng.
3 citations
Key Takeaways
-
LLMs enable both beneficial and harmful code generation: While AI-assisted coding tools democratize software development for legitimate developers, the same technology can be exploited by malicious actors to generate harmful software at scale, creating a significant security risk.
-
Current AI safety measures have substantial gaps in code security: The SPELL framework successfully bypassed security protections in major code models, achieving attack success rates as high as 83.75% for GPT-4.1, indicating that existing "alignment" efforts (techniques meant to prevent harmful outputs) are insufficient for malicious code generation specifically.
-
Jailbreaking techniques are becoming more systematic and effective: Rather than relying on random prompts, the SPELL framework uses intelligent sentence combinations to craft attacks, demonstrating that adversaries are developing increasingly sophisticated methods to circumvent safety measures—a concerning trend for responsible AI deployment.
-
Real-world AI development tools are vulnerable to these attacks: The research confirmed that malicious code generated through these jailbreaking techniques actually works in production tools like Cursor, with over 73% of outputs confirmed as genuinely malicious by detection systems, meaning the risk extends beyond theoretical concerns to practical harm.
-
Urgent need for security-focused AI evaluation: The paper reveals that security alignment in LLMs requires specialized testing frameworks beyond general jailbreak research, suggesting that AI developers must prioritize code-specific safety measures and more rigorous adversarial testing before deployment.