Menu

How AI Coding Agents Silently Leak Production Secrets on Your Laptop
📰

How AI Coding Agents Silently Leak Production Secrets on Your Laptop

DEV Community: devsecops·Trần Hoàng Tú·4 days ago
#2qzsEta1
#devtodevsecops#devto#dev#json#clawleak
Long article (863 words) — no AI summary yet.
Reading 0:00
15s threshold

If you use Claude Code, Cursor, Codex, Gemini CLI, or MCP servers daily, you probably already have .env in your .gitignore and a secret scanner running in CI.

That used to be enough. In 2026, it leaves a massive blind spot right on your laptop.

While auditing my own developer workstation recently, I discovered three places where AI coding agents silently accumulate months of plaintext credentials — places that traditional git-focused secret scanners rarely inspect.

Leak Surface #1: .claude/settings.local.json

Whenever Claude Code runs a shell command and you click "Yes, and don't ask again" , it saves the exact command pattern into .claude/settings.local.json inside your repository so it won't prompt you next time.

That works great for Bash(npm test) .…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.