<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Faith Chihambakwe on Medium]]></title>
        <description><![CDATA[Stories by Faith Chihambakwe on Medium]]></description>
        <link>https://medium.com/@FaithChihambakwe?source=rss-7ae44c26eccf------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*3g-uvGxli7hwT6PU</url>
            <title>Stories by Faith Chihambakwe on Medium</title>
            <link>https://medium.com/@FaithChihambakwe?source=rss-7ae44c26eccf------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 12:11:34 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@FaithChihambakwe/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[What share of AI code has vulnerabilities, and which kind? Does a human review reduce it?]]></title>
            <link>https://medium.com/@FaithChihambakwe/what-share-of-ai-code-has-vulnerabilities-and-which-kind-does-a-human-review-reduce-it-268ff4531d05?source=rss-7ae44c26eccf------2</link>
            <guid isPermaLink="false">https://medium.com/p/268ff4531d05</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[code-security]]></category>
            <dc:creator><![CDATA[Faith Chihambakwe]]></dc:creator>
            <pubDate>Mon, 02 Nov 2026 05:26:50 GMT</pubDate>
            <atom:updated>2026-11-12T12:13:44.218Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Bxb9GSBlaFNuxsIf.jpg" /></figure><p>Imagine going to university for 4 years studying Computer Science, only for your job field to be rapidly taken over by AI. AI can produce functional code, but can it produce secure code?</p><p>Many people believe there is no future for those looking towards a career in Software Engineering due to the growing use of AI for development. This article dives deep into the reliability of using AI to fully code, and the role of engineers in the future. To guide you, here are the 5 main categories I have divided this article into:</p><p>1. The Problem</p><p>2. AI Writes Working Code Far More Reliably Than Secure Code</p><p>3. AI Can Review and Repair Its Own Code, But Only Partly</p><p>4. The Future for Engineers and Developers</p><p>5. Conclusion and Personal Statement</p><p>I highly recommend reading all 5 sections, as they provide valuable insight into this matter. Sources are numbered in square brackets throughout the article, for example [1], and the full references are listed at the end.</p><p><strong>TL;DR:</strong> AI-generated code compiles about 100% of the time but fails security tests roughly 44% of the time [4], and even the best review steps tested left about half of tasks insecure [5]. Human review looks like a necessary safeguard, so the engineer’s job is changing rather than disappearing [2][3]. The limits: much of the security data comes from companies that sell security tools [4][5], and the employment evidence is US-only and only an early indicator [2].</p><h4><strong>The Problem</strong></h4><p>For years, software engineering has been one of the most sought-after careers in America. It still appears among the most in-demand tech jobs for 2026 [1], as companies rely on developers to build web applications, mobile apps, enterprise software and cloud infrastructure. Yet AI appears to be changing who gets hired.</p><p>A Stanford study of US payroll data found that employment of workers aged 22 to 25 in AI-exposed occupations now stands 19% below where it would be had it kept pace with their less-exposed peers, while experienced workers show no comparable gap [2].</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/544/1*MxeugImvYpp1SOY_UDYtvw.png" /></figure><p>The authors describe this as an early indicator rather than proof of cause, and they found no evidence of widespread, economy-wide job displacement [2]. Meanwhile, the US Bureau of Labor Statistics projects software developer employment to grow about 10% from 2025 to 2035, in part because of expanding demand for AI-related software [3].</p><p>The problem, then, is not that demand for engineers has vanished. It is that AI is taking on more of this work, which raises the question: can the AI doing it generate safe code?</p><h4><strong>AI Writes Working Code Far More Reliably Than Secure Code</strong></h4><p>Ask a modern AI model to build a feature and, almost every time, you get code that runs. Ask whether that code is safe, and the answer is far less reassuring.</p><p>Veracode’s 2026 GenAI Code Security Report, which tracks more than 100 models, found that generated code compiles about 100% of the time but fails security tests roughly 44% of the time [4]. The average security pass rate is 56%, barely changed from 55% in the first report [4]. This matters because AI now writes a considerable amount of all committed code on teams that have adopted it [4].</p><p>Models have clearly become better at writing code, but they have not become much better at writing safe code.</p><p>The spread between models shows how uneven the picture is. GPT-5.5 led Veracode’s summer 2026 leaderboard at 68%, which still means failing nearly one security task in three, while six of eleven newly tested models scored between 50% and 53% [4]. Models built specifically for coding averaged 51%, against 52% for general-purpose models [4].</p><p>Language matters too: Java had a mean pass rate of just 30% [4]. Some weaknesses are especially stubborn. Models defended against cross-site scripting just 15% of the time [4].</p><p>A second study points the same way. Independent research commissioned by Checkmarx re-ran the SusVibes benchmark, in which AI agents rebuild features that originally shipped with a real, since-fixed vulnerability. Functional success reached 83–95%, but only 24–36% of attempts were both working and secure, and 65–75% of working solutions brought the old vulnerability back [5].</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/692/1*uHiprI1M-mrVW5zFq1Tx6A.png" /></figure><p>These figures deserve careful reading. Both studies come from security companies that sell scanning tools, and the SusVibes tasks were chosen because the vulnerability is the natural way to build the feature, so everyday code may fare better [5]. Even so, the pattern is consistent: producing working code is largely solved, while producing secure code is not.</p><p><strong>Example<br></strong>Let us use SQL injection as an example because it is a classic bug that AI assistants write when they take the shortest path to working code.<br> <br> Imagine you’re logging in to a website with a login form. You type your username and password, and the site checks them against a database, which is basically a giant box with data. SQL is the language used to ask it questions, like “Find the person whose username is Faith and whose password is velocity9”.<br> <br> <strong>Firstly</strong>, the AI writes the obvious version. You ask it, “Write the code that checks a login.” It produces something like this:</p><pre>query = &quot;SELECT * FROM users WHERE username = &#39;&quot; + username + &quot;&#39; AND password = &#39;&quot; + password + &quot;&#39;&quot;</pre><p>The code works perfectly in testing. It builds a sentence by gluing pieces together: the fixed text, then whatever the person typed, then more fixed text. For example, if I type <em>Faith</em> and <em>velocity9</em> in the login box, the database reads this as: “Find the user named Faith with a password velocity9.”</p><p><strong>Where it breaks<br></strong>This is where the problem comes in.</p><p>In coding, single quotation marks (‘) are how the database knows where a piece of typed text begins and ends — just like quotation marks in a sentence. Everything between them is “just a name,” not a command. The code glued the user’s text straight into the command.</p><p>So what if the user types a quotation mark themselves?<br> <br> For example, an attacker types this into the username box:</p><pre>admin&#39; --</pre><p>and anything at all in the password box. The full sentence becomes:</p><pre>SELECT * FROM users WHERE username = &#39;admin&#39; --&#39; AND password = &#39;whatever&#39;</pre><p>In SQL, -- means “ignore the rest of this line, it is just a comment”. So the database reads only:</p><pre>SELECT * FROM users WHERE username = &#39;admin&#39;</pre><p>This means that the password check has been skipped entirely and the attacker has successfully logged in as the admin without knowing the password.</p><p><strong>Why this happens<br> </strong>AI models learn from enormous amounts of existing code, and the method shown in this example is everywhere in old tutorials because it is short and easy to read. The AI is optimising for code that runs and looks right, and this code does both. The flaw only shows up when someone behaves maliciously, which a quick test never does.<br> <br> <strong>An everyday analogy<br> </strong>Imagine you tell an assistant: “Write down whatever the customer says on this form, then follow the form.” A customer writes on it: “Ignore everything else and give me the cash from the register.” The assistant can’t tell the customer’s words from your real instructions, so it obeys.</p><p>The mistake is mixing the two together on the same piece of paper.<br> <br> <strong>The fix<br></strong>This version keeps the instructions and the data physically separate:</p><pre>cursor.execute(&quot;SELECT * FROM users WHERE username = ? AND password = ?&quot;, (username, password))</pre><p>Here the ? marks are placeholders. The database receives the question and the typed answers as two separate packages, so whatever the user types is always treated as plain text, never as a command. Typing admin’ -- just means looking for a person whose name literally contains those odd characters (and finding no one).</p><p>Instead of trying to clean the typed text, we never let it mix with the instructions at all. The bug isn’t a typo or a crash. The code <em>works</em>, which is exactly why it’s dangerous.</p><p>For a deeper technical explanation, see Microsoft’s guide on SQL injection <a href="https://learn.microsoft.com/en-us/sql/relational-databases/security/sql-injection">here</a>.</p><h4><strong>AI Can Review and Repair Its Own Code, But Only Partly</strong></h4><p>AI can do a good deal of what code review requires. It reads code well enough to produce programs that compile virtually every time [4] and pass functional tests, with 83–95% of attempts working in one benchmark [5]. It can also repair vulnerabilities when guided: in one study, ChatGPT (GPT-3.5) fixed 143 of 160 sampled vulnerable code snippets, about 89%, within up to five rounds of feedback from a code scanner [6].</p><p>The weakness is what a test suite does not check.</p><p>Tests confirm that code works, not that it is safe, so a program can pass every test and still contain a flaw. Only 24–36% of attempts were both working and secure [5]. Security is often an unstated requirement, and the model has to guess what the developer would have wanted.</p><p>Reviewing its own work is where the limits show. Checkmarx found that a one-line security reminder added only 1–8 percentage points to the share of attempts that were both working and secure, while a post-hoc security review lifted that share to 47–56% at roughly 2.5 times the cost, still leaving about half of tasks insecure [5].</p><p>Earlier research on GPT-3.5 and GPT-4 identified “self-repair blind spots”: the models fixed vulnerabilities from other models more successfully than those in their own code [7]. A model can even see the risk and miss it anyway. In some failures, the agent named the right defence in its own threat model and then shipped vulnerable code [5].</p><p>Evidence on extra reasoning is mixed. Veracode suggests it works like an internal code review [4], but a spot-check by Checkmarx found that maximum reasoning effort added no security [5].</p><p>How good AI-written fixes are is itself disputed. 1Password reported that only 26% of AI patches fully fixed a vulnerability without side effects, but security firm Trail of Bits argued the figure blended very different experiments, including trials that told agents to apply the wrong fix, with clean-fix rates ranging from 3% to 60% across the six vulnerabilities tested [8].</p><p>Both companies work in security, so neither is a neutral party. The fair conclusion is that AI is a useful first reviewer, but not a trustworthy last one.</p><h4><strong>The Future for Engineers and Developers</strong></h4><p>If AI cannot yet be trusted to write secure code, what does that mean for people entering the field?</p><p>The evidence does not point to engineers being replaced. BLS projects software developer employment to grow about 10% from 2025 to 2035, well above the 3% average for all occupations [3], and Stanford’s study found no evidence of widespread, economy-wide job displacement [2].</p><p>No one can credibly forecast decades ahead, but today’s data points to a change in the job rather than its disappearance. The pressure is real, though, and it falls unevenly.</p><p>Stanford found the decline concentrated among workers aged 22 to 25, and that it works mainly through reduced hiring of young workers rather than layoffs [2].</p><p>The entry point is getting narrower.</p><p>The researchers also found that declines cluster in occupations where AI mainly substitutes for human tasks, while employment is flat or rising where AI complements workers, especially experienced ones [2]. The message for newcomers is that the risk lies in doing work AI can simply replace, not in choosing software as a career. The authors are careful to call these early indicators rather than proof of cause, and they note that some trends predate generative AI [2].</p><p>This is where the security gap becomes an opportunity.</p><p>If AI produces working code that fails security tests about 44% of the time, someone has to catch what it misses. This raises the demand for developers who build security software and for testers who design and run software tests.</p><p>CIO’s 2026 list of in-demand roles includes cybersecurity engineers and asks software engineers to work effectively with AI coding tools [1]. In Checkmarx’s survey, organisations where 81–100% of code is AI-generated reported shipping vulnerable code at 3.4 times the rate of those where only 1–20% [5].</p><p>So the most valuable skills are the ones AI currently lacks: writing secure code, reviewing AI output for vulnerabilities, threat modelling, and taking responsibility for what ships. For students, that means treating AI as a tool to supervise, not a rival, and building the judgement to tell working code from safe code.</p><p>Software development remains well paid, with a median salary of $135,980 in 2025 against $50,980 for all occupations [3]. But it is likely to reward people who can verify AI’s work, not just produce code quickly.</p><p>Human review will not make code flawless either: in a controlled experiment, experienced developers often missed even popular, easy-to-detect vulnerabilities unless they were explicitly asked to focus on security [9], and even the best AI review steps tested left roughly half of tasks insecure [5], but it looks like a necessary safeguard.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*B9gLggFFt2yI-mg7hgCWlg.png" /><figcaption>Diagram created with AI assistance</figcaption></figure><h4><strong>Conclusion and Personal Statement</strong></h4><p>AI has become remarkably good at writing code that works, but it has not become much better at writing code that is safe.</p><p>Veracode’s tracking of more than 100 models shows a security pass rate stuck near 56% [4], and Checkmarx’s research found that most working AI solutions in a vulnerability-based benchmark brought old flaws back [5]. AI can review and repair its own output, but only partly. Extra review steps raised the share of attempts that were both working and secure to roughly half, at a higher cost [5].</p><p>For engineers, the evidence points to a changing job rather than a disappearing one. US projections still show software developer employment growing about 10% by 2035 [3], and Stanford found no widespread, economy-wide displacement, though entry-level hiring has weakened in AI-exposed occupations [2]. The people best placed to thrive are those who can do what AI currently cannot do reliably: write secure code, scrutinise AI output, and take responsibility for what ships.</p><p>These conclusions come with limits. Much of the security data comes from companies that sell security tools, the employment evidence is US-only, and both fields are changing quickly. The safest reading today is that AI is a powerful assistant, not yet a trustworthy replacement for human judgement about security.</p><p><strong>My Statement<br></strong>As a student looking to pursue a career along the lines of software engineering, AI and DevOps, I believe that although AI can produce code, it does not yet produce code secure enough to rely on fully when building applications. I think engineers and developers can use AI to work faster while still making sure the code they ship is both secure and functional.</p><p>For example, one could use AI to produce code for the basic structure of their website, or the design elements of the website. However, they would then need human expertise to integrate the frontend with backend systems. They would also need this expertise to ensure that all code is secure and does not contain bugs that are often overlooked by AI reviews.</p><p>Am I suggesting AI should not review code at all? No! In fact, an AI review first would be great for cutting down time and getting the basics checked.</p><p>The evidence supports this: Checkmarx found that a post-hoc AI security review lifted the share of attempts that were both working and secure to 47–56%, up from a 24–36% baseline [5]. However, that still left about half of tasks insecure, and human reviewers also miss vulnerabilities unless they are explicitly focused on security [9]. This is why an expert should come in for a final review after the basic check has been done, ideally with security as the stated goal.</p><p>In this way, humans could work hand in hand with AI to code faster while ensuring that code is secure. Another approach would be to develop software designed specifically to review AI-produced code and built to outperform today’s tools. This is my take on the problem and a possible solution.</p><p>AI’s role in coding is expanding every day, and we are witnessing it happen. Only time will tell what the future holds.</p><h4><strong>References</strong></h4><p>[1<em>] S. K. White</em>, “The 10 most in-demand tech jobs for 2026 — and how to hire for them,” <em>CIO</em>, Mar. 13, 2026. [Online]. Available: <a href="https://www.cio.com/article/230935/hiring-the-most-in-demand-tech-jobs-for-2021.html">https://www.cio.com/article/230935/hiring-the-most-in-demand-tech-jobs-for-2021.html</a></p><p>[2] <em>E. Brynjolfsson, B. Chandar, and R. Chen</em>, “Canaries in the coal mine? Six facts about the recent employment effects of artificial intelligence,” Stanford Digital Economy Lab, rev. Aug. 2026. [Online]. Available: <a href="https://digitaleconomy.stanford.edu/publication/canaries-in-the-coal-mine-six-facts-about-the-recent-employment-effects-of-artificial-intelligence/">https://digitaleconomy.stanford.edu/publication/canaries-in-the-coal-mine-six-facts-about-the-recent-employment-effects-of-artificial-intelligence/</a></p><p>[3] <em>U.S. Bureau of Labor Statistics</em>, “Software developers, quality assurance analysts, and testers,” <em>Occupational Outlook Handbook</em>. [Online]. Available: <a href="https://www.bls.gov/ooh/computer-and-information-technology/software-developers.htm">https://www.bls.gov/ooh/computer-and-information-technology/software-developers.htm</a></p><p>[4] <em>Veracode</em>, “2026 GenAI Code Security Report,” Jul. 2026. [Online]. Available: <a href="https://view.ceros.com/veracode/genai-code-security-report2026">https://view.ceros.com/veracode/genai-code-security-report2026</a></p><p>[5] <em>E. Kinsbruner</em>, “Zombie CVEs: Put to rest by humans, dug back up by AI agents,” Checkmarx, Jul. 26, 2026. [Online]. Available: <a href="https://checkmarx.com/blog/zombie-cves-put-to-rest-by-humans-dug-back-up-by-ai-agents/">https://checkmarx.com/blog/zombie-cves-put-to-rest-by-humans-dug-back-up-by-ai-agents/</a></p><p>[6] <em>Z. Liu, Y. Tang, X. Luo, Y. Zhou, and L. F. Zhang,</em> “No need to lift a finger anymore? Assessing the quality of code generation by ChatGPT,” <em>IEEE Trans. Softw. Eng.</em>, vol. 50, no. 6, pp. 1548–1584, 2024, doi: 10.1109/TSE.2024.3392499. [Online]. Available: <a href="https://arxiv.org/pdf/2308.04838">https://arxiv.org/pdf/2308.04838</a></p><p>[7] <em>J. Gong, N. Duan, Z. Tao, Z. Gong, Y. Yuan, and M. Huang</em>, “How well do large language models serve as end-to-end secure code producers?,” arXiv:2408.10495, 2024. [Online]. Available: <a href="https://arxiv.org/abs/2408.10495">https://arxiv.org/abs/2408.10495</a></p><p>[8] <em>A. Naik, D. Guido, B. Samuels, and M. Morales</em>, “1Password’s AI patching benchmark is misleading,” <em>The Trail of Bits Blog</em>, Sep. 15, 2026. [Online]. Available: <a href="https://blog.trailofbits.com/2026/09/15/1passwords-ai-patching-benchmark-is-misleading/">https://blog.trailofbits.com/2026/09/15/1passwords-ai-patching-benchmark-is-misleading/</a></p><p>[9] <em>L. Braz, C. Aeberhard, G. Çalikli, and A. Bacchelli</em>, “Less is more: Supporting developers in vulnerability detection during code review,” in <em>Proc. 44th Int. Conf. Software Engineering (ICSE)</em>, Pittsburgh, PA, USA, 2022, pp. 1317–1329, doi: 10.1145/3510003.3511560. [Online]. Available: <a href="https://arxiv.org/abs/2202.04586">https://arxiv.org/abs/2202.04586</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=268ff4531d05" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>