Lead story
The AI Coding Assistant That Remembered Too Much
Developers love a "don't ask again" button. It saves interruptions and keeps you in flow. But in Claude Code, Anthropic's AI coding assistant, that shortcut has been quietly writing secrets into project settings files — and those files have been landing in public GitHub repositories where anyone can read them.
Security firm Apiiro disclosed yesterday that it found 1,122 public repositories containing Claude Code's .claude/settings.local.json file, with a meaningful portion of those files containing plaintext passwords, API keys, and other credentials that developers had typed directly into commands they approved. When you tell Claude Code "yes, and don't ask again," it logs the command verbatim — secret and all.
This isn't a vulnerability in the cryptographic sense. No one broke any encryption. The problem is simpler and more human: developers approved commands containing secrets, Claude Code saved those commands faithfully, and then standard git add . habits or misconfigured .gitignore files pushed the lot to GitHub. The tool did exactly what it was told. The mess that followed is what security folk call an OPSEC failure, but it's one the tool's design made trivially easy to trigger.
The scope matters here. 1,122 repositories is not a rounding error. It suggests this is a systemic pattern, not a handful of careless outliers. The more AI coding assistants embed themselves into developer workflows — handling commands, storing approvals, logging context — the more opportunity there is for secrets to end up somewhere they shouldn't be. Claude Code is the specific culprit today, but the design pattern is shared across several AI dev tools.
For defenders, the immediate ask is straightforward: audit any repository where Claude Code has been used for the presence of .claude/settings.local.json and treat any exposed credentials as compromised. Rotate keys, check access logs, assume the worst.
The broader concern is what this says about AI tooling and secrets hygiene at scale. Developers are under pressure to ship faster than ever, AI assistants lower the friction on every individual step, and that lower friction sometimes means skipping the mental check of "wait, should this be stored?" The attack surface for credential exposure isn't just growing — it's being actively lubricated by the tools meant to help.
Worth watching alongside this: Anthropic's own internal METR report (also out this week) found that the company's AI models are now improving roughly twice as quickly as a year ago, with Anthropic using AI to build more AI. That acceleration is impressive and also slightly unsettling — the same organisation whose tooling just leaked 1,122 sets of credentials is building systems that are compounding in capability at an accelerating rate. Coincidence, obviously, but a useful frame for thinking about whether safety guardrails are keeping pace.
Australian developers using Claude Code — and there are many, given its integration into popular IDEs — should treat this as an urgent checklist item, not a "we'll get to it" one. The ACSC's guidance on secrets management applies in full; exposed API keys are a known initial access vector for cloud-infrastructure attacks.
Anthropic has not yet indicated whether it will change the settings file format, add a warning before saving commands that look like they contain secrets, or update .gitignore templates to exclude the file by default. Watch for a response in the next 48 hours.