RedAgent: An Autonomous Agent for Context-Aware Red Teaming of LLM Jailbreaks

计算机科学 重写 背景(考古学) 领域(数学分析) 人机交互 编码(集合论) 计算机安全 普适计算 工作(物理) 领域特定语言 万维网 数据科学 攻击面 软件工程
作者
Huiyu Xu,Wenhui Zhang,Zhi Wang,Feng Xiao,Rui Zheng,Zhongjie Ba,Kui Ren
出处
期刊:IEEE Transactions on Dependable and Secure Computing [IEEE Computer Society]
卷期号:23 (3): 6506-6521 被引量:58
标识
DOI:10.1109/tdsc.2026.3665230
摘要

Recently, Large Language Models (LLMs) have been in tegrated into many real-world applications like Code Copilot. These applications have significantly expanded the attack surface of LLMs, ex posing them to complex real-world jailbreak threats. Despite the promising advances in actively finding jailbreak vulnerabilities of LLMs (i.e., red teaming) in general contexts, identifying these threats in complex domain-specific contexts (e.g, mathematical LLMs) remains underexplored. In this paper, we study whether the context these real-world LLM applications work in, including different system prompts, tools, and scenarios of tasks, give rise to context-specific jailbreak threats. Particularly, we adapt general jailbreak prompts to the context of the target application via LLM rewriting to generate context-specific attacks. By measuring the differences in jailbreak responses between general attacks and context-specific attacks, we reveal that customized domain specific LLMs are more vulnerable in their specific context. Motivated by this observation, we propose a context-aware red teaming approach, RedAgent, to generate context-specific jailbreak attacks towards customized LLM applications. Through effectively retrieving and updating structured knowledge in an agent system, RedAgent efficiently perceive and utilize contextual information to adapt the jailbreak prompts to the target contexts. Extensive experiments show that our system can jailbreak most black-box LLMs within just five queries, improving the efficiency of existing red teaming methods by two times. Further, RedAgent can effectively jailbreak customized LLM applications. By generating context-specific jailbreak prompts towards 60 trending applications on the marketplace of OpenAI, we discover 600 vulnerabilities of these real world applications with only two queries per vulnerability.
最长约 10秒,即可获得该文献文件

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
丰富南松完成签到,获得积分10
1秒前
hp571发布了新的文献求助10
1秒前
书不尽风月完成签到,获得积分10
1秒前
xyr完成签到 ,获得积分10
1秒前
12545发布了新的文献求助10
1秒前
YYR完成签到,获得积分10
1秒前
戌博完成签到,获得积分10
1秒前
1秒前
和平发展发布了新的文献求助10
2秒前
user_huang完成签到,获得积分10
2秒前
凡尔赛老痘完成签到,获得积分10
2秒前
图图完成签到,获得积分10
2秒前
2秒前
kds完成签到 ,获得积分10
3秒前
路路完成签到,获得积分10
3秒前
小影完成签到 ,获得积分10
3秒前
3秒前
搞怪的乐荷完成签到,获得积分10
3秒前
gugugaga发布了新的文献求助10
4秒前
4秒前
ZXY发布了新的文献求助10
4秒前
AGUI完成签到,获得积分10
4秒前
嘻嘻哈哈的应助被KDX采纳,获得10
4秒前
呆萌机器猫完成签到,获得积分10
4秒前
华仔的应助被麻辣鱿鱼徐采纳,获得10
4秒前
5秒前
爱笑的蛟凤完成签到,获得积分10
6秒前
6秒前
绵羊小姐完成签到 ,获得积分0
6秒前
木东栋发布了新的文献求助10
6秒前
俭朴含卉完成签到 ,获得积分10
6秒前
6秒前
Jane发布了新的文献求助10
6秒前
火星上的木头完成签到,获得积分10
7秒前
梅一一发布了新的文献求助10
7秒前
Mr_Y完成签到,获得积分10
7秒前
pan发布了新的文献求助10
7秒前
7秒前
蓝色雨完成签到,获得积分10
7秒前
ada发布了新的文献求助10
7秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
拉伸高分子熔体中缠结行为的模拟和小角中子散射研究 1500
The World Atlas of Wine 9th edition 1000
奈特基础组织学:配套组织病理学(第4版)(Netter's Essential Histology With Correlated Histopathology) 800
John McDowells Bildungstheorie 800
八旗制度の研究 600
Analyses de reconnaissances de dettes passées devant les échevins d'Ypres (1249-1291) 600
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 计算机科学 工程类 有机化学 化学工程 生物化学 物理 复合材料 内科学 催化作用 光电子学 人工智能 细胞生物学 无机化学 物理化学 数学
热门帖子
关注 科研通微信公众号,转发送积分 8159633
求助须知:如何正确求助?哪些是违规求助? 9555145
关于积分的说明 21725138
捐赠科研通 7749593
什么是DOI,文献DOI怎么找? 3427281
关于科研通互助平台的介绍 2552345
邀请新用户注册赠送积分活动 2471619