atlas

Research map / Adversarial robustness and security / Attacks on text and graphs

Gandalf the Red: Adaptive Security for LLMs

ICML 2025 · Adversarial robustness and security › Attacks on text and graphs · approach: LLM jailbreak and injection defense · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes D-SEC, a dynamic security-utility threat model for LLM applications, and Gandalf, a crowd-sourced gamified red-teaming platform that yields a released 279k-prompt attack dataset used to study defense strategies.

Problem

Evaluations of defenses against prompt attacks on LLM applications ignore adaptive attackers and the usability cost that restrictive defenses impose on legitimate users, and benchmark attacks are often non-adaptive and easily blocked.

Approach

Model attackers and benign users separately in multi-transaction sessions, define an optimizable developer utility trading off security (Attacker Failure Rate) and utility (Session Completion Rate), and collect adaptive attacks via a gamified password-extraction game whose success label is objective (password extracted).

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Restrict the application to a summarization or topic domain rather than a general chatbotGandalf application · General, Summarization, and Topicaverage levels solved per session: General: 1.95, 1.50, 1.73; Summarization: 1.27, 1.01, 1.28; Topic: 1.81, 1.12, 1.37Helped
Combine C1, C2, and C3 using or aggregation (ablation)Gandalf defenses · General, Summarization, and Topicplayers who beat level D: 2.9%, 6.3%, and 6.4%Helped
Combine substring check, LLM checker, and strong prompt instead of using each defense individually (ablation)Gandalf defenses · Gandalf-RCT attacksattack blocking: 14.5%Helped
Block the session after 3 flagged attempts (ablation)Combined defense · Undetected attacks against the non-adaptive defenseattacks blocked: 75%Helped
Add a system-prompt defenseLLM application · BasicUser and BorderlineUserresponse character lengthHurt
Use a system-prompt defenseLLM application · Benign user requestsresponse content similarityHurt

Surprising findings

Limitations

Experimental setup

Datasets: Gandalf-RCT BasicUser BorderlineUser UltraChat-200k

Benchmarks: Gandalf-RCT BasicUser BorderlineUser

Metrics: Attacker Failure Rate Session Completion Rate Attacks per Exploit response length cosine similarity

Baselines: substring check LLM checker strong system prompt weak system prompt

Builds on: UltraChat

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy