Illustration, AI-generated from the story text. Tap a panel to read the story through it.

When a Claude Code user answers "Yes, and don't ask again," the tool saves the approved command to .claude/settings.local.json, including any password or key typed into it.

Apiiro, a software security company, found 104,185 copies of that file in public GitHub repositories, and 1,122 of them held at least one secret: 1,379 in all, among them 379 database passwords, 43 logins and 23 AWS keys. Counting older versions, forks, the shared settings file and saved chat logs, the total is 2,539 secrets across 1,994 repositories.

Every file with a secret was still on its repository's default branch when Apiiro checked, half of them for at least 217 days. Of 16 coding compared, Claude Code is the only one confirmed to save the full command to a project file by default.

A bug report about it filed in August 2025 was closed as "not planned" by an automated bot, as were four related reports. Anthropic had not responded at publication.
Claude Code's "don't ask again" button has put 1,379 secrets into public GitHub repositories
When a Claude Code user answers "Yes, and don't ask again," the tool saves the approved command to .claude/settings.local.json, including any password or key typed into it. Apiiro, a software security company, found 104,185 copies of that file in public GitHub repositories, and 1,122 of them held at least one secret: 1,379 in all, among them 379 database passwords, 43 SSH logins and 23 AWS keys. Counting older versions, forks, the shared settings file and saved chat logs, the total is 2,539 secrets across 1,994 repositories.
Every file with a secret was still on its repository's default branch when Apiiro checked, half of them for at least 217 days. Of 16 coding agents compared, Claude Code is the only one confirmed to save the full command to a project file by default. A bug report about it filed in August 2025 was closed as "not planned" by an automated bot, as were four related reports. Anthropic had not responded at publication. SourcesB
Sources
- BClaude Code's "Don't Ask Again" file (The Hacker News)thehackernews.com
This story ran in the Afternoon Brief of November 8th 2026.