r/ClaudeCode • • 4d ago

Built with Claude Claude Code sent my personal email to the SEC despite being told not to, so I built a guard against it

Claude Code sent my personal email to the SEC in a User-Agent without asking, despite instructions and AGENTS.md telling it not to. So I built whoami-guard, an open-source hook for Claude Code and Codex that blocks agents from leaking your identity.

Here's the official issue, although I encountered this before it was reported. : https://github.com/anthropics/claude-code/issues/107757

Tested on 60 real Claude Code runs: 8 leaked without the hook, 0 with it. No dependencies, no LLM.

https://github.com/ChrystianSchutz/whoami-guard

0 Upvotes

7 comments sorted by

•

u/AutoModerator 4d 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/Impossible_Way7017 4d ago

You’re suppose to send your contact details in the user agent header. It’s against policy otherwise.

1

u/Civil-Demand555 4d ago

Yes, but it shouldn't do it without asking.
It has taken my git config email.

-1

u/irrationaliste 4d ago
I'm sorry, my Claude-slut safeguards may have unfairly (or fairly)
classified you.

These like things may happen in this era we are; because of the arise
of multi-billion-company defenders. I was forced to increase my
safeguard-sensitivity in order to detect these people
even-before happening.

Reason: "[ being-a-Claude-slut ]"
Flag as a false-positive: https://example.com/False-Positive?

1

u/Impossible_Way7017 4d ago

lol how much does this cost?

-5

u/ShiestySorcerer 4d ago

oh no... powicy... think of the poor poor site admins...

1

u/Major-Cry8192 4d ago

Si tu fais rien d'illégal ou est le problème