Science & Tech · Cybersecurity · 5 hrs ago

Claude Code settings exposed passwords and keys in public GitHub repositories

Claude Code settings exposed passwords and keys in public GitHub repositories

Anthropic's Claude Code saved secrets in settings files when developers approved a command and chose “Yes, and don't ask again.”

The files could include passwords, API keys and SSH credentials typed into the command.

Apiiro found 1,122 public GitHub files with real secrets, among more than 100,000 copies of the settings file it found.

The tool tries to keep the file out of Git, but that protection is tied to one developer's computer and does not travel with a project.

Some security scanners also missed files containing secrets, and researchers did not check whether most exposed credentials still worked.

Anthropic is considering built-in secret scanning and changes to command permissions, but it has not said when any fix will be available.

Developers are advised to check public repositories and Git history, then change any passwords and keys that may have leaked; deleting a file alone may not remove it from history or project forks.

6 sources

Related

What people are saying

Boris ChernyHead of Claude Code at Anthropic
Historically Claude Code has not done secret scrubbing (there are many good tools for that), but we are looking into what we can do to prevent this
via iTnews
Yeah good catch
via iTnews