10.11.2026AI Security & Scams
English
Claude Code's “Don't Ask Again” File Exposes Passwords and Keys in 1,122 Public Copies on GitHub
▶Watch on YouTube · Смотреть на YouTubeAbstract · Swati Khandelwal, The Hacker News (research by Apiiro) · "Claude Code's “Don't Ask Again” File Exposes Passwords and Keys in 1,122 Public Copies on GitHub" · thehackernews.com · 07.11.2026
The question. AI coding assistants ask before running commands, and a developer can answer "yes, and don't ask again." The question was what happens to the passwords typed into such commands, and whether they end up in public view.
What was done. Public GitHub was searched for one settings file of Claude Code, named settings.local.json. In all, 104,185 copies were found in 103,617 repositories. A value was counted as a secret if it matched a known key format, or if a password or token sat next to the address of a public server, and an AI reviewer agreed. The behavior was reproduced with the latest models, Opus 5.5 and Fable 5.1. The documentation of sixteen coding assistants was compared, and two common secret scanners were run over the same files.
Advantages. The scale was large: more than a hundred thousand files. The mechanism was explained step by step and reproduced on the latest models. Not only current files were checked, but also old versions, forks and saved chat logs. The article ended with concrete steps for developers and for security teams.
Results. About 1.1 percent of the copies, 1,122 files, held at least one secret, 1,379 different secrets in all. More than a third opened a database directly, including 379 database passwords. There were also 43 server logins, 42 tokens for GitHub, GitLab and npm, and 23 Amazon cloud keys. The owners included 63 organizations, mostly software companies, among them an admin-level cloud key of a database vendor and the owner password of a medical-records database. Every one of these files was still in its repository, and in half of the repositories it had been there for at least 217 days. Older versions held 734 more secrets, and forks carried the same secrets further. With all sources added, the total reached 2,539 secrets in 1,994 repositories. The cause was found in how the file is handled: Claude Code saved the approved command word for word, and it did not add the file to the project's own ignore list, so the protection stayed on one user's computer. In 539 of 1,105 traced repositories, a commit with Claude as co-author had changed the file. Of sixteen coding assistants compared, only Claude Code was confirmed to save the full command by default. The two scanners missed many: one flagged 564 of the 1,122 files, the other 643, and 215 were flagged by neither. Earlier bug reports about this behavior, the first from August 2025, were closed by an automated bot, and according to the researchers none got a reply from Anthropic.
Limitations. Only public GitHub was searched, so copies inside packages, images and archives were not counted. It was not tested whether the secrets still work: only one notified company confirmed its key was live. Secrets were found by rules and an AI reviewer, so some may be false hits. It was not known whether anyone had used them. The scanner comparison was run without the tools' verification step. No response from Anthropic to these findings was reported.
Conclusions. It was concluded that the protection works on one computer only and does not travel with the project, so secrets typed into approved commands can end up public. Removing the file does not undo the leak, because older versions stay in history and in forks. For developers the advice was: first change every password, token and key the file ever held, then stop tracking the file and add it to the project's ignore list, keep secrets out of commands by using variables, and approve patterns, not single commands. For security teams: treat agent folders like secret files, scan history and passwords inside commands, and check first the credentials paired with a public server.
Real Crypto Balance — your real balance across all exchanges, at a glance: https://rcb-team.com/?src=journal
Video abstract: https://youtu.be/BJNoe_Rnsrc
Original: https://thehackernews.com/2026/11/claude-codes-dont-ask-again-file.html
Русский
Файл Claude Code «Больше не спрашивать» раскрывает пароли и ключи в 1 122 публичных копиях на GitHub (Claude Code's “Don't Ask Again” File Exposes Pas
Реферат · Swati Khandelwal, The Hacker News (исследование Apiiro) · «Файл Claude Code „Больше не спрашивать“ раскрывает пароли и ключи в 1 122 публичных копиях на GitHub» (Claude Code's “Don't Ask Again” File Exposes Passwords and Keys in 1,122 Public Copies on GitHub) · thehackernews.com · 07.11.2026
Вопрос. ИИ-помощники для программирования спрашивают разрешения перед запуском команд, и разработчик может ответить «да, и больше не спрашивать». Вопрос был в том, что происходит с паролями, введёнными в такие команды, и не оказываются ли они на виду у всех.
Что сделано. В публичном GitHub искали один файл настроек Claude Code, settings.local.json. Всего нашли 104 185 копий в 103 617 репозиториях. Значение считалось секретом, если подходило под известный формат ключа или если пароль или токен стоял рядом с адресом публичного сервера и с этим соглашался ИИ-проверяющий. Поведение воспроизвели на новейших моделях, Opus 5.5 и Fable 5.1. Сравнили документацию шестнадцати ИИ-помощников и прогнали через те же файлы два распространённых сканера секретов.
Достоинства. Масштаб большой: больше ста тысяч файлов. Механизм объяснён по шагам и воспроизведён на новейших моделях. Проверяли не только текущие файлы, но и старые версии, форки и сохранённые чаты агента. В конце статьи конкретные шаги для разработчиков и для служб безопасности.
Результаты. Около 1,1 процента копий, то есть 1 122 файла, содержали хотя бы один секрет, всего 1 379 разных. Больше трети напрямую открывали базу данных, включая 379 паролей к базам. Ещё 43 входа на серверы, 42 токена GitHub, GitLab и npm и 23 облачных ключа Amazon. Среди владельцев 63 организации, в основном разработчики программ, в том числе облачный ключ уровня администратора у поставщика баз данных и пароль владельца базы медицинских записей. Каждый такой файл всё ещё лежал в своём репозитории, а в половине репозиториев не меньше 217 дней. В старых версиях нашли ещё 734 секрета, а форки разнесли те же секреты дальше. Со всеми источниками набралось 2 539 секретов в 1 994 репозиториях. Причину увидели в обращении с файлом: Claude Code сохранял одобренную команду дословно и не добавлял файл в собственный список игнорирования проекта, поэтому защита оставалась на компьютере одного пользователя. В 539 из 1 105 отслеженных репозиториев файл менял коммит, где Claude указан соавтором. Из шестнадцати сравнённых ИИ-помощников только Claude Code по умолчанию сохраняет команду целиком. Два сканера пропустили многое: один отметил 564 файла из 1 122, другой 643, а 215 не отметил ни один. Прежние сообщения об ошибке, первое в августе 2025, закрыл автоматический бот, и, по словам исследователей, ни одно не получило ответа от Anthropic.
Ограничения. Искали только в публичном GitHub, поэтому копии внутри пакетов, образов и архивов не учтены. Работоспособность секретов не проверяли: рабочий ключ подтвердила только одна уведомлённая компания. Секреты находили по правилам и ИИ-проверяющему, так что часть может быть ложной. Неизвестно, пользовался ли ими кто-то. Сравнение сканеров шло без их проверки на работоспособность. Об ответе Anthropic на эти находки не сообщалось.
Выводы. Сделан вывод, что защита работает только на одном компьютере и не переходит вместе с проектом, поэтому секреты из одобренных команд могут оказаться на виду. Удаление файла утечку не отменяет: старые версии остаются в истории и в форках. Разработчикам посоветовали: сначала сменить все пароли, токены и ключи, которые файл когда-либо хранил, затем перестать отслеживать файл и добавить его в список игнорирования проекта, не держать секреты в командах (использовать переменные) и одобрять шаблоны, а не отдельные команды. Службам безопасности: считать папки агентов файлами с секретами, сканировать историю и пароли внутри команд и в первую очередь проверять учётные данные, связанные с публичным сервером.
Real Crypto Balance: твой реальный баланс на всех биржах одним взглядом: https://rcb-team.com/?src=journal
Видео-реферат: https://youtu.be/BJNoe_Rnsrc
Оригинал: https://thehackernews.com/2026/11/claude-codes-dont-ask-again-file.html