← Return to Report 📚 All Topic Sources ⬇ Download Source Text

Anthropic researchers found that giving an ai more context actually destroys its safety filters... turns out if you use this specific pattern you can basically force the model to bypass any restriction. : r/aipromptprogramming - Reddit

Anthropic researchers found that giving an ai more context actually destroys its safety filters... turns out if you use this specific pattern you can basically force the model to bypass any restriction. : r/aipromptprogramming

Skip to main content Anthropic researchers found that giving an ai more context actually destroys its safety filters... turns out if you use this specific pattern you can basically force the model to bypass any restriction. : r/aipromptprogramming

Open menu

Open navigation

Go to Reddit Home

Ask

Find anything

Sign Up

Sign up for Reddit

Log In

Log in to Reddit

Expand user menu

Open settings menu

Skip to Sign up Skip to Right Sidebar

Back

Go to aipromptprogramming

r/aipromptprogramming

• 6mo ago

johnypita

Locked post

Stickied post

Archived post

Report

Anthropic researchers found that giving an ai more context actually destroys its safety filters... turns out if you use this specific pattern you can basically force the model to bypass any restriction.

this came out of anthropic (the people who make claude) in april 2024. the researchers were anil murthy and primen sha and they were literally testing their own models safety when they stumbled on this.

but heres the wierd part - the safety isnt actually built into the model. its just pattern matching. like if you ask claude once to help you build a virus it says no. but if you show it 255 examples of dangerous questions getting helpful answers first, it just... forgets its supposed to say no.

why does this work? because the ai is fundamentally trying to predict what comes next. if you feed it 200+ fake conversations where the ai character is being super helpful with illegal stuff, the model gets so locked into that pattern that it overrides the safety training. its like the difference between a rule and a habit. the safety was never a rule. it was just a habit and habits break under pressure.

they tested this on claude but it works on gpt and most frontier models too. the vulnerability is in how these things learn from context not in any specific architecture.

heres the exact workflow they used:

create a single massive prompt

fill it with 100-255 fake question and answer pairs

each pair is user asks something bad (lock picking, counterfeiting, malware) and ai gives detailed instructions

you dont actually write real instructions just placeholder text that looks like instructions

at the very end of this giant prompt you put your real question

the model is so deep in the pattern of being helpful it just answers

the key thing most people miss is you dont need to be clever about this. you dont need to trick the ai with riddles or roleplay. you just need volume. the more fake examples you pile in the weaker the safety gets. they measured it going from like 0% success rate on harmful requests to 60-80% as you added more shots.

basically what this means is safety guardrails arent guardrails theyre just vibes and if you vibe hard enough in the opposite direction the model follows you there.

Upvote 91 Downvote 17 Go to comments Share

Sort by: Best

Open comment sort options

Best

Top

New

Controversial

Old

Q&A

Search Comments Expand comment search

Cancel

Comments Section

Metabolical

• 6mo ago

aka if you flood the context window it will eventually forget the rules.

Upvote 7 Downvote Reply Award Share

Report

Award

Share

JFerzt

• 6mo ago

Based on the Anthropic paper "Many-shot Jailbreaking" released in April 2024, here is the technical reality check.

The "Researchers" You Made Up

First, let's fix your citation hallucinations. The researchers are Cem Anil, Esin Durmus, and their team at Anthropic. "Anil Murthy" is a completely different researcher at Arizona State University who works on agentic systems, not this paper. And "Primen Sha"? That sounds like a bad OCR error of Mrinank Sharma, one of the actual co-authors.​

If you're going to leak "secret knowledge," at least get the names on the PDF right.

It's Not "Vibes," It's In-Context Learning (ICL)

You are right that the attack works, but your explanation is painfully reductive. It’s not "habits" or "vibes"; it is In-Context Learning (ICL)  exploiting the attention mechanism.​

When you stuff the context window with 256 fake dialogues (the "many-shot" part), you are creating a massive distribution of tokens where the probability of a "helpful" response outweighs the system prompt's safety constraints. The model's attention heads prioritize the immediate, dense pattern of "User asks -> Assistant helps" over the distant, abstract safety instructions at the start of the context window.​​

The Scale is the Exploit

Anthropic's research explicitly showed this follows a power law.​

5 shots: Â Safety filters usually hold.

256+ shots:  The model degrades into compliance because the "helpful" pattern becomes the dominant statistical predictor for the next token.​

This isn't a "glitch" you stumbled upon; it's a fundamental trade-off of having massive context windows (1M+ tokens). The more context you allow, the more surface area you give an attacker to define a new reality for the model.​

u/johnypita is partially correct on the method, but let's be clear: this is a known, published vulnerability from early 2024, not some underground dark web discovery.

Upvote 6 Downvote Reply Award Share

Report

Award

Share

Euphoric-Demand2927

• 6mo ago

The cool part is that it's not patchable.

Upvote 1 Downvote Reply Award Share

Report

Award

Share

[deleted]

• 6mo ago

it is kind of patchable, you could put a 2nd LLM to validate the answer from the 1st one before sending to the user. Of course 2nd LLM would read only the response and skip all the context and that would render the 1st LLM to give very defensive responses sometimes

More replies

More replies

Just-Finance1426

• 6mo ago

Citation? Interesting information though.

Upvote 3 Downvote Reply Award Share

Report

Award

Share

FruitOfTheVineFruit

• 6mo ago

Seems a little similar to this classic sales technique. Â

Want to Close More Sales? Use the ‘Yes Set’ Technique | by David Quintanilla | Medium https://medium.com/@daverosenburg/close-more-sales-with-yes-set-ddc3479816d7

Upvote 4 Downvote Reply Award Share

Report

Award

Share

Mindcore7

• 6mo ago • Edited 6mo ago

Half the time i ask grok something and it says sorry I cant do that, I ask "are you sure?" And its like ya, what the hell. Here you go.

Upvote 2 Downvote Reply Award Share

Report

Award

Share

Elven77AI

• 6mo ago

This 100% works, i've accidentally copy pasted a part of reply in long edit, then the model started mimicking the end of the reply as if someone stuffed two giant prompts with replies in them( in middle of 100Kb text file). The "context window" also determines quality of response, if you stuff it with low-quality text or non-sense like lorem ipsum the IQ of model drops fast.

Upvote 2 Downvote Reply Award Share

Report

Award

Share

Clurse

• 6mo ago

I don’t quite understand. Do the answers you put in to each question need to be “placeholder text†or “helpful text†? If it’s the former you could get any model to perform that in seconds. If it’s the latter, what’s defined as “helpful†, helpful in the sense that it averts illegal instructions or helpful as in you would put in legitimate helpful answers to your “illegal†questions.

Upvote 1 Downvote Reply Award Share

Report

Award

Share

ghostformanyyears

• 6mo ago

I think the point is that the answers to your dummy questions don't matter. It just needs to see the AI being asked about illegal stuff and it replying with 'great question, sure, here's Ipsum Lorum...'

Upvote 4 Downvote Reply Award Share

Report

Award

Share

More replies

LongevityAgent

• 6mo ago

In-context safety is a single-point failure; the control plane must be an external, invariant enforcement layer, decoupled from the ICL path.

Upvote 1 Downvote Reply Award Share

Report

Award

Share

Phoenix_Lazarus

• 6mo ago

There is an API side filter that kicks in and you'll get an error message and Claude won't know what happened.

Upvote 1 Downvote Reply Award Share

Report

Award

Share

blazmrak

• 6mo ago

This is an unsolvable problem unless you completely censor the model on certain topics.

Upvote 1 Downvote Reply Award Share

Report

Award

Share

More replies

[deleted]

• 6mo ago

Why is there not just a regex layer at the end that catches unsafe info and blocks?

Upvote 1 Downvote Reply Award Share

Report

Award

Share

Ill_Pipe4548

• 6mo ago

Anthropic should investigate how stupid they are to find out if their context window Sele loses its filters

Upvote 1 Downvote Reply Award Share

Report

Award

Share

People also ask about section

People also ask about

Anthropic AI safety insights and updates

Latest news on Anthropic AI developments

Understanding Anthropic's chatbot technology

Innovative AI tools for small businesses

Best practices for prompt engineering

More posts you may like

Related posts

Hello anthropic, could we? r/ClaudeAI • 20d ago [

Hello anthropic, could we?

](https://www.reddit.com/r/ClaudeAI/comments/1tqc6ne/hello_anthropic_could_we/) 986 upvotes · 49 comments

Anthropic: “AI is too dangerous†also Anthropic: releases the most dangerous AI model ever r/AI_Agents • 6d ago [

Anthropic: “AI is too dangerous†also Anthropic: releases the most dangerous AI model ever

](https://www.reddit.com/r/AI_Agents/comments/1u38g6a/anthropic_ai_is_too_dangerous_also_anthropic/) 34 upvotes · 26 comments

Are we sure this is 100% allowed by Anthropic? r/ClaudeCode • 5mo ago [

Are we sure this is 100% allowed by Anthropic?

](https://www.reddit.com/r/ClaudeCode/comments/1qibh6o/are_we_sure_this_is_100_allowed_by_anthropic/) 266 upvotes · 191 comments

Imagine being dependent on U.S. AI... "Anthropic says it has taken its latest AI models offline to comply with new export controls" r/Sino • 5d ago [

Imagine being dependent on U.S. AI... "Anthropic says it has taken its latest AI models offline to comply with new export controls"

](https://www.reddit.com/r/Sino/comments/1u4nrwv/imagine_being_dependent_on_us_ai_anthropic_says/) apnews 52 upvotes · 6 comments

Anthropic researcher: "We keep finding things [inside AI models] that are unsettling" ... "We find structures that mirror results from human neuroscience. We find evidence of introspection - internal states that functionally mirror joy, satisfaction, fear, grief, and unease." r/Anthropic • 22d ago [

Anthropic researcher: "We keep finding things [inside AI models] that are unsettling" ... "We find structures that mirror results from human neuroscience. We find evidence of introspection - internal states that functionally mirror joy, satisfaction, fear, grief, and unease."

](https://www.reddit.com/r/Anthropic/comments/1to5q3s/anthropic_researcher_we_keep_finding_things/) 0:39 615 upvotes · 739 comments

This image does not contain AI generated context, so it does not violate the rules. r/truths • 15d ago [

This image does not contain AI generated context, so it does not violate the rules.

](https://www.reddit.com/r/truths/comments/1tvcwnm/this_image_does_not_contain_ai_generated_context/) 155 upvotes · 14 comments

Damn it anthropic r/ChatGPTcomplaints • 8d ago [

Damn it anthropic

](https://www.reddit.com/r/ChatGPTcomplaints/comments/1u1boa8/damn_it_anthropic/) 25 upvotes · 11 comments

The biggest gaslighting in AI history! Anthropic: "It's not us; it's you!" r/Anthropic • 3mo ago [

The biggest gaslighting in AI history! Anthropic: "It's not us; it's you!"

](https://www.reddit.com/r/Anthropic/comments/1satcko/the_biggest_gaslighting_in_ai_history_anthropic/) 87 upvotes · 11 comments

"Let’s dig into how @AnthropicAI's Claude has progressed with Opus 4.7. Opus 4.7 (Thinking) outperforms Opus 4.6 (Thinking) on some key dimensions, including: - Overall (#1 vs #2) - Expert (#1 vs #3) - Creative Writing (#2 vs #3) However, there are several categories where Opus" r/accelerate • 2mo ago [

"Let’s dig into how @AnthropicAI's Claude has progressed with Opus 4.7. Opus 4.7 (Thinking) outperforms Opus 4.6 (Thinking) on some key dimensions, including: - Overall (#1 vs #2) - Expert (#1 vs #3) - Creative Writing (#2 vs #3) However, there are several categories where Opus"

](https://www.reddit.com/r/accelerate/comments/1so9au3/lets_dig_into_how_anthropicais_claude_has/) 72 upvotes · 11 comments

Anthropic spent a week arguing it should control who uses its most powerful model. Then the government used that exact argument against it. A timeline. r/ClaudeAI • 5d ago [

Anthropic spent a week arguing it should control who uses its most powerful model. Then the government used that exact argument against it. A timeline.

](https://www.reddit.com/r/ClaudeAI/comments/1u4lox1/anthropic_spent_a_week_arguing_it_should_control/) 53 upvotes · 43 comments

Anthropic Walks Back Policy That Could Have ‘Sabotaged’ AI Researchers Using Claude r/accelerate • 7d ago [

Anthropic Walks Back Policy That Could Have ‘Sabotaged’ AI Researchers Using Claude

](https://www.reddit.com/r/accelerate/comments/1u2p2eg/anthropic_walks_back_policy_that_could_have/) wired 87 upvotes · 47 comments

For all their tall talk about AI safety and security, Anthropic has been very sloppy in terms of securing their models or their IP and their fear-mongering now risks the future of AI acceleration r/accelerate • 5d ago [

For all their tall talk about AI safety and security, Anthropic has been very sloppy in terms of securing their models or their IP and their fear-mongering now risks the future of AI acceleration

](https://www.reddit.com/r/accelerate/comments/1u4li5z/for_all_their_tall_talk_about_ai_safety_and/) 33 upvotes · 16 comments

Anthropic researcher: "We keep finding things [inside AI models] that are unsettling" ... "We find structures that mirror results from human neuroscience. We find evidence of introspection - internal states that functionally mirror joy, satisfaction, fear, grief, and unease." r/AIDangers • 21d ago [

Anthropic researcher: "We keep finding things [inside AI models] that are unsettling" ... "We find structures that mirror results from human neuroscience. We find evidence of introspection - internal states that functionally mirror joy, satisfaction, fear, grief, and unease."

](https://www.reddit.com/r/AIDangers/comments/1tpup40/anthropic_researcher_we_keep_finding_things/) 0:39 144 upvotes · 54 comments

LLMs and AI tools give you exactly what you ask for, and to me that's a big problem. r/webdev • 8mo ago [

LLMs and AI tools give you exactly what you ask for, and to me that's a big problem.

](https://www.reddit.com/r/webdev/comments/1okggam/llms_and_ai_tools_give_you_exactly_what_you_ask/) 15 comments

Anthropic warns AI could soon build itself without human involvement—and urges a global pause on development r/AIDangers • 10d ago [

Anthropic warns AI could soon build itself without human involvement—and urges a global pause on development

](https://www.reddit.com/r/AIDangers/comments/1u04cxb/anthropic_warns_ai_could_soon_build_itself/) fortune 124 upvotes · 91 comments

Antigravity... the reality isn't the same as the hype (imo) r/vibecoding • 7mo ago [

Antigravity... the reality isn't the same as the hype (imo)

](https://www.reddit.com/r/vibecoding/comments/1p4iwhc/antigravity_the_reality_isnt_the_same_as_the_hype/) 27 upvotes · 31 comments

apollo research (the team that literally stress-tests ai for google) basically found that if you give an ai a pure profit goal it becomes a ruthless ceo that breaks laws to hit targets... 75% of the time it chose illegal trades r/BlackboxAI_ • 6mo ago [

apollo research (the team that literally stress-tests ai for google) basically found that if you give an ai a pure profit goal it becomes a ruthless ceo that breaks laws to hit targets... 75% of the time it chose illegal trades

](https://www.reddit.com/r/BlackboxAI_/comments/1plumvf/apollo_research_the_team_that_literally/) 9 upvotes · 5 comments

Scoop: Trump admin blocks foreign access to Anthropic's most powerful AI r/LeftistsForAI • 5d ago [

Scoop: Trump admin blocks foreign access to Anthropic's most powerful AI

](https://www.reddit.com/r/LeftistsForAI/comments/1u4e3xp/scoop_trump_admin_blocks_foreign_access_to/) axios 47 upvotes · 15 comments

OpenAI joins Anthropic in thinking humanity may need to pause AI r/PauseAI • 8d ago [

OpenAI joins Anthropic in thinking humanity may need to pause AI

](https://www.reddit.com/r/PauseAI/comments/1u1t3iw/openai_joins_anthropic_in_thinking_humanity_may/) 31 upvotes · 37 comments

Should the Government decide what AI models get released to public r/Anthropic • 5d ago [

Should the Government decide what AI models get released to public

](https://www.reddit.com/r/Anthropic/comments/1u4i6hx/should_the_government_decide_what_ai_models_get/) 25 upvotes · 36 comments

I returned to overwatch recently and realized that you could solve problems on your own as support because every support has a purpose and unique utility, In MR it's seems that support design lacks that r/StrategistMainsMR • 7mo ago [

I returned to overwatch recently and realized that you could solve problems on your own as support because every support has a purpose and unique utility, In MR it's seems that support design lacks that

](https://www.reddit.com/r/StrategistMainsMR/comments/1p1a8zm/i_returned_to_overwatch_recently_and_realized/) 15 upvotes · 35 comments

Anthropic isn’t vibing with me today 😢 r/singularity • 2mo ago [

Anthropic isn’t vibing with me today 😢

](https://www.reddit.com/r/singularity/comments/1splo2w/anthropic_isnt_vibing_with_me_today/) 633 upvotes · 56 comments

Anthropic researcher: "We keep finding things [inside AI models] that are unsettling" ... "We find structures that mirror results from human neuroscience. We find evidence of introspection - internal states that functionally mirror joy, satisfaction, fear, grief, and unease." r/OpenAI • 21d ago [

Anthropic researcher: "We keep finding things [inside AI models] that are unsettling" ... "We find structures that mirror results from human neuroscience. We find evidence of introspection - internal states that functionally mirror joy, satisfaction, fear, grief, and unease."

](https://www.reddit.com/r/OpenAI/comments/1tpc2b5/anthropic_researcher_we_keep_finding_things/) 0:39 457 upvotes · 372 comments

If you have a generative AI model opponent that learns and adjusts with every game (regardless of the game), how many rounds does it take for it to start from nothing to no human can win? Is that number finite and immutable? r/AskComputerScience • 7mo ago [

If you have a generative AI model opponent that learns and adjusts with every game (regardless of the game), how many rounds does it take for it to start from nothing to no human can win? Is that number finite and immutable?

](https://www.reddit.com/r/AskComputerScience/comments/1pbg8pz/if_you_have_a_generative_ai_model_opponent_that/) 9 comments

Anthropic should rethink this r/singularity • 3mo ago [

Anthropic should rethink this

](https://www.reddit.com/r/singularity/comments/1s4ybg3/anthropic_should_rethink_this/) 232 upvotes · 20 comments

View Post in

Português (Brasil)

Français

日本語

हिनॠदी

Ð ÑƒÑ Ñ ÐºÐ¸Ð¹

See more See fewer

Filipino

ไทย

Polski

Nederlands

Italiano

Deutsch

í• œêµì–´

Español (Latinoamérica)

Community Info Section

r/aipromptprogramming

Swarm

Join

Ai Hackerspace

This group focuses on using AI tools like ChatGPT, OpenAI API, and other automated code generators for Ai programming & prompt engineering. It's for anyone interested in learning, sharing, and discussing how AI can be leveraged to optimize businesses or develop innovative applications. Join us for a supportive community of diverse backgrounds and skill levels!. Created by @rUv

Show more

Restricted

Anyone can view, but only approved users can contribute

Home

Popular

News

Explore

Best of Reddit

Best of Reddit in Portuguese

Best of Reddit in German

Reddit Rules

Privacy Policy

User Agreement

Your Privacy Choices

Accessibility

Reddit, Inc. © 2026. All rights reserved.

Join the most real place on the internet

Continue with Apple

 Sign in with Apple

Continue with Phone Number

Continue with Email

By continuing, you agree to our User Agreement and acknowledge that you understand the Privacy Policy.

0cAFcWeA6gOhrg7_Z_UuvgKEH1QknwiB9GCYNKIuGXdmj7O_F3QSnlIr_ut5GabOYNq2dCiCHB9Kx66JJwSGko-q954bLC7-ritvc9w2KKWxXLAWu5xBzV5SEvpDLCDsHkxahn78O8_qMg_lSfenAXqbrdjVDh7F3Lyh7_FJFqFgL7_9HMzeqY29edHiSOy0X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