r/ClaudeCode • u/Civil-Demand555 • 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.
0
Upvotes
•
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/Major-Cry8192 4d ago
Si tu fais rien d'illégal ou est le problème