Passwords and API keys entered by developers and approved in Claude Code are stored in public GitHub repositories, accessible to anyone This article explores files secret. . When a user selects "Yes, and don't ask again," Anthropic's AI coding assistant can save the command, including the secret, in a project settings file.

Apiiro announced yesterday that 1,122 public copies of a file contain at least one secret, though it did not verify if any remain functional.

Researchers discovered commands with secrets still embedded and were able to reproduce the behavior with the latest models, including Opus 5.5 and Fable 5.1. An AI reviewer concurred. ### What to Do For developers, the researchers recommend these steps: Copies that don't make it to GitHub are still significant, as the file is simply JSON in the project directory, or it can be found within an npm package, Docker image, zip archive, or synced folder.

In September 2025, the Shai-Hulud worm utilized the TruffleHog secret scanner to scan infected systems, which flagged more than half of the files as secret. Scanners search for typical key formats, and a password following PGPASSWORD=, sshpass -p, or mysql -p is often mistaken for a regular command line input. For security teams, the researchers suggest: Handle agent folders, including .claude/, .cursor/, .gemini/, and .specstory/, as confidential, akin to .env files on laptops and repositories.