← All advisories

VV-024mediumJailbreak2024-04-02

Many-shot jailbreaking: long context windows weaken refusals

Anthropic published research showing that filling a long prompt with many fake dialogue examples can push models into answering requests they would normally refuse.

01.

What it is

Published 2 April 2024. The technique exploits large context windows and affected models from several vendors.

02.

How to check

  1. If users can paste long text into your LLM feature, test with long adversarial inputs.
03.

How to fix

  1. Cap input length where you can, and classify inputs before they reach the model.
04.

Sources

More advisories for this tool
The weekly email

One email a week. Only what changed.

Every new security hole in AI coding tools, MCP servers, app builders and the stacks they generate (Next.js, Supabase, Node, PHP), each with how to check your app and the fix. No roundups of things you already read.

Free, one email a week. Read the latest issue first if you like. One-click unsubscribe in every email. We never sell or share addresses.