Claude Code's “Don't Ask Again” File Exposes Passwords and Keys in 1,122 Public Copies on GitHub
A security firm found that an AI coding assistant's feature to stop asking for approval saved passwords and keys in public files.
Overview
A software security company found that 1,122 public copies of a settings file for an AI coding assistant contain passwords and API keysA secret string a program sends with an API request to identify itself and get access. These secretsPrivate credentials used by software, such as API keys, database passwords, and encryption keys were saved when developers told the tool to stop asking for permission to run specific commands. The file stores the exact command, including any typed secrets, in plain text within the project directory. Although the tool tries to hide the file from version control, it often fails to prevent the file from being committed and shared. Removing the file does not fix the problem because older versions remain in the history and in copies of the repositoryA central storage place where a software project's source code, change history, and configuration files are kept. One company confirmed that a leaked key was still active, meaning the exposed credentials could be used by anyone who finds them.
Terms in this story
- API keys
- A secret string a program sends with an API request to identify itself and get access. Software teams sometimes accidentally upload an API key to a public code repository, allowing attackers who scan for leaked keys to rack up cloud bills or read private databases. Security+ objective 4.6 lists the term
- API
- A structured interface that lets one software program request data or actions from another program. Mobile apps, websites, and cloud services talk to backend servers through an API, and a poorly protected API can let attackers pull customer records in bulk. Security+ objective 4.7 lists the term
- Keys
- The secret value that locks or opens a message. Many breach and ransomware stories come down to who holds the cryptographic key, since strong encryption protects data only as long as the key stays secret. From the CYBR 101 room CYBR 101: Ciphers and encryption (part 1)
- secrets
- Private credentials used by software, such as API keys, database passwords, and encryption keys. Software teams use vault tools to keep secrets out of source code because anyone who finds a leaked secret in a public repository can log right in to the company's cloud services.
- repository
- A central storage place where a software project's source code, change history, and configuration files are kept. Software teams collaborate by pushing code to a shared repository, and attackers scan public repositories for accidentally committed API keys or try to poison popular projects.
- token
- A short-lived digital pass that a server gives a logged-in user or app. After you sign in once, your browser or app presents a token on each request, and if malware steals that token the attacker can act as you without knowing your password. Security+ objective 4.6 lists the term
- shell commands
- The command-line interpreter program that accepts text commands and runs them on an operating system. When an attacker exploits a web server and pops a shell, they can type operating system commands directly as if they were sitting at the server's keyboard.
- permissions
- The specific rights granted to an account or app to read, write, or run files and services. When a mobile app or browser extension asks for broad permissions, such as reading every web page you visit, a malicious update can abuse those rights to steal passwords.
- sessions
- An active logged-in period of communication between a user or device and a server. Once you log in to a website, the server tracks your session so you can click from page to page without retyping your password on every screen.
- prompt
- The text instruction or question a user or program sends to an artificial intelligence model. In AI security news, a prompt includes both the visible question typed by a user and the hidden instructions that an attacker might embed in a web page.
- server
- A computer or program on a network that stores data and responds to requests from client devices. Online stores, email systems, and multiplayer games all run on servers in data centers or the cloud, making unpatched servers a primary target for intruders.
- database
- An organized digital store of structured records, such as customer accounts, orders, or messages, queried by software. Behind almost every website and mobile app sits a database, and attackers target misconfigured or unpatched databases to copy millions of user records at once.
This page is a short description made for this site. The article itself, with its author's name and its own link, is on the The Hacker News website. Cite the article, not this page.
Read the full article on The Hacker News (opens in a new tab)
Course connections
Each line below connects this story to a Security+ objective (a skill on CompTIA's Security+ exam, a common first cybersecurity certification), a CYBR 101 week, or a cybersecurity job, and quotes the words that made the connection.
- Kind of story: Vulnerability and patch
"Removing it from a project does not undo the leak..." Found by reading the article; these exact words are in it - Who is affected: "...developers..." Organizations using the product
Copied word for word from the article - Security+ 4.6 Given a scenario, implement and maintain identity and access management.
"Claude Code's “Don't Ask Again” File Exposes Passwords and Keys in 1,122 Public Copies on..." Found in the headline - CYBR 101 week 1: the course, logins and two-factor sign in, cyber roles and jobs
"Claude Code's “Don't Ask Again” File Exposes Passwords and Keys in 1,122 Public Copies on..." Found in the headline - CYBR 101 week 6: AI, how it is attacked, and what it does for attackers and defenders
"Claude Code's “Don't Ask Again” File Exposes Passwords..." Found in the headline
How a story is connected to the course, and every objective, week and job role
Same story at other outlets
- Claude Code is accidentally exposing secrets all over GitHub
- Anthropic Claude Code’s ‘Don’t Ask Again’ Feature Exposes 2,539 Secrets on GitHub
- Claude Code’s “Don’t Ask Again” Feature Exposes 2,539 Secrets Across 1,994 GitHub Repositories
- Claude Code’s “Yes, and Don’t Ask Again” Option Can Leak Passwords and API Keys to GitHub