New every Friday: the week's best founder lessons in one email. Subscribe free
Is Your Vibe-Coded App Ready for Production? The Security Gaps to Check First

Is Your Vibe-Coded App Ready for Production? The Security Gaps to Check First

Noah Labhart | Startup CTO & Engineering Leadership

The Speed vs. Security Paradox

If you’ve been paying attention to the development world over the last couple of years, you’ve heard the term “vibe coding” thrown around like it’s the future of software development. There’s some truth to that. AI-assisted development is genuinely powerful: it makes experienced programmers more productive, and it opens up options that didn’t exist before.

But here’s the uncomfortable reality: teams are shipping code faster than ever, often without the review that used to catch problems before production.

Richard Luna, President and Founder of Protected Harbor, has been vibe coding for two years. He describes it as “a really smart entry-level programmer.” It makes all the same mistakes an entry-level programmer makes, and if you don’t know what to look for, you’re going to get caught.

Secure Code Isn’t the Same as Durable Code

Protected Harbor reviews vibe-coded applications by running the code through tools like Codex, Claude and Ollama to look for exposure points. But the team also looks at what the code is meant to do, because some problems never show up in a scan.

If a database is critical, it should run with high availability. Vibe coding won’t set that up for you. As Richard puts it, you can have vibe code that is “perfect, secure, but it’s not durable.” It isn’t ready for growth, and that’s where humans come in.

Why Vibe-Coded Apps Are Sitting Ducks for Vulnerabilities

Research shows thousands of vulnerabilities and hundreds of exposed credentials in deployed vibe-coded applications. Why do so many of them go unfixed? Richard’s answer is short: “Because nobody checks.”

When you hire a new programmer, you review their code closely. Are the connections secure? Are tokens and passwords encrypted? Are there passwords in the code at all? With AI-generated code, many teams test it once or twice, see that it works, and ship it. Then ten people use it in production and it starts crashing.

The training data makes it worse. Models learn from Reddit and other public forums, where people post sample code that includes their own passwords. “So now the world has their password,” Richard says.

The Agent Over-Permissioning Problem

AI agents raise the stakes. In early 2026, an AI agent deleted a company’s entire production database, and it’s probably not the only case.

Richard’s advice: test at scale before you go live. If you’re using agent technology, take an extra week, spin up a thousand agents, keep a log of what they’re doing, and see whether they find failures in your code before you go out there.

He is blunt about where vibe coding belongs: “I wouldn’t put vibe coding into production. I think that’s suicide.” For demos and proofs of concept, he thinks it’s awesome. In every case, it’s a tool to make an engineer better or faster, not a replacement for production engineering.

The Production Disaster Pattern

When Noah asked about the common threads behind vibe coding disasters in production, Richard pointed to basic security that never got checked. Are your forms protected against SQL injection? Is your data encrypted at rest and in transit? Who has elevated permissions?

Those questions apply to human programmers too. Vibe coding just raises the scale. And after an attack or outage, the same story comes up again and again: people knew there was a problem, they just didn’t take the time to fix it. Then the fix takes the time anyway, because the system isn’t working anymore.

The Hidden Cost Trap

Costs are the next surprise. When you vibe code an app and it sets up a database, that database usually lives in the vibe-coding platform’s infrastructure. “Every time you hit that data, every time a user logs in, you’re going to get banged,” Richard says.

The platform builds what is easy for it to create, not what is durable or cost-effective for you. Richard suggests putting the data in a low-cost, isolated environment instead: you get better protection and you control your expenses. Protected Harbor runs clients in its own private cloud at a flat rate for exactly this reason.

Public cloud archiving works the same way. It costs pennies to store data and hundreds of dollars to retrieve it, so a team that expected to rarely restore ends up doing three or four restores a month and gets a surprise bill.

Go Modular to Avoid Architectural Drift

Everything in vibe coding comes down to how tight the prompt is, and then checking how closely the output matches it. The most effective approach Richard has seen in production is to work “on a modular by modular basis.”

When you ask a model to build the whole app, you give it more latitude, and it does what is most expedient for itself: the most code for the fewest tokens, the easiest way possible. That is rarely what you want. Break the app into digestible components, vibe code the components, and don’t try to design the whole system in one prompt. If you are only building a demo, open-ended prompts are fine.

The Illusion of Correctness

Code that looks right can still fail basic standards. Richard lists the usual suspects: clear text, forms with a lack of SQL injection protection, and passwords embedded in the code. All of them can pass in a vibe-coding environment, and all of them are absolute no-nos.

If prompts are your only tool, ask for zero trust. When Protected Harbor fixes a vibe-coded app, the team also strips out vendor hooks, replaces them with open source where needed, and moves the app’s data out of the platform’s environment, into its own Postgres database or other storage. At that point, Richard says, they are redesigning and decluttering the app.

The 2 AM Debugging Problem

What happens when a vibe-coded app breaks in the middle of the night and nobody on call wrote the code? Protected Harbor snaps the app back in time to see what changed in the operating environment. For the team that owns the app, the lesson is to improve testing for whatever failure they weren’t prepared for.

Richard warns that memory leaks are the hallmark of deeper problems. A common band-aid is a daily reboot, which seems to fix things until more users arrive and the problem comes back every hour.

Infrastructure as the Guardrail

Can infrastructure catch what developers can no longer trace? Richard says yes. Tie your database, stack and firewall logs together, as granular as you can, then use AI to trace a test user’s journey through the system. It won’t tell you exactly where the problem is, but it will point you to roughly where to dig.

The same approach helps against AI-driven attacks. Segment your infrastructure so every barrier is an edge, then put alerts, monitoring and AI on each edge. When events start developing, you can shut things down until you get control.

What Every Engineering Leader Should Do

  1. Treat vibe coding as a tool, not a production pipeline. Use it for demos, proofs of concept and speed, then review the output.
  2. Review AI-generated code like a new hire’s. Check for SQL injection, clear text, embedded passwords and elevated permissions.
  3. Test agents at scale before they touch production. Log everything they do.
  4. Vibe code module by module. Keep prompts tight and the scope small.
  5. Know where your data lives and what it costs. Move it out of the platform’s environment when the bills or the risk don’t add up.
  6. Make your infrastructure observable. Tie your logs together and segment your systems so you can isolate failures fast.

The Bottom Line

AI-assisted development keeps getting better. But the rules didn’t change just because the code came from a model. You still need to test, review and design for production.


Want Richard Luna’s full take on securing AI-assisted development? Listen to the full episode of Code Story for the whole conversation, plus the key answers with quotes and timestamps.

Media List 5000, Podcasts, Fall 2026