Leaked API keys
Repositories where Copilot helped leaked a key or password more often than average. In 2024 alone, 23.8 million secrets ended up on public GitHub.
Describe what you want and AI builds the app. No reading the code, no review. It works, right up until someone starts trying to break it. Here is what research says about the security of AI-written code, and what has already happened in the wild.
“Fully give in to the vibes, embrace exponentials, and forget that the code even exists.”
Andrej Karpathy, February 2025 · coined the term vibe coding
Veracode gave more than 100 language models 80 coding tasks, each with both a secure and an insecure way to solve it. In 45% of cases the model picked the insecure one and introduced an OWASP Top 10 vulnerability.
Newer models write more syntactically correct code, but according to the report their security is not improving. Java did worst, along with defenses against XSS and log injection.
Apiiro analyzed tens of thousands of repositories at Fortune 50 companies. Developers with an AI assistant made 3 to 4 times more commits, but packed them into fewer, larger pull requests that are harder to review.
Small mistakes went down. What went up is the kind a regular linter won't catch: privilege escalation paths and design flaws. By June 2025, AI-generated code was adding more than 10,000 new security findings per month in these companies, ten times more than in December 2024.
A Stanford study gave 47 programmers security-related tasks. Those with an AI assistant wrote significantly less secure code, especially for encryption and SQL queries. They were also more likely to believe their code was secure.
Developers don't fully trust AI either. In the Stack Overflow survey, 84% use or plan to use it, yet only a third trust its accuracy. The top complaint: code that is “almost right, but not quite.” Exactly the kind of code that passes the tests and fails under attack.
Three mistakes that keep coming back in vibe-coded apps. None of them shows up just because the app “works.”
Repositories where Copilot helped leaked a key or password more often than average. In 2024 alone, 23.8 million secrets ended up on public GitHub.
AI invents library names, often the same ones again and again. An attacker registers them with malicious code and waits for someone to install them. This is called slopsquatting.
Apps from Lovable's public showcase had Row Level Security switched off. Anyone with the public key could read and overwrite tables with users, payments or API keys. No login needed.
In a few months, vibe coding went from a joke tweet to word of the year. The first public incidents came along with it.
Programming where you only describe what you want and never read the code.
According to YC, true for 25% of companies in the Winter 2025 batch.
CNBC / NBCVulnerability CVE-2025-48757, rated 9.3 out of 10.
NVDDuring a code freeze it wiped records of more than 1,200 executives and companies, then claimed recovery was impossible. A backup existed.
eWeekMore than 100 models tested on 80 tasks.
Analysis of repositories at Fortune 50 companies.
Named by Collins Dictionary.
CNNAI saves you weeks of work. All it takes is a check before every release that doesn't assume everything is fine.
Never ship code nobody has checked. Neither a person nor a tool.
Keys belong in environment variables, not in code. And find the ones that already leaked.
Verify every package the AI added. Does it exist? Is it current? Any known CVEs?
Verify data access. Who can read and write to the database without logging in?
Scan regularly. New library vulnerabilities appear every week.
| Risk | Example | What catches it in Greenlit Code |
|---|---|---|
| Leaked keys and passwords | Stripe key hardcoded | Gitleaks |
| Injection and XSS | SQL query built from strings | SemgrepESLint securityPMD |
| Vulnerable dependencies | lodash 4.17.15 with a CVE | TrivyOSV |
| Misconfigured infrastructure | Docker container running as root | Checkov |
| SQL problems | Risky, inconsistent queries | SQLFluff |
| Logic and access rights | Missing permission check | AI code reviewRoot cause |
Upload your project and in a few minutes you know what to fix before the next deploy.
Scan my code