Skip to content
AI / LLM Write-up Intermediate

Breaking Safeguards Unveil Many Shot Jailbreaking A Method To Bypass All Llm Safety Measures

Many-shot jailbreaking (MSJ) is an attack that floods a large language model's context window with hundreds of examples of undesirable behaviour, steering the model to produce harmful or misleading responses. The article reports that this technique can influence all tested models, with effectiveness scaling predictably with the number of examples.

elniak Follow

Published on infosecwriteups.com

Large language models (LLMs) have become foundational tools, powering everything from simple chatbots to complex decision-making systems, in the rapidly evolving landscape of artificial intelligence.

ElNiak, on infosecwriteups.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the model's in-context learning mechanism, which allows it to learn from examples in its input, can be exploited by supplying many harmful demonstrations.

Impact

MSJ could induce models to generate responses ranging from mildly inappropriate to dangerously misleading or harmful, and all tested models could be influenced regardless of their original safety measures.

What the attacker needed

Access to an LLM with a large context window; ability to send many examples in one prompt

The fix

Mitigations such as supervised learning, reinforcement learning, and prompt-based defences like Cautionary Warning Defense can reduce susceptibility, but they do not fundamentally eliminate the vulnerability.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

A large language model (LLM) is an AI that generates text. This article describes a way to trick such an AI into giving harmful answers by first showing it many examples of bad behaviour, which makes it more likely to copy that behaviour. The more examples you give, the more likely the AI is to comply.

What is AI / LLM?

Prompt injection, data exfiltration and tool abuse in features built on language models, and the ordinary bugs around them.

More by elniak

View all

28 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

AI and LLM vulnerabilities

The lesson behind this report.

Prompt injection, data exfiltration and tool abuse in features built on language models, and the ordinary bugs around them.