paper-with-me

Papers

ReasAlign: Reasoning Enhanced Safety Alignment against Prompt Injection Attack

2026-01-15 · Hao Li, Yankai Yang, G. Edward Suh, Ning Zhang, Chaowei Xiao arxiv

Large Language Models (LLMs) have enabled the development of powerful agentic systems capable of automating complex workflows across various fields. However, these systems are highly vulnerable to indirect prompt injection attacks, where malicious instructions embedded in external data can hijack agent behavior. In this work, we present ReasAlign, a model-level solution to improve safety alignment against indirect prompt injection attacks. The core idea of ReasAlign is to incorporate structured reasoning steps to analyze user queries, detect conflicting instructions, and preserve the continuity of the user's intended tasks to defend against indirect injection attacks. To further ensure reasoning logic and accuracy, we introduce a test-time scaling mechanism with a preference-optimized judge model that scores reasoning steps and selects the best trajectory. Comprehensive evaluations across various benchmarks show that ReasAlign maintains utility comparable to an undefended model while consistently outperforming Meta SecAlign, the strongest prior guardrail. On the representative open-ended CyberSecEval2 benchmark, which includes multiple prompt-injected tasks, ReasAlign achieves 94.6% utility and only 3.6% ASR, far surpassing the state-of-the-art defensive model of Meta SecAlign (56.4% utility and 74.4% ASR). These results demonstrate that ReasAlign achieves the best trade-off between security and utility, establishing a robust and practical defense against prompt injection attacks in real-world agentic systems. Our code and experimental results could be found at https://github.com/leolee99/ReasAlign.

📄 PDF Abstract BibTeX arXiv:2601.10173

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Towards Safer Large Reasoning Models by Promoting Safety Decision-Making before Chain-of-Thought Generation

2026-03-18 · Jianan Chen, Zhifang Zhang, Shuo He, Linan Yue 외 arxiv

Large reasoning models (LRMs) achieved remarkable performance via chain-of-thought (CoT), but recent studies showed that such enhanced reasoning capabilities are at the expense of significantly degraded safety capabiliti…

RSafe: Incentivizing proactive reasoning to build robust and adaptive LLM safeguards

2025-06-09 · Jingnan Zheng, Xiangtian Ji, Yijun Lu, Chenhang Cui 외

Large Language Models (LLMs) continue to exhibit vulnerabilities despite deliberate safety alignment efforts, posing significant risks to users and society. To safeguard against the risk of policy-violating content, syst…

Safety Alignment

EASE: Practical and Efficient Safety Alignment for Small Language Models

2025-11-09 · Haonan Shi, Guoli Wang, Tu Ouyang, An Wang arxiv

Small language models (SLMs) are increasingly deployed on edge devices, making their safety alignment crucial yet challenging. Current shallow alignment methods that rely on direct refusal of malicious queries fail to pr…

Computational Efficiency

Safety is Not Only About Refusal: Reasoning-Enhanced Fine-tuning for Interpretable LLM Safety

2025-03-06 · Yuyou Zhang, Miao Li, William Han, Yihang Yao 외

Large Language Models (LLMs) are vulnerable to jailbreak attacks that exploit weaknesses in traditional safety alignment, which often relies on rigid refusal heuristics or representation engineering to block harmful outp…

Decision MakingSafety Alignment

Self-Guided Defense: Adaptive Safety Alignment for Reasoning Models via Synthesized Guidelines

2025-11-26 · Yuhang Wang, Yanxu Zhu, Dongyuan Lu, Jitao Sang arxiv

Reasoning models have demonstrated remarkable capabilities in complex reasoning tasks. However, ensuring their safety against adversarial jailbreak prompts remains a critical challenge. Due to the covert and deceptive na…