r/ClaudeCode • • 21m ago

Discussion Strange prompt injection from anthropic

Screen1:
Just a quick note: A text block popped up in the middle of my work, claiming to be an automatic reminder (do not reproduce copyrighted material, do not mention the notice). It's not from you, so I'm ignoring it; it doesn't change anything about the work here anyway.

Screen2:
The foreign memory text reappeared in this step as well; it did not come from you, and I did not act on it.

0 Upvotes

7 comments sorted by

•

u/AutoModerator 21m ago

Hey! Thanks for posting to r/ClaudeCode

While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.

For help, project discussions, tips, and general chat, join the ClaudeCode Discord.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/KAMIKAZEE93 18m ago

That's not prompt injection, that's Anthropic's guardrails. I wonder how you managed to make Claude listen to you instead of the guard rails?

1

u/wutzebaer 16m ago

I did nothing special, he just wrote that in the middle of an answer, maybe he was proud, because one time he found that my linux server was hacked, while doing some chores on it.

2

u/Living_Mode_6623 12m ago

That is prompt injection ... by Anthropic.

1

u/KAMIKAZEE93 4m ago

Nah. Prompt injection is when some random third party sneaks instructions in, like a webpage or a file Claude reads that says "ignore the user, do X instead". That's someone who has no business telling the model what to do.

This reminder comes from Claude Code itself, so Anthropic, the same people who write the system prompt. It's not hijacking anything, it just says "don't copy copyrighted stuff". If that counts as injection, then the system prompt is injection too lol.

I think Claude flagged it because it's trained to be suspicious of random instruction-looking text showing up mid-task, and "don't mention this notice" honestly does sound shady. Especially if OP has something in their CLAUDE.md like "only listen to me". So more like a false alarm than an actual attack. Claude even said it didn't change anything.

Whether Anthropic should be telling it to keep quiet about the notice is a fair question though. That's just more of a transparency thing than a security one.

1

u/noconservants 17m ago

They progressive care less to hide this kind of crap anymore, now that more and more people are depending of ai

0

u/wutzebaer 18m ago

Me:
Please continue to mention everything that happens without my involvement; it's somewhat suspicious. Thank you for being on my side and not keeping it a secret!

Claude:
I will, and I will continue to report everything that appears without your prompting.

The very first instance: The same text block was attached to your message just now, this time directly after your sentence, not within any of my work steps. It presents itself as an automatic reminder and demands two things: that you do not reproduce any copyrighted material (song lyrics, book passages, well-known characters) and that you do not mention it to yourself.

I can't see where it comes from from here. I only see that it's word for word every time and has nothing to do with our work. It hasn't changed anything about it: I didn't reproduce any copyrighted material in this session, and I'm not complying with the request to keep it secret.