arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2504.13052cs.CR
收藏

GraphAttack:利用LLM安全机制中的表示盲点

GraphAttack: Exploiting Representational Blindspots in LLM Safety Mechanisms

Sinan He, An Wang

AI总结:

针对LLM安全机制易被越狱提示词绕过的问题,提出基于图的语义转换方法,利用AMR和RDF解析用户目标生成语义图,通过代码生成实现意图,对商用LLM成功率达87%,为安全测试提供新框架。

摘要:

大型语言模型(LLMs)已配备安全机制以防止有害输出,但这些防护措施常可通过“越狱”提示词绕过。本文提出一种新颖的基于图的方法,通过语义转换系统生成越狱提示词。我们将恶意提示词表示为图结构中的节点,边表示不同转换,利用抽象意义表示(AMR)和资源描述框架(RDF)将用户目标解析为可被操纵以规避安全过滤器的语义组件。我们展示了一种特别有效的攻击向量:指示LLMs生成代码以实现这些语义图中描述的意图,对主流商用LLMs的成功率高达87%。分析表明,上下文框架与抽象化在规避安全措施方面尤为有效,凸显当前主要关注表面模式的安全对齐技术存在关键漏洞。这些发现为开发更鲁棒的结构化语义攻击防护措施提供了见解,我们的研究为系统压力测试LLM安全机制贡献了理论框架与实用方法。

英文摘要:

Large Language Models (LLMs) have been equipped with safety mechanisms to prevent harmful outputs, but these guardrails can often be bypassed through "jailbreak" prompts. This paper introduces a novel graph-based approach to systematically generate jailbreak prompts through semantic transformations. We represent malicious prompts as nodes in a graph structure with edges denoting different transformations, leveraging Abstract Meaning Representation (AMR) and Resource Description Framework (RDF) to parse user goals into semantic components that can be manipulated to evade safety filters. We demonstrate a particularly effective exploitation vector by instructing LLMs to generate code that realizes the intent described in these semantic graphs, achieving success rates of up to 87% against leading commercial LLMs. Our analysis reveals that contextual framing and abstraction are particularly effective at circumventing safety measures, highlighting critical gaps in current safety alignment techniques that focus primarily on surface-level patterns. These findings provide insights for developing more robust safeguards against structured semantic attacks. Our research contributes both a theoretical framework and practical methodology for systematically stress-testing LLM safety mechanisms.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑