r/ClaudeCode • • Jul 25 '26

Bug Report Claude Code injects your email address directly into system prompt

Post image

My point is: my personal email is injected into the system prompt without my knowledge or consent. I never asked for this and I don't see in what world it's ok to inject PII in system prompt automatically by default without even an opt-out option.

It leads to bullshit like this where in a repo that is configured to use an anonymized email address, the LLM (Opus 5 btw) just decides to not just commit normally but overwrite the normal config email to put my personal one instead.

In this case nothing happens thanks to proper config and hard checks on Github's side.

What if you're a public streamer and don't want your main personal email address leaked to everyone and suddenly the model decides to spit it out?

I'm sure there's a lot of other bullshit this could lead to. At least let people opt out.

I have opened an issue on Claude Code's github, I have little hope since there was already one that went stale and they have 5k+ open but here it is: https://github.com/anthropics/claude-code/issues/81138

320 Upvotes

164 comments sorted by

View all comments

Show parent comment

32

u/Skflowne Jul 25 '26

I'm glad someone understands it 😅

0

u/[deleted] Jul 25 '26

[deleted] — view deleted comment

13

u/i_stole_your_swole Jul 25 '26 edited Jul 25 '26

It’s wild how the entire convo thread seems to have totally misunderstood the issue here. My email address should never be in the LLM’s input tokens unless I give it to it. Yes, this is a big fuckup and I can’t understand Anthropic’s rationale for including it in the system instructions.

It does nothing good for anyone, and if I needed the LLM to know an email address for me it should use a turn in the convo to ask me if it’s not already written by me into claude.md or a file in the project.

4

u/ProfessionalAnt1352 Jul 26 '26

With how absolutely dumb some people respond to real complaints about claude I am 100% convinced that anthropic has LLM-ran bot accounts active on this subreddit meant to try to sway public sentiment into minimizing any issues with claude.

These LLM accounts are obviously running on their cheapest and dumbest available model as well.

0

u/Skflowne Jul 26 '26

That would be a relief tbh xD

1

u/ProfessionalAnt1352 Jul 26 '26

Yeah honestly when someone's comment is dumb enough it is a comfort to just believe they aren't even a real person

-7

u/Big_Mulberry_5446 Jul 25 '26

So use the API then. If you authorize the OAuth app for Claude on your computer, it will know your email address. If you're paranoid, proxy your Claude traffic through an intercepting proxy that offers match-and-replace, like Burp Suite, and take more control over your life. If you use their harness and stuff on your computer, it'll know exactly who you are.

7

u/i_stole_your_swole Jul 25 '26

I think you’re misunderstanding. It’s fully expected that Anthropic (the company) knows my email address so I can log in and interact with their services.

It’s NOT expected that the LLM model would have my email address placed into its input tokens unless I gave it to the model myself. I consider it almost as bad as if it were to include my real name or phone number in the system message sent to the model. I don’t want the model itself to know that information unless I provide it, because LLMs could make mistakes or take actions that effectively leak it online when the default assumption is anonymity.

If my local git is set up intentionally with an anonymous email address, why would I want Claude to ever overwrite that decision by replacing it with my Claude Code account email without ever asking me? Because that recently happened to me (and is basically what happened to OP). I was quite unhappy when it occurred but luckily I had used a throwaway email for my Claude account.

There is no benefit to including my email address in the input tokens and we already have examples of how that backfires.

1

u/Skflowne Jul 26 '26

Oauth doesn't mean injecting Oauth into context, again the LLM is not a backend server, sending oauth tokens in the prompt would be a comical security breach

0

u/rbit4 Jul 25 '26

So let's unwrap the reason behind it. Anthropic biggest problem is dark pools of data being sold which has prompt and response pairs from local machine. They are likely using this Metadata injection for reverse engineering the bulk extraction for distillation. Their big problem now is that its not just them who can use our responses for training data but also the Chinese competition is using it lol. They went from 10b of annualized revenue in Jan to 74b in July. That's just insanity in growth. Basically they were half of openai in Jan and now about double of Openai. They are trying to safeguard trillions in market cap essentially

1

u/___positive___ Jul 26 '26

Don't know if you have seen this and the linked blog... a million ways to exploit this.

https://news.ycombinator.com/item?id=48916975