Skip to content
Mon, 23 Nov 202613:53:40 CET
AI-News

AI-News

Menu
  • Home
  • Basics
  • Posts
Searching...
No results found
  • Home
  • Safety
  • Claude Code settings files expose secrets in public GitHub repos
  • Safety

Claude Code settings files expose secrets in public GitHub repos

EditorialNovember 11, 20264 min read
A padlocked steel locker standing open in a dim server room with loose brass keys scattered on the floor

Contents

  • TL;DR
  • Apiiro finds secrets in Claude Code settings files
  • The numbers, the mechanism and the scanner gap
  • Why public settings files matter to developers
  • Open questions about fixes and real exposure
  • Sources

TL;DR

Apiiro researchers found thousands of secrets, including database passwords and root logins, in Claude Code settings files on GitHub, Ars Technica reports. Of over 100,000 public uploads of the settings file, about 1,100 from 63 different organizations held secrets, Apiiro says. Claude Code’s Boris Cherny said on Hacker News that the team is looking into prevention, according to Ars Technica.

  • Number: Apiiro found over 100,000 cases of the local settings file on public GitHub repositories, per Ars Technica.
  • Scale: About 1,100 of them, from 63 different organizations, held secrets such as keys and passwords, says Ars Technica.
  • Timeframe: Ars Technica says a Claude Code bug report raised the issue as far back as August 2025.
  • Cause: Approved shell commands are often saved unchanged in the settings file, with any embedded sensitive data, Ars Technica reports.
  • Limit: Two popular scanners, gitleaks and TruffleHog, missed 215 of the roughly 1,100 secrets, Apiiro found.

Apiiro finds secrets in Claude Code settings files

Apiiro researchers found thousands of secrets, including database passwords and root logins, in Claude Code settings files on GitHub, Ars Technica reports. The exposed items also include API tokens, according to Ars Technica.

The leak comes from how Claude Code treats approvals of automated shell commands, Ars Technica explains. Ars Technica says picking the option to stop further prompts for a shell command saves a rule in the local settings file on the user’s computer.

Ars Technica says a Claude Code bug report raised the issue as far back as August 2025. Boris Cherny of Claude Code said on Hacker News over the weekend that the team is examining prevention, Ars Technica reports.

The numbers, the mechanism and the scanner gap

Apiiro found over 100,000 cases where the local settings file was uploaded to a public GitHub repository, according to Ars Technica. Apiiro says only about 1,100 of those, from 63 different organizations, contained secrets such as private keys and database passwords.

Ars Technica says the command is often written to the settings file unchanged, along with any sensitive information embedded in it. Anthropic notes in its documentation that the file is added to the developer’s global .gitignore list, according to Ars Technica.

Ars Technica says that setting does not carry over to the repo, so the file can be uploaded by accident after a clone. Apiiro writes that Claude Code itself often commits settings file changes with no input from the user.

Ars Technica says copies of the secrets can remain in forks even after the files are removed, if a GitHub user is not careful. Apiiro found that two popular secret scanners, gitleaks and TruffleHog, did not flag 215 of the roughly 1,100 secrets.

According to Ars Technica, every one of those bug reports ended up closed with no action once 60 days passed without activity.

Why public settings files matter to developers

Cherny recommended auto mode, which uses classifiers to handle routine permission prompts, according to Ars Technica. Cherny also advises users to use secret scanners, Ars Technica reports.

Ars Technica quotes Claude Code’s Boris Cherny as saying such cases seemed to arise only when “the files were manually created and checked in.”

The report suggests a documented ignore rule on one machine does not protect a repository that others can clone.

Open questions about fixes and real exposure

Ars Technica reports that another user noted sensitive commands can still be saved in auto mode, and Cherny said the team is considering improvements. Ars Technica gives no date or design for a fix, only that the team is looking into prevention.

Cherny said the team is considering building secret scanning into Claude Code itself, according to Ars Technica. Speculation, not a finding: a fix could change how approved commands are saved, but the report names no such plan.

Cherny points to files checked in by hand, while Apiiro writes that Claude Code often commits the file itself, so the accounts differ. In a GitHub bug report, user adamrothman says Claude Code did not add the local settings file to the project’s .gitignore.

The report does not say whether those credentials still work or whether anyone abused them. These figures are Apiiro’s own, relayed by Ars Technica, and no independent count is cited.

Sources

  • GitHub, [BUG] Claude Code no longer adds local settings file to .gitignore when it is created · Issue #11982 · anthrop (2025-11-19): https://github.com/anthropics/claude-code/issues/11982
  • Ars Technica, Claude Code is accidentally exposing secrets all over GitHub (2026-11-09): https://arstechnica.com/ai/2026/11/claude-code-settings-files-expose-thousands-of-secrets-on-github/

Share this article

Add AI-News as a preferred source on Google

Add AI-News as a preferred source on Google

Post navigation

Previous: Google opens Gemini 4 Carbon to developers and consumers
Next: Google launches Gemini Decisions API for fast multimodal choices

Related stories

A wall of closed metal drawers with a single drawer pulled open, suggesting a tool library opened only when needed, with the
  • Tools

Google adds Tool Retrieval to Gemini API to trim tool schemas

EditorialNovember 23, 2026
Compact automotive computing module with a heat sink on a workbench beside a camera lens, with a city street behind at dusk
  • Models

NVIDIA Releases Alpamayo 2 Edge, a Compact Open Driving Model

EditorialNovember 23, 2026
A dim server room aisle with dark racks and a single rack glowing red status lights, with the Google logo in the lower left
  • Safety

Google says hackers automated vulnerability hunting with no human

EditorialNovember 23, 2026

Never miss an article

Subscribe via RSS

Add the feed address to a feed reader and new articles arrive on their own.

Related categories

  • Basics
  • Business
  • Hardware
  • Models
  • Policy
  • Safety
  • Science
  • Tools

ABB RoboticsAcquisitionsAcrobatAdobeAgent harnessAgentic AIAgentic CommerceAgentsAI AgentsAI chipsAI Data CentersAI InvestmentAI ModeAI ModelsAI RegulationAI securityAI stocksAI ValuationAir Traffic ControlAlpamayoAlphabetAlphaGenomeAMDAndroid GoAnthropicAPIApiiroApplied ComputeAuditingAutonomous DrivingAutopilotAzureBallot MeasuresBankingCaliforniaCapitalGCarbon EmissionsCaterpillarCEO SuccessionCerebrasChatGPT WalletChinaChina ChipsChip smugglingCitibankClaudeClaude CodeCodingColette KressCompilersComputer UseConfidential ComputingCopilotCorporate GovernanceCrusoeCyberattacksCybersecurityData Center CPUsData CentersDDR6DeciderDecision ModelsDeepMindDeepSeekDeveloper APIDrug DiscoveryDynamoEarningsElon MuskEmbeddingsEPYCEUExport controlsFAAFine-tuningFlight DisruptionFRCFunction CallingFundingGas turbinesGeminiGemini 4 CarbonGemini 4 HydrogenGemini 4 NeonGemini APIGemini appGemini for healthcareGemini RoboticsGenie 4GenomicsGitHubGoogleGoogle AntigravityGoogle ClassroomGoogle CloudGoogle DeepMindGoogle SearchGoogle Threat IntelligenceGoogle TPUGPT-6 AstraGPUGrokHallucinationHBMHealthcare AIHistoryHugging FaceHumanoid robotsHy4HyperscalersIBMInferenceIntelIntel FoundryInteractive ConnectorsIPOIsomorphic LabsJavaJEDECJensen HuangJet enginesKimiKPMGKV CacheL3HarrisLangChainLanguage ModelsLeanLLMLocateLuxmacOSMCPMCP AppsMegaspeedMemoryMetaMeta AIMicrosoftMicrosoft 365Microsoft CopilotMidterm electionsMLCommonsMLPerfMobile AIMoratoriumMultimodalNasdaqNational SecurityNet ZeroNetwork OutageNighthawkNVIDIAOffice in CopilotOpen DataOpen weight modelsOpen-weightOpenAIOpenJDKOutageOutlookPalo Alto NetworksPerplexityPetitionPower generationProject GeniePromptingQuantum ComputingQuantum HardwareQwenRAGReasoningRegulationRiemann hypothesisRobot SafetyRoboticsRubin HPCSafetySearchSEC InvestigationSecuritySingle-cell biologySMART SystemSoftBankSoutheast AsiaStationeryBenchSupercomputersSupercomputingTencentTogether AITokensTool RetrievalTOP500TransformerTSMCUS CongressUS MidtermsValuationVera RubinVision Language ActionWeather ForecastingWeatherNextWells FargoWorld ModelsWyomingxAIZen 6

You may have missed

Heavy closed steel bank vault door in a dim marble hall with a small brass key on a stone counter
  • Business

Wells Fargo and Citi Tell Customers AI Agent Risk Is Theirs

EditorialNovember 23, 2026
Rows of equipment racks with network routers and cables in a dim telecommunications room
  • Safety

FAA Ground Stop Traced to Router Work, Cause Still Disputed

EditorialNovember 23, 2026
Close-up of a copper heat sink with fine fins and a black fan
  • Hardware

JEDEC previews DDR6 memory with shorter, much faster modules

EditorialNovember 22, 2026
A neat row of steel hand tools on a dark wooden workbench, with the Google logo in the lower left corner
  • Tools

Google drops the search button from its homepage in AI redesign

EditorialNovember 22, 2026
AI-News

AI-News for the web

Navigation

  • Home
  • Basics
  • Posts

Subscribe

  • RSS feed
  • Add AI-News as a preferred source on Google

    Add AI-News as a preferred source on Google

About

A blog about software, design, and the occasional stray thought.

© 2026 AI-News.