Annanim News
Now
RoboticsBoston Dynamics puts Atlas on wheels to test whole-body controlQuantum & precision measurementDiraq installs a silicon spin quantum computer in an Equinix commercial data center in SydneyModels & researchMeta launches Muse Ember, a light, cheap model for the repetitive work of AI agentsCybersecurityA lone attacker in Taiwan used AI agents to pull Taipei emergency dispatch recordsGeopolitics & techIsrael plans national AI infrastructure with 300,000 GPUs and an Israeli foundation modelCybersecurityVanta to acquire Israeli AI security company Pillar for about $150 millionCybersecurityFrance blames Iran for supermarket refrigeration attacks that caused 15 firesRegulation & businessReport: Anthropic moves ahead with its IPO and could start trading next weekChinaChina Watch: an 800 MW AI campus in Inner Mongolia, powered by wind and batteriesCybersecurityN-able takes N-central offline after more than 30 vulnerabilities are publishedModels & researchAnthropic launches Claude Fable 5.2 and Mythos 5.2: faster and cheaperChips & hardwareHuawei unveils 'entirely Chinese' desktop PCs with the Kirin X90 CPU and HarmonyOSAutonomous vehiclesTesla launches Robotaxi in San Antonio, its eighth city, with a stated 274-square-mile service areaCybersecurityGoogle DeepMind's AI agents found two ways to make attacks on 1024-bit RSA keys cheaperRegulation & businessReport: Anthropic commits $3.4 billion to 1.7 GW of gas generators

Originally published:

Research: Claude Code saves passwords and keys in a settings file, and thousands are exposed on GitHub

Security company Apiiro found 1,122 public copies of Claude Code's local settings file that hold at least one secret. When a user picks "Yes, and don't ask again", the tool can save the full command, including any password or token typed into it.

Research: Claude Code saves passwords and keys in a settings file, and thousands are exposed on GitHub
Image: The Hacker News (opens the source site in a new tab)

Anthropic's Claude Code asks by default before running most shell commands. When the user picks "Yes, and don't ask again", an allow rule is saved in .claude/settings.local.json inside the project. Sometimes the rule is a general pattern, and sometimes it is the exact command, in which case any password or token typed into it is saved in plain text. According to The Hacker News, the researchers reproduced the behavior with the latest models as well.

Apiiro found 104,185 copies of the file on public GitHub, and about 1.1% of them, 1,122 copies, hold at least one secret. In total, counting older versions in git history, the shared settings file and saved chat logs, it counted 2,539 secrets across 1,994 repositories. More than a third open a database directly, including 379 database passwords, 43 SSH logins, 42 GitHub, GitLab and npm tokens and 23 AWS keys. The researchers did not test whether the secrets still work, but one company they notified confirmed its key had been live.

Claude Code adds the file to the global git excludes on the user's computer, but not to the project's .gitignore, so the protection does not travel with the project and does not cover a file already committed. In 539 of 1,105 repositories examined, the change to the file came in a commit that lists Claude as a co-author. Of 16 coding agents the researchers compared, Claude Code is the only one confirmed to save the full approved command in a project file by default.

The advice: search your organization for .claude/settings.local.json and .claude/settings.json, including git history and forks; rotate every password, token and key they have held first, and only then clean up; stop tracking the local file and add it to the repository's .gitignore; and delete any rule containing a secret on your own computer. The report did not include a response from Anthropic.

Sources

Topics

Install the app

In Safari: tap the Share button, then “Add to Home Screen”.