Your AI coding agent has been writing every API key you ever pasted to a plaintext file. Nobody is scanning it.
| Every Claude Code session you've ever run is a JSONL transcript sitting in Think about what's in there: every I built agentsweep to deal with mine: an open-source CLI that scans the history files of 10 agents (Claude Code, Codex, Cursor, Windsurf, Aider, Cline, Gemini CLI, OpenCode, Continue, Copilot Chat) with 189 detection rules ported from gitleaks, plus a checksum-validated BIP-39 seed phrase detector then redacts findings in place. It's careful about it because corrupting your own history would suck: atomic writes, mandatory Scan is read-only. Redaction requires you to literally type REDACT. GitHub: https://github.com/Ishannaik/agent-sweep Obvious caveat: redacting locally doesn't un-send anything to a cloud provider its more useful for locally hosted agents, and the real fix is rotating the keys. The tool prints rotation guidance per finding for exactly that reason. [link] [comments] |
from hacking: security in practice https://ift.tt/JacP6Sh
Comments
Post a Comment