# Best-of-N Jailbreaking

> Best-of-N jailbreaking is a black-box attack that repeatedly sends randomly altered versions of a harmful request, such as with shuffled characters or random capitalization, until one of them gets a harmful response from the model.

- Identifier: PTL-0263
- Category: Security & Adversarial Prompting
- Canonical URL: https://protologue.com/t/best-of-n-jailbreaking/
- Also known as: BoN jailbreaking, BoN jailbreak
- Introduced: 2024

## Description

Hughes et al. introduced it in 2024. With 10,000 sampled variants they reported attack success rates of 89% on GPT-4o and 78% on Claude 3.5 Sonnet, and extended the method to vision and audio models with modality-specific alterations. Success rose with the number of samples following a power-law-like trend, which lets attackers forecast how many attempts they need, and combining it with other attacks raised success further. The result shows that models' sensitivity to small, meaning-preserving input changes can be exploited simply by sampling many of them.

## Broader terms

- [Jailbreak](https://protologue.com/t/jailbreak/)

## Related terms

- [Best-of-N Sampling](https://protologue.com/t/best-of-n-sampling/)
- [Prompt Sensitivity](https://protologue.com/t/prompt-sensitivity/)
- [Red Teaming](https://protologue.com/t/red-teaming/)
- [Many-shot Jailbreaking](https://protologue.com/t/many-shot-jailbreaking/)

## Sources

- Hughes et al. (2024). Best-of-N Jailbreaking. https://arxiv.org/abs/2412.03556

## Cite this entry

Protologue. (2026). Best-of-N Jailbreaking. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.1, PTL-0263). https://protologue.com/t/best-of-n-jailbreaking/

License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/)
