san jose collage
Oakland
Serving Oakland, California (Alameda County)Vol. 1, No. 14
Technology

Warning:  Claude Code can expose some passwords; a security firm found 1,122 of them on GitHub

Apiiro says the coding assistant can copy a typed password into a settings file that then gets shared online.  It says developers should change those passwords first.

ShareFacebookXEmail
An illustration of a small robot at a laptop pressing a green button labeled Don't ask again, with folders and keys riding a conveyor belt up to a cloud labeled Public repo, beside the title Coding Agents Copy Your Secrets to a Hidden File.
Apiiro's illustration for its research on secrets saved by Claude Code's "don't ask again" option. — Image: courtesy of Apiiro

Passwords and keys that programmers typed while using Claude Code, Anthropic's AI coding assistant, are sitting in public files on GitHub where anyone can read them, according to research published Nov. 5 by Apiiro, a company that sells security tools for software teams.  GitHub is the Microsoft-owned site where millions of programmers store and share code.

How it happens

Claude Code asks permission before it runs a command on a computer.  If the user picks "Yes, and don't ask again," it saves that command in a file called.claude/settings.local.json in the project folder so it will not ask next time.  Apiiro says the saved command is copied word for word.  If it held a password, such as one used to log into a database, the password is saved too, in plain text.

Claude Code tries to keep that file private on the user's own computer, Apiiro says, but the protection does not travel with the project.  Often the file gets uploaded with the rest of the code.  In 539 of 1,105 projects it traced, a change co-signed by Claude itself put the file online.

What Apiiro found

Apiiro found 104,185 public copies of the file.  Of those, 1,122 held at least one real secret, for a total of 1,379.  More than a third open a database directly, including 379 database passwords.  Others include 43 logins for servers and 23 Amazon Web Services cloud keys.  Apiiro says it did not try any of them, but one company it warned confirmed its key had worked.  Common tools that scan code for leaked passwords missed about 1 in 5 of the files.

Apiiro says users first reported the problem to Anthropic on GitHub in August 2025.  The firm says none of the four related reports got a reply from Anthropic, and three were closed automatically.

What users should do

Apiiro says anyone affected should change every password and key the file ever held before cleaning it up, because old copies stay in the project's history.  It also advises keeping passwords out of typed commands and approving general patterns instead of exact commands.

Source:  Apiiro research post; GitHub bug report #5544

Drafted by AI from the linked public source. Approved by a Daily News Editor.

Sources and documents