I do not agree with the "you know within a week"-take. I'm now 14 years working in IT-Security. 9 of those years for the same company.
I got my next job through a headhunter. The first weeks I had a really good feeling of the company I liked it there after a few months it got worse and worse like they couldn't hide all the bad things anymore. I quit, next job was more or less the same. I quit. My current job? The first month I thought to my self "oh my god, where do I got here?", but now a six months in I really like it.
Maybe also other factors have some plays here like my move from consulting into an internal role, colleagues, the overall freedom, but imho it's hard to generalize something like that.
Had to intervene manually. Thankfully Azure keeps deleted SQL databases recoverable for a window so I got it back in under an hour. Still way too long. Got lucky it was low traffic and most anonymous user flows hit AI APIs directly rather than the DB.
Anyway, AI coding assistants no longer get prod credentials on my projects.