Veracode:AI代码安全改善但漏洞仍多
Veracode对18个模型的基准测试显示,AI生成代码的整体安全得分从56%升至62%,观察到的漏洞率从44%降至38%。Claude Opus 5.5与GPT-6-Sol以73%并列领先,但仍各有超过四分之一的安全任务失败;Veracode称整体提升主要来自较易识别的XSS问题,复杂的数据流推理仍然困难。
Veracode建议在部署前将AI生成代码与持续、独立的安全验证结合,并称配合扫描的中档模型可能比未经验证的前沿模型更准确、更具可扩展性。
- AI-generated code security improved for the first time in a year, with vulnerability rates dropping from 44% to 38%
- Top models performed better at preventing common flaws like XSS, but still struggled with complex security reasoning
- Researchers stress AI-generated code still requires independent security testing and verification before deployment
Computer code generated by frontier AI models has gotten more secure and consequently - contains fewer vulnerabilities.
This is according to a new report by Veracode, which claims this is the first significant improvement in a year.
In July 2025, Veracode started releasing its GenAI Code Security Report, which analyzed code generated by LLMs for vulnerabilities and security risks. Since then, the company’s researchers noticed a trend - the code was functioning almost perfect, but on the security side it left much to be desired.
Are XSS flaws worth the trouble?
“We’ve been analyzing code generated by multiple LLMs for more than a year. Until now, we have not seen a marked improvement in AI code security, despite consistently near-perfect functionality,” said Chris Wysopal, Co-founder & Chief Security Evangelist at Veracode.
#Veracode#Claude Opus 5.5#GPT-6-Sol#GPT-5.5#Anthropic#OpenAI