Jailbreaking, that is, crafting prompts that bypass the safety constraints of Large Language Models (LLMs), remains a critical threat to deployed AI systems. We present RAG4JAIL, a bootstrapped retrieval augmented pipeline for automated jailbreak generation. Given a seed query, RAG4JAIL retrieves semantically related examples from a vector store of community reported attacks and feeds them as adversarial context to a generator LLM, which synthesizes a novel candidate under one of ten established jailbreaking techniques. A key design element is bootstrapped retrieval: after each round, successful attacks are reinjected into the corpus, progressively refining the pool available to subsequent rounds. We instantiate RAG4JAIL in a goal driven variant, supporting human in the loop red teaming, and an attack driven variant, for systematic strengthening of existing benchmark suites. Experiments across four safety aligned target models and six public datasets show that even a single bootstrapping round more than doubles attack success rates on the most robust targets, with further rounds yielding consistent but diminishing gains. The improvement is technique agnostic: all ten jailbreaking techniques benefit from retrieval and bootstrapping, implying that defenses targeting any specific attack pattern offer only partial protection. RAG4JAIL matches or outperforms the best comparable black box baselines without requiring gradient access, model internals, or target specific tuning.

RAG4Jail: Bootstrapped Retrieval-Augmented Jailbreak Generation for Large Language Models / Confalone, M., Cervelli, M., Coppa, E., Finocchi, I., Martino, A.. - (2026). (NCTA 2026 Angers, Francia ).

RAG4Jail: Bootstrapped Retrieval-Augmented Jailbreak Generation for Large Language Models

Miro Confalone
Primo
Membro del Collaboration Group
;
Emilio Coppa
Membro del Collaboration Group
;
Irene Finocchi
Supervision
;
Alessio Martino
Membro del Collaboration Group
2026

Abstract

Jailbreaking, that is, crafting prompts that bypass the safety constraints of Large Language Models (LLMs), remains a critical threat to deployed AI systems. We present RAG4JAIL, a bootstrapped retrieval augmented pipeline for automated jailbreak generation. Given a seed query, RAG4JAIL retrieves semantically related examples from a vector store of community reported attacks and feeds them as adversarial context to a generator LLM, which synthesizes a novel candidate under one of ten established jailbreaking techniques. A key design element is bootstrapped retrieval: after each round, successful attacks are reinjected into the corpus, progressively refining the pool available to subsequent rounds. We instantiate RAG4JAIL in a goal driven variant, supporting human in the loop red teaming, and an attack driven variant, for systematic strengthening of existing benchmark suites. Experiments across four safety aligned target models and six public datasets show that even a single bootstrapping round more than doubles attack success rates on the most robust targets, with further rounds yielding consistent but diminishing gains. The improvement is technique agnostic: all ten jailbreaking techniques benefit from retrieval and bootstrapping, implying that defenses targeting any specific attack pattern offer only partial protection. RAG4JAIL matches or outperforms the best comparable black box baselines without requiring gradient access, model internals, or target specific tuning.
2026
NCTA 2026
Large Language Models · Retrieval Augmented Generation · Jail- breaking · Security · Artificial Intelligence
04 Pubblicazione in atti di convegno::04b Atto di convegno in volume
RAG4Jail: Bootstrapped Retrieval-Augmented Jailbreak Generation for Large Language Models / Confalone, M., Cervelli, M., Coppa, E., Finocchi, I., Martino, A.. - (2026). (NCTA 2026 Angers, Francia ).
File allegati a questo prodotto
Non ci sono file associati a questo prodotto.

I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/11573/1782559
 Attenzione

Attenzione! I dati visualizzati non sono stati sottoposti a validazione da parte dell'ateneo

Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus ND
  • ???jsp.display-item.citation.isi??? ND
social impact