Claude Code transcripts trigger secret-scanning alerts
A security report reveals Claude Code saves command stdout unredacted in `~/.claude/projects/` transcripts, triggering 15 secret-scanning alerts when synced to git. The unredacted session logs exposed credentials across eight secret families, prompting calls for write-time redaction in local agent files.
Autonomous coding agents executing shell commands turn local session logs into unintentional credential stores. Mirroring dotfiles or home directories without scrubbing agent transcripts creates immediate blast radiuses across developer environments.
- –Terminal commands frequently output API keys and cloud tokens that Claude Code commits verbatim to local JSONL session files.
- –Post-session cleanup hooks remain vulnerable to mid-session crashes, automated file sync, and background backup sweeps.
- –Write-time redaction using regex scrubbing and deterministic salted hashes preserves forensic debugging without exposing raw credentials.
- –Teams syncing user directories or `~/.claude/` must add transcript exclusions to prevent leaking production secrets to remote repositories.
DISCOVERED
47m ago
2026-11-24
PUBLISHED
1h ago
2026-11-24
RELEVANCE
AUTHOR
PaulPham157