Why QA testing won't save a vibe-coded app (and what will)

Why QA testing won't save a vibe-coded app (and what will)
About two years ago I built an app on Lovable. I knew what I was doing, and I set strict security rules. Within about two days of testing, while the app was already public, I found that its Supabase tables were readable by anyone on the internet.
It was a trial lead-capture website. Row-level security on its tables was missing or too weak. No real prospect data was ever exposed. The full story is in vibe coding horror stories.
One detail matters for this post. Functional testing didn't find it.
That's why I don't think QA for vibe coding is enough on its own. QA can show the features work. Security is a different animal.
Disclosure: yousource publishes this and sells Production Assurance and QA On Demand.
In this post, by QA for vibe coding I mean a functional pass on an AI-built app: checking that each feature does what it should, as the user it was built for. ISTQB calls that functional testing [R2]. A production readiness review asks a different question. It looks at how the app is built, and whether it's safe to run.
Key takeaways
- ISTQB describes black-box test techniques as working "without reference to its internal structure" [R1].
- In the data behind the OWASP Top 10:2025, 100% of applications tested had some form of broken access control [R7].
- Testing for IDOR works best with "at least two (often more) users", says OWASP's testing guide [R10].
- Even the strongest agent in the LSCBench preprint wrote functional and secure code for only 25.1% of tasks [R17].
- I found my own open Supabase tables within about two days of testing, while the app was already public. Functional testing didn't find them.
What is QA built to find?
QA is built to find places where the app doesn't do what it should. Much of it uses black-box techniques, which ISTQB describes as based on the specified behaviour "without reference to its internal structure" [R1]. The tester doesn't need the code.
ISTQB also draws the line between functional vs non-functional testing. Functional testing covers "what" the system should do [R2]. Non-functional testing covers "how well the system behaves" [R2]. Security sits in that non-functional list, next to maintainability, reliability and performance efficiency [R2].
So a functional pass can't tell you an app is safe. Dijkstra wrote the wider limit down in 1969: "Program testing can be used to show the presence of bugs, but never to show their absence!" [R23] ISTQB lists the same idea, "Testing shows the presence, not the absence of defects", as the first of its seven testing principles [R3].
The bugs that don't show on screen
Some of the most serious bugs in a vibe-coded app don't show on screen. Broken access control is number one in the OWASP Top 10 for 2025 [R7]. In the data behind that list, 100% of applications tested had some form of it [R7]. That figure covers software in general, not only AI-built apps.
The classic case is IDOR: viewing or editing someone else's account "by providing its unique identifier" [R8]. On screen, nothing looks wrong.
OWASP's testing guide says the best way to test for it is "having at least two (often more) users to cover different owned objects and functions" [R10]. The tester then changes the IDs inside the requests the app sends [R10, R11]. A one-user QA pass uses the app as designed and never makes that swap.
Some of these problems aren't behaviour at all. Supabase says the anon key older projects use "is not a secret" and tells you to protect exposed tables with Row Level Security [R13]. Without RLS, every screen still works. So does an app with a secret key in its browser bundle, a backup nobody has tried to restore, or a query that runs once per row.
ISTQB says static testing can find defects "which cannot be detected by dynamic testing" [R5]. It also lists "inefficient database structures" among the defects that are easier or cheaper to find that way [R5]. I walked through two of these, open tables and keys in the browser bundle, in four leaks to check before you share the link.
What the research found
LSCBench is a benchmark posted to arXiv in October 2026 by researchers at the National University of Singapore and Alibaba [R17]. It's a preprint and hasn't been peer reviewed yet. It gives coding agents 450 tasks built from 150 real vulnerabilities [R17]. Every task asks only for a feature, through a specification "that never mentions security" [R17].
Across six agents, between 73.6% and 91.3% of tasks passed the functional tests [R17]. The strongest agent wrote code that was both functional and secure for only 25.1% of tasks [R17]. The other five managed between 16.4% and 24.7% [R17]. The authors put it in one line: "A functional check cannot catch these flaws." [R17]
They also note that users "check whether the functionality works and rarely inspect the code" [R17]. That's exactly the check a functional pass makes.
An earlier study points the same way. In the current version of the SusVibes paper, from September 2026, 57% of one agent setup's solutions were functionally correct [R18]. Only 11.8% were secure [R18].
Where QA for vibe coding still earns its place
There's still lots of value in QA. I'd want it on any app, vibe-coded or not. It's how you learn that last week's change broke sign-up, or that a form fails on one browser. That's regression, user-flow, cross-browser and acceptance work.
Our post on the QA bottleneck in AI-written code argues for acceptance tests before the work and regression checks on every pull request. How to test AI-generated code explains why tests should come from the spec, not from the model that wrote the code.
QA people could fairly push back here. OWASP says "Developers and QA staff should include functional access control in their unit and integration tests." [R9] A tester with two accounts and a tool to edit requests can find an IDOR [R10]. So my claim is narrower. A pass through the screen, as one user, isn't built for these bugs.
Looking for security holes isn't QA's job. QA is a very specific job: break the flow. If you can't break it, it works. QA On Demand covers functional, regression, exploratory and cross-browser testing, plus user acceptance testing support.
Personally I really prefer unit testing. A unit test checks behaviour too, but not the way QA does. It checks the behaviour of the code. It doesn't test for security either. My open tables came from a missing or too-weak database rule, and my unit tests wouldn't have looked there. And when an AI writes the unit tests as well, an ISSTA 2026 paper found that buggy code leads to more tests that "assert incorrect behavior" [R22].
What looks under the hood
The other question is how the app is built. NIST's Secure Software Development Framework covers this in a few practices [R15]. PW.7 covers code review, where "a person looks directly at the code to find issues" [R15]. PW.8 is to "Test Executable Code to Identify Vulnerabilities" [R15]. PW.1.1 adds risk modelling, such as threat modelling and attack surface mapping [R15]. Those IDs are from version 1.1; a revision is in draft [R16].
That's the work a production readiness review does. Ours is called Production Assurance. It works through 12 questions and 225 checks, including access control, keys in browser code, whether backups have actually been restored, and N+1 queries. A person checks every result. It ends with a signed verdict: ready, ready with conditions, or not ready yet.
A review has a fair weakness. Bugcrowd calls point-in-time testing "essentially snapshotting your asset risk at a given time" [R25]. That's true. Our own page says a "Ready" verdict means "no launch blockers in what we reviewed, on the day we reviewed it." Code that changes afterwards still needs QA. On cost, ISTQB admits "reviews can be costly to implement" [R6]. It also says overall project costs are "usually much lower than when no reviews are performed" [R6].
QA vs Production Assurance: who checks what
| Question | QA (functional pass) | Production Assurance |
|---|---|---|
| Do the user flows work? | Yes | Not its focus |
| Did a change break something that worked? | Yes | Not its focus |
| Does it work across browsers? | Yes | Not its focus |
| Can one customer see another's data? | Not in a one-user pass | Yes (access control, IDOR, tenant leaks) |
| Are secret keys in the browser code? | No | Yes (AI-code review) |
| Do backups actually restore? | No | Yes (checks backups have actually been restored) |
| Does it hold up under load, without N+1 queries? | No | Yes (N+1 queries, load test at expected peak and twice that) |
If your app was built with prompts and tested by clicking through it, you know the features work. You don't yet know who can see whose data. Production Assurance is built to answer that. For the behaviour side, there's QA On Demand.
Before either, try one thing this week. Log in as two different users and see whether one can load the other's records.
Frequently asked questions
Can QA find security bugs?
Yes, when the testing is designed for it. OWASP says developers and QA staff should include access-control checks in their unit and integration tests [R9]. OWASP's IDOR test works best with at least two users and edited requests [R10]. A standard functional pass as one user isn't built to catch it.
Do passing tests mean my AI-built app is safe?
No. Testing can show bugs are present, but never that they're absent [R23]. In the LSCBench preprint, the strongest coding agent produced code that was both functional and secure for only 25.1% of tasks [R17].
Do I need both QA and a production readiness review?
For an app with real users, I think so. QA checks that the features keep working after each change. A production readiness review checks how the app is built, such as access control, keys, backups and load. ISTQB notes that static testing finds some defects "which cannot be detected by dynamic testing" [R5].
Sources
- [R1] ISTQB CTFL Syllabus v4.0.1, s.4.1: black-box techniques "without reference to its internal structure". — https://www.istqb.org/
wp-content/ uploads/ 2024/ 11/ ISTQB_CTFL_Syllabus_v4.0.1.pdf - [R2] ISTQB CTFL Syllabus v4.0.1, s.2.2.2: functional testing = "what"; non-functional = "how well the system behaves"; ISO/IEC 25010 list incl. security, maintainability, reliability, performance efficiency. — https://www.istqb.org/
wp-content/ uploads/ 2024/ 11/ ISTQB_CTFL_Syllabus_v4.0.1.pdf - [R3] ISTQB CTFL Syllabus v4.0.1, s.1.3, principle 1: "Testing shows the presence, not the absence of defects." — https://www.istqb.org/
wp-content/ uploads/ 2024/ 11/ ISTQB_CTFL_Syllabus_v4.0.1.pdf - [R5] ISTQB CTFL Syllabus v4.0.1, s.3.1.2 and s.3.1.3: static testing finds defects "which cannot be detected by dynamic testing"; separately lists "inefficient database structures" among defects easier and/or cheaper to find statically. — https://www.istqb.org/
wp-content/ uploads/ 2024/ 11/ ISTQB_CTFL_Syllabus_v4.0.1.pdf - [R6] ISTQB CTFL Syllabus v4.0.1, s.3.1.2: reviews "can be costly to implement" but overall costs "usually much lower than when no reviews are performed". — https://www.istqb.org/
wp-content/ uploads/ 2024/ 11/ ISTQB_CTFL_Syllabus_v4.0.1.pdf - [R7] OWASP Top 10:2025 A01 Broken Access Control: #1; "100% of the applications tested were found to have some form of broken access control." — https://top10.owasp.org/
2025/ A01_2025-Broken_Access_Control - [R8] OWASP Top 10:2025 A01: "Permitting viewing or editing someone else's account by providing its unique identifier". — https://top10.owasp.org/
2025/ A01_2025-Broken_Access_Control - [R9] OWASP Top 10:2025 A01: "Developers and QA staff should include functional access control in their unit and integration tests." — https://top10.owasp.org/
2025/ A01_2025-Broken_Access_Control - [R10] OWASP WSTG v4.2, WSTG-ATHZ-04 (IDOR): map where input references objects; "having at least two (often more) users to cover different owned objects and functions." — https://wstg.owasp.org/
v4.2/ 4-Web_Application_Security_Testing/ 05-Authorization_Testing/ 04-Testing_for_Insecure_Direct_Object_References/ - [R11] OWASP API Security Top 10 2023, API1 BOLA: exploited "by manipulating the ID of an object that is sent within the request". — https://api-security.owasp.org/
editions/ 2023/ en/ 0xa1-broken-object-level-authorization - [R13] Supabase docs, secure data guide: anon key (older projects) "is not a secret"; protect exposed tables with Row Level Security. — https://supabase.com/
docs/ guides/ database/ secure-data - [R15] NIST SP 800-218 SSDF v1.1: PW.7, PW.7.1 (code review definition), PW.8, PW.1.1 (threat modeling, attack modeling, attack surface mapping). — https://nvlpubs.nist.gov/
nistpubs/ specialpublications/ nist.sp.800-218.pdf - [R16] NIST SP 800-218 Rev. 1 (v1.2) initial public draft, 17 Dec 2025. — https://csrc.nist.gov/
pubs/ sp/ 800/ 218/ r1/ ipd - [R17] Wu et al., LSCBench, arXiv 2610.14766, 10 Oct 2026 (preprint): 450 tasks from 150 vulnerabilities; 73.6% to 91.3% pass functionally; 25.1% best functional-and-secure, others 16.4% to 24.7%; "A functional check cannot catch these flaws". — https://arxiv.org/
pdf/ 2610.14766 - [R18] Zhao et al., SusVibes, arXiv 2512.03262 v4, 21 Sep 2026: "57% of the solutions from SWE-Agent with Claude 4 Sonnet are functionally correct, only 11.8% are secure" (v1, Dec 2025, reported 61% and 10.5%). — https://arxiv.org/
abs/ 2512.03262 - [R22] Zhao, Zhou, Cohen, ISSTA 2026: buggy code increases "misguided tests" that assert incorrect behavior. — https://arxiv.org/
abs/ 2607.22883 - [R23] Dijkstra, EWD249 "Notes on Structured Programming": "Program testing can be used to show the presence of bugs, but never to show their absence!" — https://www.cs.utexas.edu/
users/ EWD/ transcriptions/ EWD02xx/ EWD249/ EWD249.html - [R25] Bugcrowd, point-in-time vs continuous penetration testing, 1 Jun 2026: "essentially snapshotting your asset risk at a given time". — https://www.bugcrowd.com/
blog/ point-in-time-vs-continuous-penetration-testing-a-comparison-guide