Towards Safeguarding LLM Fine-tuning APIs against Cipher Attacks
Not on the map. Why?
Abstract (arXiv)
Large language model fine-tuning APIs enable widespread model customization, yet pose significant safety risks. Recent work shows that adversaries can exploit access to these APIs to bypass model safety mechanisms by encoding harmful content in seemingly harmless fine-tuning data, evading both human monitoring and standard content filters. We formalize the fine-tuning API defense problem, and introduce the Cipher Fine-tuning Robustness benchmark (CIFR), a benchmark for evaluating defense strategies' ability to retain model safety in the face of cipher-enabled attackers while achieving the desired level of fine-tuning functionality. We include diverse cipher encodings and families, with some kept exclusively in the test set to evaluate for generalization across unseen ciphers and cipher families. We then evaluate different defenses on the benchmark and train probe monitors on model internal activations from multiple fine-tunes. We show that probe monitors achieve over 99% detection accuracy, generalize to unseen cipher variants and families, and compare favorably to state-of-the-art monitoring approaches. We open-source CIFR and the code to reproduce our experiments to facilitate further research in this critical area. Code and data are available online https://github.com/JackYoustra/safe-finetuning-api
Key facts. Cited by 11 papers in the map (data through 14 Oct 2026). Builds on 33 of its 47 references that are in the map. First posted on arXiv 23 Aug 2025.
Builds on
33 of 47 references.
References · 33
- 2022Training language models to follow instructions with human feedbackcited by 15,971
- 2020Measuring Massive Multitask Language Understandingcited by 7,963
- 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,886
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,373
- 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 3,104
- 2022Constitutional AI: Harmlessness from AI Feedbackcited by 3,050
- 2023Jailbroken: How Does LLM Safety Training Fail?cited by 1,651
- 2016Understanding intermediate layers using linear classifier probescited by 1,353
- 2023Fine-tuning Aligned Language Models Compromises Safety, Even When Users Do Not Intend To!cited by 1,154
- 2024Refusal in Language Models Is Mediated by a Single Directioncited by 1,032
- 2023OpenAssistant Conversations -- Democratizing Large Language Model Alignmentcited by 721
- 2023GPT-4 Is Too Smart To Be Safe: Stealthy Chat with LLMs via Ciphercited by 423
21 more
- 2024A StrongREJECT for Empty Jailbreakscited by 385
- 2022A Holistic Approach to Undesired Content Detection in the Real Worldcited by 356
- 2023Shadow Alignment: The Ease of Subverting Safely-Aligned Language Modelscited by 297
- 2024Assessing the Brittleness of Safety Alignment via Pruning and Low-Rank Modificationscited by 231
- 2023Removing RLHF Protections in GPT-4 via Fine-Tuningcited by 171
- 2024Tamper-Resistant Safeguards for Open-Weight LLMscited by 138
- 2024Safe LoRA: the Silver Lining of Reducing Safety Risks when Fine-tuning Large Language Modelscited by 125
- 2024What is in Your Safe Data? Identifying Benign Data that Breaks Safetycited by 118
- 2024Representation Noising: A Defence Mechanism Against Harmful Finetuningcited by 96
- 2024Harmful Fine-tuning Attacks and Defenses for Large Language Models: A Surveycited by 90
- 2024Covert Malicious Finetuning: Challenges in Safeguarding LLM Adaptationcited by 80
- 2024Robustifying Safety-Aligned Large Language Models through Clean Data Curationcited by 44
- 2024A safety realignment framework via subspace-oriented model fusion for large language modelscited by 41
- 2023BadLlama: cheaply removing safety fine-tuning from Llama 2-Chat 13Bcited by 36
- 2024Safety-Aware Fine-Tuning of Large Language Modelscited by 34
- 2024Mitigating Fine-tuning based Jailbreak Attack with Backdoor Enhanced Safety Alignmentcited by 31
- 2023Exploiting Novel GPT-4 APIscited by 28
- 2024ProteinBench: A Holistic Evaluation of Protein Foundation Modelscited by 25
- 2024A Fine-tuning Dataset and Benchmark for Large Language Models for Protein Understandingcited by 19
- 2024Endless Jailbreaks with Bijection Learningcited by 19
- 2025Fundamental Limitations in Pointwise Defences of LLM Finetuning APIscited by 10
Built on by
Citing papers per year: 2025: 2; 2026: 9.
11 papers.
- 2026Building Production-Ready Probes For Geminicited by 47
- 2026Constitutional Classifiers++: Efficient Production-Grade Defenses against Universal Jailbreakscited by 41
- 2026Introspection Adapters: Training LLMs to Report Their Learned Behaviorscited by 11
- 2025All Code, No Thought: Current Language Models Struggle to Reason in Ciphered Languagecited by 8
- 2026Surgery: Mitigating Harmful Fine-Tuning for Large Language Models via Attention Sinkcited by 4
- 2025Detecting Adversarial Fine-tuning with Auditing Agentscited by 3
- 2026Hide and Seek in Embedding Space: Geometry-based Steganography and Detection in Large Language Modelscited by 1
- 2026Trojan-Speak: Bypassing Constitutional Classifiers with No Jailbreak Tax via Adversarial Finetuningcited by 1
- 2026Arbitrary Cipher Attacks Against Large Language Models Do Not Require Fine-Tuningcited by 0
- 2026Unread or Unenforced? Separating Representation from Enforcement Failure in Content Guardscited by 0
- 2026LLM Alignment--Utility Asymmetry under Semantic-Preserving Transformationscited by 0
- 2026LLM Alignment--Utility Asymmetry under Semantic-Preserving Transformations26 Sep 2026
- 2026Arbitrary Cipher Attacks Against Large Language Models Do Not Require Fine-Tuning9 Sep 2026
- 2026Unread or Unenforced? Separating Representation from Enforcement Failure in Content Guards12 Aug 2026
- 2026Introspection Adapters: Training LLMs to Report Their Learned Behaviors18 Apr 2026
- 2026Trojan-Speak: Bypassing Constitutional Classifiers with No Jailbreak Tax via Adversarial Finetuning30 Mar 2026
- 2026Surgery: Mitigating Harmful Fine-Tuning for Large Language Models via Attention Sink5 Feb 2026
- 2026Hide and Seek in Embedding Space: Geometry-based Steganography and Detection in Large Language Models30 Jan 2026
- 2026Building Production-Ready Probes For Gemini16 Jan 2026
- 2026Constitutional Classifiers++: Efficient Production-Grade Defenses against Universal Jailbreaks8 Jan 2026
- 2025Detecting Adversarial Fine-tuning with Auditing Agents17 Oct 2025
- 2025All Code, No Thought: Current Language Models Struggle to Reason in Ciphered Language10 Oct 2025
Similar, not cited
Close in wording, no citation either way
- 2026Security in the Fine-Tuning Lifecycle of Large Language Models: Threats, Defenses,Evaluation, and Future Directions
- 2025Should LLM Safety Be More Than Refusing Harmful Instructions?
- 2024When "Competency" in Reasoning Opens the Door to Vulnerability: Jailbreaking LLMs via Novel Complex Ciphers
- 2024Safety Layers in Aligned Large Language Models: The Key to LLM Security
- 2025Fine-Tuning Lowers Safety and Disrupts Evaluation Consistency
- 2025SDD: Self-Degraded Defense against Malicious Fine-tuning
- 2024Root Defence Strategies: Ensuring Safety of LLM at the Decoding Level
- 2025Benchmarking Large Language Models for Cryptanalysis and Side-Channel Vulnerabilities