Claude Code set credentials to public repository
The story so far
Security company Apiiro's research found that Claude Code, when processing user approval settings for auto Shell commands, writes the commands verbatim into .claude/settings.local., which may contain database passwords, API tokens, and root login information, and is exposed in public GitHub repositories. Apiiro stated that over 100,000 local setting files were uploaded to public repositories, approximately 1,100 of which contained sensitive data, identifying a total of 2,539 real credentials, affecting 63 organizations. Claude Code team member Boris Cherny responded that the team is researching preventive measures, as setting files should not have been committed to version control. He advised users to clean up sensitive information using key scanning tools and mentioned that the team is considering integrating key scanning functionality into Claude Code. It was not specified whether the leak had been exploited.
AI-written from the reports · Updated 9 days ago
Developments
2 developments
- 10 Nov, 01:24 · 2 reportsClaude Code accidentally exposing secretsArs Technica · AI:Claude Code is accidentally exposing secrets all over GitHub
- 8 Nov, 04:45 · 1 reportsClaude Code's 'Don't Ask Again' exposes passwordsHacker News · 300+:Claude Code's "Don't Ask Again" exposes passwords in 1,122 public GitHub files
Coverage timeline
Follow the coverage to see every side of the story.
- ITHome · AIClaude Code credentials leaked, 2539 real credentials found on GitHub
Claude Code exposed database password, API Token and other sensitive credentials to GitHub repository due to improper authorization handling, identifying 2539 real credentials, affecting 63 organizations. Security company Apiiro's research found that over 100,000 local configuration files were uploaded, of which about 1,100 contained confidential data, and the team is studying preventive measures.
- Ars Technica · AIClaude Code is accidentally exposing secrets all over GitHub
Apiiro's AI safety researchers found that Claude Code has a negligence in handling user auto Shell commands with user approval settings, causing its settings file (.claude/settings.local.) to potentially contain sensitive information such as database passwords, API tokens, and root login, and accidentally exposed in a GitHub repository.
- Hacker News · 300+FeaturedClaude Code's "Don't Ask Again" exposes passwords in 1,122 public GitHub files
Apiiro's research indicates that Claude Code's Don't Ask Again option makes passwords and other sensitive information appear in 1,122 public GitHub files. The article received a score of 582 and 394 comments on Hacker News.
Heat over time
- Now
- 3
- Peak
- 312 Nov, 06:00
- 24h change
- –
Hover or tap the chart to see each hour; use the arrow keys on a keyboard.