Science & Tech · AI · 3 hrs ago

Security in AI-generated code improves, but complex flaws remain

Security in AI-generated code improves, but complex flaws remain

A study found security in AI-generated code improved for the first time in a year.

Researchers tested 18 models in four programming languages.

The share of code with vulnerabilities fell from 44% to 38%, while the overall security score rose from 56% to 62%.

The gains mainly involve common, pattern-based flaws, such as cross-site scripting.

The leading models scored 73%, but they still struggle with complex security reasoning across multiple functions.

One expert said even the most expensive models fail on more than one in four security tasks.

Organizations are urged to test AI-generated code independently and keep verifying it before deployment, with human oversight still needed.

1 source

Related