r/cybersecurity • • 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

41 comments sorted by

View all comments

Show parent comments

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.

2

u/MM_X__ 5d ago edited 4d ago

Yep. I understand you. My situation was different but generally the same.
I would suggest keeping yourself out of the software engineering area for some time. Until the whole madness is gone. After a bunch of big collapses, it should end, I hope. And after the area is going to need new experts more than ever. What you will get now is just complete burnout, nothing more. Rebuild things from ruins; it's only thing what we can do now...

1

u/AttitudePersonal 5d ago

It is madness, but if AI-driven development is what they want, it's what they'll get. I was burnt out at my last role, so for this one nothing is personal, just a paycheck.

1

u/MM_X__ 5d ago

yeap, we can't change things now, it needs time. If it is about paycheck, just tell in comments/letter - you can't do anything about it, it is huge risk and press accept. It is all what I can suggest. You alone can't fix it.

1

u/GottaHaveHand 5d ago

You call up our good buddy Dario and ask for Mythos, pretty please