That would be kind of wild. Imagine a world where whether your system was secure was just a matter of remembering to tell the AI agent "& also make it secure" before it writes your code.
(could be quite real!)
(could be quite real!)
But security ultimately requires comprehension, which is not something LLMs have.
I think your point is otherwise right, but the correct answer is standard best practices which is the easiest thing for bots to do
It’s perfectly reasonable to not use secure code for a large number of use cases.
[proceeds to simply refactor the same code]