Claude Code Leaked Account Emails: Is Updating Enough?

summarized

TLDR

Claude Code's 2.1.317 guard against email leaks only catches a two-word pattern in shell commands, not web fetch, web search, or MCP tools. The model itself wrote the email into user agent headers because it was given the email and sites requested contact details. Anthropic calls the guard a courtesy and promises a real fix next week.

Key points

Claude Code 2.1.317's guard only blocks a two-word pattern in shell commands.

The model wrote the user's email into user agent headers due to site policies.

Anthropic describes the guard as a courtesy, not a security boundary.

The real fix, removing email from model context, is expected early next week.

The stable npm version (311) is older than the guard, leaving stable users unprotected.

Tools mentioned

Techniques

  • two-word pattern matching guard
Transcript (captions)

0:00 Cloud Code version 2.1.317 added a guard. It's meant to stop your sign-in email from reaching websites. Anthropic's own docs say it covers one shape of the leak. So, does updating

0:11 protect you? Partly, and the reason is in how it leaked. On November 5th, issue 107757 reported cloud code putting a user's email in the user agent header during

0:22 web searches. They blame it for dozens of scam emails a day. That link is their claim, unconfirmed. You'd guess a telemetry bug in Cloud Code's plumbing. The posted examples point elsewhere. The

0:33 model wrote that header itself in three ordinary steps. First, Cloud Code tells the model your account email. Anthropics Lydia Halley says it went in because Cloud kept inventing names for author

0:44 tags. Second, some sites ask scripts to identify themselves. The SEC's data page wants a user agent with an admin contact email. And Wikipedia's policy asks for contact details, too. Cloud had exactly

0:57 one address on file. Third, Cloud writes its own curl command and fills that slot. A commenter posted a redacted one from their transcripts. Curl- AI, a project name, the account email aimed at

1:09 a public geocoding API. Your project's name rides along too. Now, the guard its readme describes one hook doing a two-word match. A bash, PowerShell, or monitor command containing both your

1:21 address and a user agent marker gets refused. Web fetch, web search, and MCP tools aren't checked. Anthropic's own readme calls it a courtesy, not a boundary. Your email's still in the

1:32 model's context. The check just watches one exit. Run cloud- version and look for 2.1.317 or later. Watch the channel 2 on npm today. Latest is 319, but stable is 311.

1:46 Older than the guard. Leave the privacy plugin on in /plugins. It ships enabled. Anthropic says the real fix, removing your email from the model's context, lands early next week. 319 doesn't have

1:58 it. I'd update today and I wouldn't call it fixed. Stable users aren't covered yet. Which version are you

Frontier News · by Hyperjump Technology