csoonline.comยท18 november 2026

How organizations can secure their AI-generated code

Image for the article: How organizations can secure their AI-generated code
Image via csoonline.com

Organizations face growing security risks as employees increasingly use AI coding tools to build production applications without adequate oversight. A benchmark study by Carnegie Mellon University researchers found that agents given feature requests without security guidance produced working code 57% of the time, but only 11.8% of those solutions were secure. Security leaders recommend treating AI-generated code as untrusted input that must pass automated checks and human reviews. Enterprises like Datadog and Mimecast enforce strict code ownership rules and require specialist reviews for changes involving authentication, cryptography, or sensitive data.