I need to share something that has been keeping me up at night.
Last month, our AppSec team ran a comprehensive audit of every internal tool and prototype built using AI coding assistants over the past 6 months. We found 47 high-severity vulnerabilities across 12 applications—tools that engineering teams had already deployed to staging, and in 3 cases, production.
This is not a hypothetical. This is happening inside a Fortune 500 financial services company with a mature security program.
The Numbers Are Alarming
The industry data confirms what we found internally:
- 2,000+ high-impact vulnerabilities found across 5,600 vibe-coded applications in a recent security audit (Palo Alto Unit 42)
- 53% of AI-generated code contains security vulnerabilities (Autonoma research)
- 175 instances of exposed personal data and 400+ exposed secrets across those same apps
- Amazon’s March 2026 outage—caused by an AI-assisted code deployment—resulted in a 6-hour shutdown and an estimated 6.3 million lost orders
And these are just the ones we know about.
What’s Actually Going Wrong
After reviewing our audit findings with the AppSec team, the pattern is clear. AI agents generate code that works functionally but systematically skips:
- Input validation and sanitization — SQL injection and XSS vectors that any mid-level engineer would catch
- Authentication boundary enforcement — APIs that return data without checking whether the caller has authorization
- Secret management — Hardcoded API keys, database credentials in config files committed to repos
- Error handling that leaks information — Stack traces, internal paths, and system details exposed in error responses
The Moltbook incident in February was a wake-up call: a misconfigured Supabase database in their vibe-coded ecosystem exposed 1.5 million API keys and 35,000 user email addresses to the public internet. This was not a sophisticated attack. It was a misconfiguration that no human-written production code would have shipped with.
The Speed vs. Security Tension Is Real
Here is where it gets uncomfortable. My engineering teams are measurably faster with AI assistants. Feature delivery timelines have improved. Developer satisfaction is up. The business loves the velocity.
But every one of those speed gains came with security debt that nobody was tracking. We were essentially running two books: one that showed improved throughput metrics and one (that we only discovered through the audit) that showed an expanding attack surface.
In financial services, the regulatory implications are severe. We are talking about SOX compliance, PCI DSS, GLBA—frameworks that do not care whether the vulnerability was written by a human or an AI.
What We’re Doing About It
We have implemented three changes so far:
1. Mandatory security scanning in CI/CD for all AI-assisted code
Every PR now runs through SAST/DAST tooling with rules specifically tuned for common AI code patterns. This added ~4 minutes to our pipeline but catches roughly 70% of the issues.
2. “AI Code Review Checklist” for human reviewers
A focused checklist that hits the top 10 patterns we see AI agents miss. Input validation, auth boundaries, secret management, error handling, dependency pinning, CORS configuration, rate limiting, logging hygiene, data classification, and encryption at rest.
3. Quarterly AI code audits
Dedicated security review of all code produced with AI assistance in the prior quarter. This is expensive but necessary in our regulatory environment.
The Question I Cannot Answer
What I have not figured out is the cultural piece. How do you maintain the velocity benefits of AI coding while building a security-first mindset in teams that are increasingly relying on AI to write their code?
When an engineer uses Cursor or Claude Code to generate a feature, they are not thinking through the security implications the way they would if they wrote every line themselves. The cognitive engagement with the code is different. You are reviewing rather than creating, and that is a fundamentally different security posture.
For those of you managing engineering teams: How are you handling the security implications of AI-generated code? Are you seeing the same patterns? And for those in less-regulated industries—are you even tracking this, or is it a problem you will deal with later?
I suspect a lot of teams are sitting on a security debt iceberg and do not know it yet.