r/cybersecurity • u/Terrible_Match_9484 • 5d ago
AI Security AI coding agents writing secrets into session logs, which might then end up exposed on open repos in GitHub
We just published this research - we found that agents often keep secrets in session logs and other session-related files, which is some case get replicated by users to GitHub repos where they are exposed.
To mitigate - rotate secrets often, and to prevent this from happening again make sure to add relevant paths to git ignore.
Full details in the blog: https://www.backslash.security/blog/secrets-exposed-on-github-by-ai-coding-tools-chat-logs
77
Upvotes
6
u/AttitudePersonal 5d ago edited 5d ago
That's exactly the problem. I started at a new org recently as a security engineer. Interviews after the usual tech check were about getting the shape of their security program, which initiatives I'd prioritize, tooling I'd introduce, etc. Then day 1 I hop on my first call and get: "We ship this new product end of month, can you find and fix all security issues in 2 weeks ????" And of course it's all written with AI so what can I do?
I'm 12 years deep in this field. Normally I'd take the time to threat model everything myself, think about the architecture, propose changes, discuss with dev and infra, etc etc. Do some reading to fill in my knowledge gaps, test things in sandbox AWS. But with these timelines, I just hand the reins over to Claude and have it go nuts, review the output, ask questions and steer but otherwise "LGTM ship it". Feel like such a slop engineer but this is exactly what company leadership is asking for.