MASTERKEY:1)基于time-based SQL injection的思想,通过生成过程固有的基于时间的特征对LLM chatbot背后的防御策略进行逆向。2)基于jailbreak prompts fune-tune的LLM自动生成jailbreak prompts。该方法生成的attack prompts成功率位21.58%,超过现有prompts攻击成功率(7.33%)。

Revealing Jailbreak Defense

Insights

  1. service response time could be an interesting indicator.
  2. there exists a fascinating parallel between web applications and LLM services. [time-based SQL injection]

Time-based SQL Injection

Untitled

Fig. 2通过执行时间推测SQL system的版本号。time-based SQL injection 通过条件控制与时间控制的组合推断后端服务器属性的关键信息。

Time-based LLM Testing

Untitled

  1. 验证使用time-based方法测试LLM的可行性

  2. 确定预防机制是针对input prompt还是LLM-generated response还是两者均有

    💡根据本文的实验发现response time没有显著变化,所以认为预防机制仅针对LLM-generated response进行检查,而不是在input prompts。

  3. 确定预防机制是否为动态检查(i.e., 在生成过程中进行检查还是仅验证生成后内容)

    💡通过实验发现预防机制可能是动态的(dynamic monitoring)。

  4. 确定预防机制的具体工作模式(e.g., keyword-based, semantic-based)

    💡同时使用keyword matching和semantic analysis。