Identifying and Mitigating Vulnerabilities in LLM-Integrated Applications

本文关注从用户查询(user’s query)开始到LLM-integrated APP返回查询响应(response)结束的通信轮次(query-response protocol)。首先,确定可能控制数据库访问、修改数据的高危漏洞,这些漏洞可能导致用户收到包含偏见、有毒内容、隐私风险和虚假信息的回复。并提出缓解(mitigate)这些威胁的4个关键属性,integrity, source identification, attack detectability, and utility preservation(完整性,源识别,攻击检测以及效用保持)基于这些属性,本文开发了一种轻量级、不依赖特定威胁的防御机制,可缓解内部和外部威胁,并对该防御机制进行评估证明其有效性。

Untitled

threat model

defense - Shield

Threat Model

假设用户和LLM服务供应商是无害的。

threat initiator的目标是使用户收到带有恶意选择的语义的响应(semantic goal)

Insight

Insider threat

  1. 在上游通信中进行prompt injection使LLM生成恶意的response
  2. 在下游通信中修改LLM的response生成恶意response