AI-written code now almost always runs, but lab tests still find known flaws in much of it, and people using an assistant can grow overconfident. Breach data shows the risk on both sides of building or buying: third parties, vulnerabilities and unapproved AI all feature. No study yet compares breaches in software companies build themselves with software they buy.
11
about 44%
In Veracode's 2026 GenAI Code Security Report, the AI models it tested wrote syntactically correct code nearly 100% of the time, yet about 44% of coding tasks produced code with a known security vulnerability. The average security pass rate was 56%, against 55% in Veracode's first report. Pass rates ranged from 87% on cryptographic algorithms and 83% on SQL injection to 15% on cross-site scripting and 12% on log injection.
Who was asked: Code generation tasks given to the AI models Veracode tested
A lab benchmark of generated code, scored by Veracode, not a count of flaws in shipped software.
Disclosure: Veracode sells application security testing.
Veracode, 2026 GenAI Code Security Report · Published July 28, 2026 · Grade C
12
about 48%
In a November 2024 evaluation by Georgetown's Center for Security and Emerging Technology, about 48% of the C code snippets generated by five large language models compiled but contained a bug flagged by the ESBMC formal verifier, which the authors treat as insecure, and about 30% compiled and passed verification.
Prompts written to draw out common bugs, C code only, and models that are now out of date.
Georgetown CSET, Cybersecurity Risks of AI-Generated Code (Ji, Jun, Wu and Gelles) · Published November 2024 · Grade B
13
21%
In a Stanford user study published at ACM CCS 2023, participants with access to an AI code assistant wrote insecure solutions more often than those without one on four of five security-related programming tasks, and were more likely to believe their code was secure. On an encryption task, 21% of those with the assistant wrote a correct, secure solution, against 43% of those without.
Who was asked: 47 participants
A small study, mostly of students, using a model several generations old.
Perry, Srivastava, Kumar and Boneh, Do Users Write More Insecure Code with AI Assistants? (ACM CCS 2023) · Published at ACM CCS, November 2023 (arXiv 2211.03622) · Grade A
14
Google Cloud's 2025 DORA report, drawing on survey responses from nearly 5,000 technology professionals, found that AI adoption now has a positive relationship with software delivery throughput but still has a negative relationship with software delivery stability.
A relationship in survey data, not a measured cause, and the announcement gives no size for it.
Disclosure: Google sells AI development tools.
Google Cloud, 2025 DORA Report: State of AI-assisted Software Development · Published September 23, 2025 · Grade C
15
81%
Across 623 million analyzed code changes from 2023 to 2026, GitClear found that duplicated code blocks rose 81%, from 40.3 to 73.0 per million changed lines, while moved code, its sign of refactoring, fell from 21% of changed lines in 2022 to 3.8% in 2026 so far, and copy/paste rose from 9.4% to 15.7%.
Who was asked: 623 million code changes analyzed by GitClear, 2023 to the first half of 2026
Signs of code that is harder to maintain, not security flaws, and trends across all code, not AI-written code alone.
Disclosure: GitClear sells code-quality analytics.
GitClear, The Maintainability Gap: AI Code Quality in 2026 · 2023 to the first half of 2026; page opened November 17, 2026 · Grade C
16
48%
In Verizon's 2026 Data Breach Investigations Report, a third party was involved in 48% of breaches, up from 30% the year before, and exploiting vulnerabilities was the most common way in, at 31% of breaches. Verizon also counts 45% of employees as regular AI users on their corporate devices, up from 15%. The report covers more than 22,000 confirmed data breaches.
Third-party involvement covers a vendor's flawed or compromised product, a partner's environment, and data held by a vendor, not only software a company bought.
Disclosure: Verizon sells security services.
Verizon, 2026 Data Breach Investigations Report · Published May 19, 2026 · Grade B
17
43%
In IBM's Cost of a Data Breach Report 2026, research by Ponemon Institute on 602 organizations breached between March 2025 and February 2026, 43% of security incidents involved shadow AI, workers' use of AI their employer had not approved, up from 20% the year before. Those incidents averaged $5.39 million in breach costs, against $4.63 million the year before.
A share of security incidents at organizations that were breached, not of all companies.
Disclosure: IBM sponsored, analyzed and published the research, and sells security products.
IBM and Ponemon Institute, Cost of a Data Breach Report 2026 · Breaches March 2025 to February 2026; report PDF dated August 10, 2026 · Grade B
18
34%
34% of the 100 CISOs report autonomous agents with tool access or write permissions in broad or limited production use.
Who was asked: 100 CISOs at companies with more than 1,000 employees
Counts limited as well as broad production use; the base is security chiefs at large companies, chosen in a way the report doesn't describe.
Disclosure: Andreessen Horowitz, which ran the survey, led Armadin's Series B and invested in Neo, both named in the piece.
a16z, The New Security Agenda (Stephenie Zhang and Owen Colby), October 28, 2026 (a16z led Armadin's Series B and invested in Neo, both named in the piece) · Posted October 28, 2026 · Grade C