Code Defence Cyber security

Claude Code persistent settings file exposes developer passwords and API keys across 1122 public GitHub repositories

Developer security research writeups published today reveal widespread credential exposure stemming from automated AI coding assistant configuration files. Plaintext passwords, API tokens, and secret keys typed by developers into terminal commands were committed to public code repositories.

The security finding involves Anthropic Claude Code command persistence mechanisms. When developers execute terminal commands through Claude Code and select the Don’t Ask Again prompt confirmation, the AI assistant saves the full executed command string, including plaintext passwords, database connection credentials, and API access keys, into local project settings files. Developers subsequently committing project folders to public GitHub repositories accidentally exposed 1,122 public configuration files containing live infrastructure credentials.

Exposing corporate credentials and infrastructure secrets within public code repositories introduces severe software supply chain and cloud environment exposure. When secret tokens land on public code repositories, automated credential harvesting bots extract keys within seconds, allowing threat actors to hijack cloud hosting accounts, access private databases, and compromise software release pipelines.

– Add Claude Code local configuration settings files to global .gitignore files across all developer workstations immediately.

– Scan corporate GitHub repositories and organization commits for exposed project configuration files containing plaintext secrets.

– Execute immediate credential revocations and token rotations for all passwords, API keys, and access tokens committed to repositories.

– Enforce automated pre-commit secret scanning hooks across developer workstations to block commits containing sensitive strings.

Developer environment governance requires rigid secret scanning and continuous credential rotation to ensure AI coding tools do not inadvertently leak corporate infrastructure credentials into public code repositories. #CodeDefence #Anthropic #ClaudeCode #GitHub #SecretLeak #CredentialTheft #DevSecOps #AppSec #SupplyChain #IdentitySecurity
/

Scroll to Top