Copilot committed my repo secrets into AGENTS.md

11 pointsposted 13 days ago
by benjaminbenben

6 Comments

nulone

12 days ago

How did you catch it — scanner, review, or just noticed manually? I treat agent-generated diffs as untrusted by default now.

benjaminbenben

12 days ago

I was manually reviewing when I saw it. Was looking through the PR more out of interest than worried that there'd be a problem tbh.

zvqcMMV6Zcr

12 days ago

So it didn't warn user that secrets are still visible in repo history and have to rotated, it only made that revert?

benjaminbenben

12 days ago

Yep. When the credentials were used earlier on in the session they'd been scrubbed from the logs - so there's some checking, but not on the code that's committed.

nik282000

12 days ago

LLMs are not intelligent machines, they are lying engines that predict the next most likely thing to do or say. If publishing your credit card details, home address and blood type meshes with the last thing it ingested, it'll do it.

chrisjj

13 days ago

"… though to be fair, it did sincerely apologize and promised never to do it again."