{"id":9014,"date":"2026-03-11T08:00:00","date_gmt":"2026-03-11T08:00:00","guid":{"rendered":"https:\/\/stuartglover.com\/?p=9014"},"modified":"2026-03-11T08:00:00","modified_gmt":"2026-03-11T08:00:00","slug":"vibe-coding-good-bad-security-nightmare","status":"publish","type":"post","link":"http:\/\/iamglover.com\/?p=9014","title":{"rendered":"Vibe Coding: The Good, The Bad, and The Security Nightmare"},"content":{"rendered":"<p style=\"font-size:0.75em;font-weight:700;color:#E67E22;letter-spacing:0.1em;text-transform:uppercase;\">CYBERSECURITY<\/p>\n<p><strong>The best thing about vibe coding is that almost anyone can build software now. The worst thing about vibe coding is that almost anyone can build software now.<\/strong><\/p>\n<p>The same capability that democratises software creation also removes many of the friction points that caught errors. When you don&#8217;t understand what the code does, you can&#8217;t evaluate whether it&#8217;s safe, correct, or maintainable. You&#8217;re trusting the AI&#8217;s judgement entirely \u2014 and AI, when it comes to security, has some deeply ingrained bad habits.<\/p>\n<h2>What &#8220;Vibe Coding&#8221; Actually Produces<\/h2>\n<p>Tested against standard security benchmarks, AI-generated code shows consistent patterns of weakness: SQL injection vulnerabilities in database interactions, inadequate input validation, hardcoded credentials, insecure default configurations, and insufficient error handling that leaks sensitive information.<\/p>\n<p>These aren&#8217;t exotic edge cases. They&#8217;re the bread-and-butter vulnerabilities that security teams spend their lives hunting for. And they appear in AI-generated code at higher rates than in code written by experienced developers \u2014 partly because the training data includes a lot of old, insecure examples from the internet.<\/p>\n<blockquote style=\"border-left:4px solid #E67E22;padding-left:1.2em;font-style:italic;color:#E67E22;margin:1.5em 2em;\"><p>&#8220;AI has some deeply ingrained bad habits when it comes to security, learned from decades of insecure code on the internet.&#8221;<\/p><\/blockquote>\n<h2>The Opportunity in the Problem<\/h2>\n<p>None of this means AI-assisted coding is net negative for security. It absolutely isn&#8217;t. AI is genuinely excellent at explaining security concepts, reviewing code for known vulnerability patterns, suggesting fixes, and keeping up with security best practices across a wider range of frameworks than any individual developer could track.<\/p>\n<p>The issue is the uncritical use of AI to produce code that goes into production without security review. If you&#8217;re building with AI, treat every output as code you wrote at 2am after a long week. Review it. Test it. Don&#8217;t trust it blindly just because it was produced quickly and looks clean.<\/p>\n<hr\/>\n<p style=\"font-size:0.8em;color:#888;font-style:italic;\">Tags: Artificial Intelligence \u2022 Opinion \u2022 Technology &amp; Society \u2022 192.168.1.22\/<\/p>\n","protected":false},"excerpt":{"rendered":"<p>AI-assisted coding has made building software accessible to people who couldn&#8217;t write a line before. It&#8217;s also shipped a lot of vulnerable code. Both things are true.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,23],"tags":[],"class_list":["post-9014","post","type-post","status-publish","format-standard","hentry","category-artificial-intelligence","category-technology"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"http:\/\/iamglover.com\/index.php?rest_route=\/wp\/v2\/posts\/9014","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/iamglover.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/iamglover.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/iamglover.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/iamglover.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=9014"}],"version-history":[{"count":1,"href":"http:\/\/iamglover.com\/index.php?rest_route=\/wp\/v2\/posts\/9014\/revisions"}],"predecessor-version":[{"id":9082,"href":"http:\/\/iamglover.com\/index.php?rest_route=\/wp\/v2\/posts\/9014\/revisions\/9082"}],"wp:attachment":[{"href":"http:\/\/iamglover.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=9014"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/iamglover.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=9014"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/iamglover.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=9014"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}