Short answer: A software tool, Claude Code, had a problem with its settings file, exposing sensitive information like API keys and passwords. Anyone using the tool or Docker images created with it could be affected. Remove secrets from settings and Docker files, and update credentials.

TL;DR

  • Claude Code’s settings file contained sensitive information.
  • GitGuardian found 31,088 secrets in 23,276 repositories.
  • 67% of these were still valid when found.
  • Credentials were in Docker images as well.

What happened at Claude?

Claude Code is a software tool that helps developers. A flaw in its setup allowed sensitive data, like API keys and passwords, to be stored in a file. These files were sometimes shared publicly, including in Docker images. This means anyone could access these secrets, posing a risk to security. Developers need to update their settings and Docker files to remove these secrets and use environment variables instead.

Vulnerability
A mistake or weakness in software that an attacker can misuse.
Credentials / secrets
Passwords, keys and tokens that prove who you are to a system.

Key facts

Reported byCSO Online
Date reported11 Nov 2026

How it works

Attack flow: Developer approves command with credentials. then Command with credentials saved in settings file. then Settings file may be committed to Git. then Settings file may be included in Docker images. then Published images distribute secrets.
Built from the checked story facts

Claude Code asks for permission to run commands. If developers allow it, the tool saves the command with credentials in a settings file. This file may be committed to Git or Docker, leading to secrets exposure.

  1. Developer approves command with credentials.
  2. Command with credentials saved in settings file.
  3. Settings file may be committed to Git.
  4. Settings file may be included in Docker images.
  5. Published images distribute secrets.

Timeline

DateEventSource
2026-11-11Reported by CSO OnlineCSO Online
2026-11-30This Skillmate explainer publishedSkillmate

How to fix it

  1. If you have an account with the affected company, change that password and any reused copies of it.
  2. Turn on two-factor authentication (a second login step) wherever the service offers it.
  3. Expect phishing emails or calls that use the exposed details; verify requests through official channels.

How to detect it

Watch for saved command strings in config files, especially those containing API keys or passwords.

Signs to watch for:

  • Login alerts from new devices or locations on the affected account.
  • Password-reset emails you did not ask for.
  • Phishing messages that quote your real account details.

What is confirmed

  • Reported by CSO Online

Why it matters

Companies must ensure secrets are not stored in configuration files and are properly managed.

Learn the skills behind this story

Want to understand attacks like this and defend against them? Join Skillmate cybersecurity training or practise hands-on in Skillmate Labs.

Sources

How we wrote this: facts come from the sources above. An on-prem AI model drafted the plain-English parts and every sentence was checked against the sources; unsupported sentences were removed. MITRE mapping is our own judgement.

Watch today's video brief: https://youtu.be/o6618M4sH-8