Home / Technology / AI Code Risks: Security Lags Behind Rapid Development
AI Code Risks: Security Lags Behind Rapid Development
19 Oct
Summary
- AI now accounts for half of committed code in adopted organizations.
- Software vulnerabilities are the top breach entry point at 31%.
- Organizations must integrate security from the start of AI development.

AI coding assistants have become integral to software development, responsible for approximately half of all committed code in organizations that have adopted them. However, the security of this AI-generated code is a growing concern, with an average security pass rate of only 56%. This means nearly half of tested AI code generation introduces known vulnerabilities.
This stark contrast between AI's coding proficiency and its security performance highlights a critical risk. As the volume of AI-generated code increases, the potential for introducing vulnerable code into development environments escalates. Consequently, software vulnerabilities have surpassed stolen credentials as the primary point of entry for breaches, now accounting for 31% of incidents.
To address this widening gap, organizations must fundamentally rethink how security integrates into AI-assisted development. This involves making security an intrinsic part of the development process from inception, prioritizing the selection of AI models with robust security track records, and rigorously verifying code within its application context before deployment.
The security performance of AI models varies significantly, with the strongest model achieving a 68% security pass rate, while many others fall between 50% and 53%. This underscores that model choice is a crucial security decision, not merely a productivity one. Even with strong models, continuous testing throughout the software development lifecycle, including static analysis and policy enforcement, remains essential.
Contextual analysis is paramount because some vulnerabilities, like cross-site scripting or log injection, are difficult to detect through general patterns alone. They often depend on intricate application logic, data flows, and authorization mechanisms. Integrating AI-native analysis directly into developer workflows, such as in pull requests, can identify these context-specific flaws.
Furthermore, the increasing speed of AI-driven development exacerbates the challenge of managing and remediating security risks. With 82% of organizations reporting security debt and 60% dealing with critical security debt, prioritizing vulnerabilities based on exploitability, application criticality, and business impact is crucial for effective remediation.
Leaders must treat the security implications of AI-assisted code as a fundamental shift in their software operating model. This requires understanding where AI-generated code enters the organization, evaluating models against security requirements, embedding verification into developer workflows, and focusing remediation efforts on exploitable business risks. The ultimate goal is to ensure security can evolve and keep pace with the rapid creation of software.