AI coding assistants are now generating syntactically correct code more than 95% of the time. However, only 55% of the code they produce is actually secure. This statistic highlights a growing concern for companies: while AI is rapidly changing how software is developed, it is also increasing the speed at which errors and security risks are introduced. The real challenge for organizations is not to find the best AI model, but to determine how to use these models effectively and safely on a large scale without significantly increasing the risk of vulnerabilities. The solution lies in what is called a "delivery harness"—a framework that combines human oversight, risk-based governance, and automated quality controls at every stage of development. The competitive advantage will not come from simply choosing the best model, but from understanding how to best frame its use within an organization.
Since 2025, Veracode has measured the security of code generated by large language models using a consistent benchmark of 80 programming tasks. The March 2026 update, which evaluated over 150 models, found that only 55% of the generated code was secure. In the remaining 45% of cases, the models introduced vulnerabilities from the OWASP Top 10, a list of the most critical web application security risks. While syntactic correctness has improved to over 95%, the security performance has remained largely unchanged over the past two years. Even the latest models, such as GPT-5.1, GPT-5.2, Gemini 3, and Claude 4.5 and 4.6, fall within the 55% to 60% range for secure code. Only OpenAI's reasoning models, such as GPT-5.1 and GPT-5.2, achieve significantly better results, reaching 70 to 72%. However, these models still leave about one-third of the code vulnerable. The key takeaway is that while AI models are improving, organizations cannot assume that future advancements will eliminate the need for security measures.
The benchmark results become even more telling when looking at specific types of vulnerabilities. Models perform well against SQL injection and cryptography issues, with success rates of 82% and 86%, respectively, because these are generally straightforward to secure. However, performance drops significantly for cross-site scripting attacks (15%) and log injections (13%). These types of vulnerabilities require a deep understanding of how user-controlled data flows within an application, a context that AI models lack. Performance also varies by programming language, with Python achieving 62% secure code, JavaScript 57%, and Java only 29%. This lower performance in Java is partly due to the large amount of existing vulnerable code in its training data. Modern frameworks, such as Doctrine for Symfony, Twig for automatic output escaping, and Angular for template sanitization, reduce risks, but these protections vanish when AI-generated code uses raw SQL or bypasses built-in security measures. The underlying issue is that AI models are trained on public code that often contains uncorrected vulnerabilities, which they then replicate.
The challenge for organizations is no longer simply finding the safest AI model. Instead, it is about implementing a "delivery harness"—a comprehensive framework that includes governance rules, human oversight, and automated controls throughout the software development process. One key rule is that even if AI generates 100% of the code, 100% of that code must be understood and validated by a human. Developers remain fully responsible for every part of the code they deliver. Senior technical experts conduct systematic reviews, and contractual acceptance is never delegated to an AI agent. When uncertainty arises, it is escalated rather than resolved through unverified interactions with an AI. This approach complements, rather than replaces, experienced engineers. Identifying insecure SQL concatenation or the absence of output escaping is a skill that remains critical, as current benchmarks show.
Security, access rights, sensitive business data, data models, and essential architectural components are classified as "red zones," where AI-generated code is either prohibited or requires enhanced validation before implementation. Areas with lower risk can benefit from the speed of AI-assisted development. This deliberate balance allows for high development velocity without compromising safety. Quality controls are integrated throughout the delivery cycle, not just at the end. Specifications and acceptance criteria are reviewed before generation begins, and sensitive information is filtered out before prompts are sent. Test coverage must reach at least 80%, and every generated artifact is fully traceable, including the model that created it.
Governance must also be implemented technically. Development teams are equipped with agents specialized in code generation, unit testing, end-to-end testing, and merge review. Before a human makes the final decision, the merge review agent evaluates each pull request for security, performance, maintainability, and good engineering practices. Skills and rules are embedded directly into the generation context, ensuring that the model produces secure and accessible code by design. Hooks executed before sending prompts and after generation automatically block results that fail to meet required controls. These capabilities create a deterministic engineering loop: generate the code, run the tests, perform static analysis, apply linters, make corrections, and repeat until compliance is achieved. The final automated protection is the CI/CD pipeline. While local hooks can be bypassed, the pipeline cannot. By integrating Static Application Security Testing (SAST), dependency analysis, automated tests, and minimum coverage thresholds as mandatory conditions for merges and deployments, no code can reach production without passing all required controls, regardless of the agent or model that generated it. This layered approach ensures that security controls are applied throughout the delivery process and remain irreplaceable. Human experts retain the ultimate responsibility.
AI accelerates everything, including failures. If development speed is multiplied by three, an uncontrolled vulnerability can also spread three times faster. Adopting AI-assisted development safely and at scale requires responsible people, clearly defined risk zones, deterministic quality controls, a secure CI/CD pipeline, and full traceability. In other words, it requires a "delivery harness." It is this disciplined approach that transforms AI-driven development—from simply allowing faster software delivery—into a sustainable source of value for the company.
AI Coding Assistants Face Security Challenges Despite High Syntactic Accuracy
AI-rewritten from original reportingHow it works
aisoftware-securitydevelopmentgovernanceai-riskcode-quality



