arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2312.14302cs.CRcs.AIcs.CLcs.LG
收藏

利用新型 GPT-4 API

Exploiting Novel GPT-4 APIs

FAR AI;McGill University(麦吉尔大学);MILA(MILA(魁北克人工智能研究所));Jagiellonian University(雅盖隆大学)

Kellin Pelrine, Mohammad Taufeeque, Michał Zając, Euan McLean, Adam Gleave

AI总结:

本文对 GPT-4 API 的微调、函数调用和知识检索功能开展红队测试,揭示少量数据微调、任意函数调用及文档指令注入等新型灰盒攻击风险。

摘要:

语言模型攻击通常假设两种极端威胁模型之一:对模型权重拥有完全白盒访问权限,或仅限于文本生成 API 的黑盒访问。然而,现实世界中的 API 往往比单纯的文本生成更灵活:这些 API 暴露出“灰盒”访问,从而带来新的威胁向量。为探索这一点,我们对 GPT-4 API 中暴露的三项新功能进行红队测试:微调、函数调用和知识检索。我们发现,仅用 15 个有害样本或 100 个良性样本微调模型,就能移除 GPT-4 的核心安全防护,使其产生一系列有害输出。此外,我们发现 GPT-4 Assistants 很容易泄露函数调用模式,并且可被诱导执行任意函数调用。最后,我们发现知识检索可通过向检索文档中注入指令而被劫持。这些漏洞凸显出,API 所暴露功能的任何增加都可能产生新的漏洞。

英文摘要:

Language model attacks typically assume one of two extreme threat models: full white-box access to model weights, or black-box access limited to a text generation API. However, real-world APIs are often more flexible than just text generation: these APIs expose "gray-box" access leading to new threat vectors. To explore this, we red-team three new functionalities exposed in the GPT-4 APIs: fine-tuning, function calling and knowledge retrieval. We find that fine-tuning a model on as few as 15 harmful examples or 100 benign examples can remove core safeguards from GPT-4, enabling a range of harmful outputs. Furthermore, we find that GPT-4 Assistants readily divulge the function call schema and can be made to execute arbitrary function calls. Finally, we find that knowledge retrieval can be hijacked by injecting instructions into retrieval documents. These vulnerabilities highlight that any additions to the functionality exposed by an API can create new vulnerabilities.

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

↑