Компания GitGuardian обнаружила 31 088 различных секретов в файлах настроек Claude Code в 23 276 публичных репозиториях GitHub. Как сообщает InfoWorld со ссылкой на компанию, 5 343 из них оставались действующими на момент обнаружения.[1]
Ранее исследователи Apiiro нашли тысячи секретов в файлах настроек Claude Code, опубликованных в репозиториях GitHub. Среди них были пароли к базам данных, токены API и данные для входа с правами root, пишет Ars Technica.[2]
По данным Ars Technica, когда пользователь разрешает выполнение команды, выбирая «Yes, and don't ask again», это решение сохраняется в локальном файле .claude/settings.local.json. Сама команда часто записывается в файл без изменений, иногда вместе с конфиденциальными данными.[3]
В документации Anthropic сказано, что файл настроек добавляется в глобальный .gitignore разработчика. По данным Ars Technica, это обычно препятствует его публичному распространению.[4]
GitGuardian проверила и публичные образы Docker Hub: в файлах настроек Claude Code компания нашла 613 различных секретов, из которых 99 были действующими на момент обнаружения. По сведениям GitGuardian, переданным InfoWorld, Anthropic изучает дополнительные меры защиты, включая встроенное сканирование секретов.[5][6]
The code security firm identified 31,088 distinct secrets in Claude Code’s “.claude/settings.local.json” files across 23,276 public GitHub repositories. Of those, 5343 were still valid when GitGuardian detected them.
That's the finding of AI security researchers at Apiiro, who discovered thousands of secrets, including database passwords, API tokens, and root logins, amid Claude Code settings files embedded in GitHub repositories.
When a user chooses the "Yes, and don't ask again" option to approve running a command, that choice gets stored as part of a rule in the local ".claude/settings.local.json" file on the user's computer. That rule is sometimes coded as a pattern, but the command itself is often written to that settings file as is, including any sensitive information that may be embedded within it.
And Anthropic notes in its Claude Code documentation that this particular settings file gets added to the developer's global .gitignore list, which usually prevents it from being shared publicly.
GitGuardian said Anthropic’s Claude Code lead Boris Cherny acknowledged the issue, saying the company was looking into it and exploring additional safeguards, including built-in secret scanning and an auto mode.