Today, we have an exciting follow up episode with our friends from Protected Harbor. As a reminder, Protected Harbor engineers and operates infrastructure specific to how your application actually behaves - ensuring your platform remains stable, scalable and predictable as it grows.
You may remember our conversation with Richard Luna of Protected Harbor, who came on the show in Season 12. He returns to the show today to dive into the fast-paced world of AI-assisted development and the hidden security risks that come with it.
As "vibe coding" gains massive popularity, development teams are shipping software faster than ever. However, beneath the surface lies a growing landscape of vulnerable code, exposed credentials, and unpredictable infrastructure costs.
Today, Richard and I examine the fine line between fast innovation and the dangerous reality of production disasters caused by AI agents, unpacking what every engineering leader needs to know before letting AI write their codebase.
Questions:
Measuring Code Integrity: How do companies actually know whether their AI-generated code is robust and secure, or secretly sitting full of exposed vulnerabilities?
The Vibe Coding Reality Check: Research shows thousands of vulnerabilities and hundreds of exposed credentials in deployed vibe-coded apps—why are credentials exposed through AI workflows so much less likely to be fixed compared to traditional ones?
Agent Over-Permissioning: In early 2026, we saw a famous case where an AI agent deleted a company's entire production database. How do we solve the problem of giving AI agents too much access without completely stifling their usefulness?
Production Disasters: A recent survey revealed that 16 out of 18 CTOs reported vibe coding disasters in production. What are the common threads connecting these incidents?
The Hidden Cost Traps: AI code rarely accounts for infrastructure costs—leading to over-provisioning and bloated API calls. How can engineering teams prevent these financial "booby traps" before spiraling costs hit?
Architectural Drift: How do you maintain a clean, consistent software architecture when successive AI prompts often cause code degradation and inconsistency over time?
The Deceptive "95% Correct" Trap: Veracode’s recent testing found that nearly 45% of AI-generated code contains security flaws, even though 95% of it syntax-wise looks completely fine. How do teams combat this illusion of correctness?
The 2:00 AM Debugging Problem: When a vibe-coded application breaks in the middle of the night and no human on call actually wrote or understands the code, how does a team handle incident response?
Infrastructure as a Guardrail: Can modern infrastructure step in to catch, isolate, and diagnose application failures that human developers can no longer quickly trace?
Designing for Long-Term Maintenance: Security requires deliberate design and deep understanding. Moving forward, what hybrid practices should teams adopt to get the speed of AI while retaining human-level security and maintainability?
Links
https://www.linkedin.com/in/richardluna/
Timestamps
00:00 – Intro
03:27 – Application-Aware Infrastructure
04:56 – Secure Code vs Durable Code
09:54 – Why Vibe Coding Vulnerabilities Go Unfixed
11:40 – Over-Permissioned AI Agents
13:44 – What Production Disasters Have in Common
15:42 – Avoiding Surprise Cloud Bills
18:27 – Preventing Architectural Drift
21:02 – The Illusion of Correctness
25:31 – The 2 AM Debugging Problem
27:22 – Logs, AI and Segmented Infrastructure
29:39 – Modular Vibe Coding for Teams
Times are from the episode recording; ad breaks in your player may shift them a bit later.
Read the key answers from this episode, with quotes and timestamps from Richard Luna from Protected Harbor: https://www.codestory.co/episodes/s13-bonus-the-security-risks-of-vibe-coding-with-richard-luna-of-protected-harbor/
Current Sponsors:

