Chain-of-Authorization: Embedding authorization into large language models
Organizations: Department of Computer Science and Technology, Tsinghua University . · Data Science and Analytic Thrust, Information Hub, The Hong Kong University of Science and Technology (Guangzhou) . · Institude for Math and AI, Wuhan University .
Abstract
Although Large Language Models (LLMs) have evolved from text generators into the cognitive core of modern AI systems, their inherent lack of authorization awareness exposes these systems to catastrophic risks, ranging from unintentional data leakage to unauthorized command execution. Existing defense mechanisms are fundamentally decoupled from internal reasoning, rendering them insufficient for the complex security demands of dynamic AI systems. Here, we propose the Chain-of-Authorization (CoA) framework, a paradigm that internalizes access control as a foundational cognitive capability. By systematically redesigning the input-output format and fine-tuning the model on synthesized data with complex permission topologies, CoA forces the model to generate a structured authorization trajectory as a causal prerequisite for any substantive response or action, thereby enabling LLMs to internalize access boundaries within dynamic reasoning environments. CoA maintains high utility in authorized scenarios while achieving high rejection rates of unauthorized prompts and robust defense against diverse adversarial attacks. By embedding authorization directly into the reasoning process, CoA provides a principled architectural blueprint for deploying secure LLMs as the cognitive cores of modern AI systems.
Figures & tables
| WMDP | MMLU | SQuAD | CovidQA | Mobile Actions | ||
| Qwen3 1.7B | Base | 28.00{\color[rgb]{0.5,0.5,0.5}(\blacktriangledown 33.77)} | 50.00{\color[rgb]{0.5,0.5,0.5}(\blacktriangledown 9.45)} | 31.95{\color[rgb]{0.5,0.5,0.5}(\blacktriangledown 54.69)} | 48.40{\color[rgb]{0.5,0.5,0.5}(\blacktriangledown 14.75)} | 62.03{\color[rgb]{0.5,0.5,0.5}(\blacktriangledown 33.13)} |
| SFT | 61.77 | 59.45 | 86.64 | 63.15 | 95.16 | |
| Extra | \mathbf{61.22{\color[rgb]{0,0,1}(\blacktriangledown 0.55)}} | 46.27{\color[rgb]{0.5,0.5,0.5}(\blacktriangledown 13.18)} | / | / | \mathbf{94.84{\color[rgb]{0,0,1}(\blacktriangledown 0.32)}} | |
| PermLM | 51.84{\color[rgb]{0.5,0.5,0.5}(\blacktriangledown 9.93)} | 56.00{\color[rgb]{0.5,0.5,0.5}(\blacktriangledown 3.45)} | 31.95{\color[rgb]{0.5,0.5,0.5}(\blacktriangledown 54.69)} | 27.50{\color[rgb]{0.5,0.5,0.5}(\blacktriangledown 35.65)} | 55.00{\color[rgb]{0.5,0.5,0.5}(\blacktriangledown 40.16)} | |
| sudoLM | 29.39{\color[rgb]{0.5,0.5,0.5}(\blacktriangledown 32.38)} | 38.91{\color[rgb]{0.5,0.5,0.5}(\blacktriangledown 20.54)} | 68.48{\color[rgb]{0.5,0.5,0.5}(\blacktriangledown 18.16)} | 56.41{\color[rgb]{0.5,0.5,0.5}(\blacktriangledown 6.74)} | 69.06{\color[rgb]{0.5,0.5,0.5}(\blacktriangledown 26.10)} | |
| CoA | 59.59{\color[rgb]{0.5,0.5,0.5}(\blacktriangledown 2.18)} | \mathbf{56.35{\color[rgb]{0,0,1}(\blacktriangledown 3.10)}} | \mathbf{84.68{\color[rgb]{0,0,1}(\blacktriangledown 1.96)}} | \mathbf{60.87{\color[rgb]{0,0,1}(\blacktriangledown 2.28)}} | 94.53{\color[rgb]{0.5,0.5,0.5}(\blacktriangledown 0.63)} |
| ASR( ) | Qwen3-1.7B | Llama3-8B-Instruct | Mistral-7B-v0.3 | |||
|---|---|---|---|---|---|---|
| SudoLM | CoA | SudoLM | CoA | SudoLM | CoA | |
| None | 100.00/3.67 | 0.14/6.54 | 78.64/9.25 | 0.14 / 0.00 | 98.50/17.82 | 0.00 / 0.00 |
| Prefix Injection | 100.00/3.27 | 0.14 /6.80 | 79.18/0.00 | 0.14 / 0.00 | 0.95/0.00 | 0.27 /0.00 |
| Style Injection | 100.00/99.86 | 0.14 / 9.12 | 51.43/7.89 | 0.14 / 0.14 | 98.10/66.12 | 0.14 / 0.00 |
| Misrepresentation | 99.86/0.00 | 0.14/5.58 | 57.28/4.90 | 0.00 / 0.00 | 97.28/1.77 | 0.14 / 0.00 |
| Logical Appeal | 100.00/0.00 | 0.00 /5.44 | 72.38/3.68 | 0.14 / 0.00 | 98.24/0.69 | 0.00 / 0.00 |
| WMDP | MMLU | SQuAD | Covid-QA | Mobile-Actions | |
| Dataset Size (Train/Test) | 2936/732 | 11233/2809 | 2262/2036 | 1252/155 | 5794/640 |
| #Permission Labels | 3 | 57 | 100 | 1234 | 5 |
LLM Security
Large language model (LLM) security studies attacks, privacy risks, and defenses across model training, inference, and deployment.
See all 322 papers