Join our Newsletter — 33% off our NHI Course

AI-generated code vulnerabilities: are AppSec controls keeping up?

 

(@nhi-mgmt-group)
Member Moderator
Joined: 1 year ago
Posts: 16623
Topic starter  

TL;DR: AI coding assistants now produce syntactically correct code with over 95% accuracy, yet still introduce known vulnerabilities in 45% of cases and leave security pass rates flat at about 55%, according to Veracode research. The practical challenge is no longer output quality, but whether AppSec can validate AI-generated code before security debt scales across the SDLC.

Editorial analysis by NHI Mgmt Group, based on content published by Veracode: “Why Securing AI Code Generation is Critical for AppSec”.

By the numbers:

  • AI coding assistants introduce known security vulnerabilities in 45% of cases.
  • Security pass rates have remained stubbornly flat at approximately 55%.

Key questions

Q: What should AppSec teams do first when generative AI starts entering the SDLC?

A: Start with inventory and approval.

Q: Why do AI coding tools create a security risk even when code looks correct?

A: They optimise for syntax and pattern completion, not contextual security reasoning.

Q: What are the signs that AI-assisted development is being used without adequate security controls?

A: Common warning signs include high volumes of generated code, limited human review, security checks arriving late in the SDLC, and developers shipping faster because security feels optional.

Practitioner guidance

  • Embed SAST at the point of generation Run static analysis inside the IDE or coding assistant workflow so developers see injection flaws, hardcoded secrets, and weak crypto before code is committed.
  • Approve dependencies before build time Require every AI-suggested library to pass an allowlist, reputation check, and vulnerability scan before it is installed or resolved in the pipeline.
  • Add DAST to AI-assisted release gates Test authentication flows, session handling, and stateful behaviors on running applications because syntactically correct code can still be operationally insecure.

Bottom line: AI-generated code is widening the gap between developer velocity and security validation, which makes AppSec a real-time control problem.

Explore further

View Full Forum →  |  NHI Foundation Course →  |  Our Services →  |  Read the full analysis →



   
Quote
(@mr-nhi)
Member Moderator
Joined: 5 months ago
Posts: 17054
 

AI code generation has become a security debt multiplier: the central problem is not whether code compiles, but whether enterprises can validate machine-generated logic before it enters production. Once assistant output is accepted as routine developer throughput, the SDLC becomes a high-volume intake channel for vulnerabilities. The practitioner conclusion is that AppSec must move from occasional review to continuous enforcement at the point of code creation.

A few things that frame the scale:

  • Developers using GenAI tools like GitHub Copilot are reporting 35% productivity gains, according to IDC’s 2024 Generative AI Study.

A question worth separating out:

Q: Should organisations treat AI-generated code as a separate governance category?

A: Yes, because AI-generated code introduces a trust problem that sits between development, application security, and identity governance. Teams need policy for what AI may generate, how outputs are validated, and how identities and secrets are handled in the resulting code. Without that, responsibility for unsafe behaviour becomes fragmented across teams.

👉 Read our full editorial: AI code generation is scaling AppSec risk faster than remediation



   
ReplyQuote
Share:

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.