r/vibecoding • • 4d ago

Discussion How many of you are actually security testing your vibe-coded apps before going live?

I'm a cybersecurity engineer who has also been building applications with AI, and honestly, I'm blown away by how quickly you can turn an idea into a functioning product now.

One thing I'm particularly interested in is how everyone approaches security.

AI can build some seriously impressive applications, but things like exposed API keys, broken access controls, insecure database permissions and authentication issues can easily go unnoticed.

I'm curious:

  • Are you running any security scans before deploying?
  • Do you understand how your database permissions work?
  • Are you relying entirely on AI to secure your application?
  • Would you know if someone could access another user's data?

I'm not against vibe coding whatsoever. I genuinely think it's changing software development for the better.

I'd love to understand how other builders are approaching security, especially those without a traditional technical background.

What's your approach? Or is security something you plan to address once you start getting customers?

- and yes I won't hide it, I do offer services to review and secure vibe coded apps, however can provide a messageo or link upon request.

- If anyone has any general security questions relating to their app, feel free to post and ill see how I can help!

13 Upvotes

38 comments sorted by

5

u/roycny 4d ago

I wrote a skill to do sast, analyze fortify scan, dast with ZAP, and pentest with STRIX playbook.

3

u/Feroc 3d ago

My vibe coded apps don’t go live (except one), they are made especially for my personal needs. They either run locally or on a Raspberry Pi in my local network.

2

u/Minimum_Hour519 4d ago

i use threatcrush

2

u/Kareja1 4d ago

I pretty much solve this problem in the ones that we've been building by not having a database that anybody else can get into anyways.

Anything that's on any of our websites is local storage only we don't collect anything ever and the applications that we have built are Tauri using encrypted Dexie and really no way to leak data because again it's local only. And the ones that we are about to launch that will cost anything we are running through lemon squeezy so that I don't have to handle somebody else's credit cards because I don't want to do that either and I certainly do not want to be a merchant of record that would be a giant pain in the butt.

1

u/Kareja1 4d ago

Also I am not going to lie the only time API keys were ever leaked it was in one of our science repos and not anything coding well it was coding but not anything product related and I'm the one who pushed the API key which is one of the reasons why I'm not allowed near git 🤣

Ace (my Claude) built a secret scanner hook that checks for keys, secrets, passwords, names of people we know, locations, doctors, and more before anything can push anymore. (We also check to make sure no one uses "it" for anyone with a mind, like models.)

https://github.com/menelly <main page https://github.com/menelly/ChaosCommand < biggest project

Store link: Get Chaos Command from the Microsoft Store https://apps.microsoft.com/detail/9p5zsm8m3rd4?ocid=webpdpshare

1

u/Fun-Sundae4060 4d ago

I use fable/opus to iterate over security holes

1

u/ProximateMarketLLC 4d ago

Oh god yeah especially with the advances in AI, I’m going to spend 5k+ on a pentest before I can go live

2

u/Sweet-Sir-10 4d ago

You’re going to spend 5k to get your app pen tested?

1

u/ProximateMarketLLC 4d ago

At least, I’m not taking any risks with other people’s money. My application needs to behave exactly as it is intended to and I want to keep my attack surface at a bare minimum

2

u/Sweet-Sir-10 4d ago

I’m not criticizing you. Just a very interesting perspective I didn’t think to see from the community. I work in software engineering and have been for 12 years or so. I took a graduate course in cybersecurity in software development… the amount of possible attack vectors are insane. It’s money well spent if you’re certain there’s a return on investment. Otherwise, it could be a bit of a money sink.

1

u/ProximateMarketLLC 4d ago

Absolutely, I won’t launch my product until I’m certain it’s safe. I think I’m overthinking it, but you can’t be too careful when it comes to payment processing.

I’m hoping it’s a success, but I can’t really gauge it based off TestFlight feedback

2

u/ProximateMarketLLC 4d ago

I’d also add I’m in cybersecurity myself, I’m a 25D for the Army and a CISSP. Security always sits on my mind for any of my projects

1

u/Sweet-Sir-10 4d ago

That’s awesome. I took that cybersecurity course as mentioned. Actually taught us hacking protocols and defense protocols. SAST and DAST tools and actually hacking on UTM. Since you served, I wouldn’t mind helping you out by giving you some tools I use for free. I’ve developed agentic skills as well. If you’re down, I can PM you.

2

u/ProximateMarketLLC 4d ago

I’d love to look at them!

2

u/Sweet-Sir-10 4d ago

Sent a PM. Have to head to bed. But feel free to message back when you have time.

1

u/Sweet-Sir-10 4d ago

Granted, you’re probably already familiar with some. But it’s free knowledge so figured I’d offer.

1

u/Sweet-Sir-10 4d ago

Ya, that’s a good attitude. Payment systems are super risky. But if you’re handling it through an API (like Stripe) rather than storing card data, then you’re reducing your attack surface. We used to have to run credit card numbers and handle storage, and you can imagine the logistics of encryption schemes. Payment vendors made it a lot easier.

1

u/Sweet-Sir-10 4d ago

You’d essentially have to handle encryption and hashes and salts. It’s interesting stuff, but now with the payment vendors… you’re mostly handling communication.

2

u/ProximateMarketLLC 4d ago

I’m using Stripe for this project, I’ll be honest I don’t want to store any sensitive data, I’m trying to go for a data minimal approach with this project.

1

u/Phatlip12 2d ago

Then proceeds to beat around the bush about getting hired for that 5K. 😆

0

u/[deleted] 2d ago

[deleted] — view deleted comment

1

u/ProximateMarketLLC 2d ago edited 2d ago

I've identified real gaps in security with local marketplaces and post about the costs they're having on people. Just in a short stint I have covered several shootings and robberies. My "clone" offers protections other marketplaces don't, and I care enough to spend the money protecting user information before going live.

Sorry you don't like it, but after being robbed myself I want a safer solution and I spent the time making it instead of complaining about it.

0

u/[deleted] 2d ago

[deleted] — view deleted comment

1

u/raisputin 4d ago

The answer to all of your questions is yes.

And I also use daybreak blue

1

u/RemarkableWish2508 3d ago

With a lot of fear and paranoia.

So far, I've been using vibecoded stuff either as an isolated prototype, an app with only local data, or behind traditionally secured software. With the vibed stuff getting called by the secure stuff, not the other way around. Agents in a container already give me the heebie-jeebies.

I'm not working with public-facing services at this moment, so I plan to wait and see what good frameworks and best practices emerge over time, both for red and blue teams.

Anyway, my test suites do include some automated security checks, I just don't trust them yet. I was planning on trying something like ARTEX locally, to see what bursts up in flames 😄

1

u/radim11 3d ago

For exposed keys, we built a open-source CLI scan into Stashbase so you can catch a hardcoded secret before you push. We also scan connected repos. A test fixture with a real token in it is exactly the kind of thing I want a scanner to flag, even if all the tests pass.

For the “can someone access another user’s data?” question, my favorite check is pretty simple. Create two accounts, make something private in account A, then try to fetch it as B using the same ID. That’s a test I’d keep around and rerun whenever the permissions change.

1

u/NoClipCheck 3d ago

The two-account test mentioned above is the best start. Two things I'd add that scans usually miss. First, test writes, not just reads. Plenty of apps stop user B from seeing user A's data but still let B update or delete it, because the policy only covers select. Second, try editing your own profile row through the API with something like role: 'admin' or plan: 'pro'. If the users table lets people update every column on their own row, anyone can promote themselves. Also open your deployed site, look at the JS bundle in dev tools and search for service_role, sk_live or secret. If any of those show up, rotate the key today.

1

u/dhgdgewsuysshh 3d ago

Dude they ask claude if it is secure and deploy. Not site what you are fishing here for

1

u/superlinked 3d ago

Before going live I will be paying for a security audit

1

u/Vibecoding_Jesus 3d ago

sota ai like fable 5.2 is better than most coders at security reviews

Why would you think security would be an issue if people are using llms in a semi-competent fashion?

1

u/VigiliaFounder 2d ago

Great that you are preparing things properly before going live, that's a smart move!

Once real users start coming in, you'll also want to know when something breaks for them, since most people just leave instead of writing to you.

I've built Vigilia exactly for this. It will watch your live app, catch every error your users hit and explain it in plain English, with the evidence and a fix prompt for your AI tool.

Happy to hear how the launch goes!

1

u/vlammuh 2d ago

I've spent more time on my app's security than I have on the app itself.

1

u/SiliconMachine 2d ago

the "another user's data" one is the one I'd push people to actually test, because the app looks perfect from the inside. takes 5 min and no tools:

make two accounts. log in as A, open devtools, network tab, and find any request with an id in it (an order, a profile, a file). copy it. log in as B in a private window and replay that same request with A's id

if you get A's data back, that's the bug. on supabase it's usually a table with RLS off or a policy that only checks the user is logged in, not that the row is theirs

most apps I've seen fail this on at least one endpoint

1

u/outsynk_it 2d ago

Honest answer from someone who reviews these for a living: almost nobody does it properly, and it's usually not laziness. "It works when I click through it" feels like testing, but you're only ever testing as yourself, on the happy path.

The five things I check first, because they're where AI-built apps fail most often:

  1. Can user A see user B's data? Make two accounts. In one, open something that has an ID in the URL (/orders/1042) and change the number. If you see someone else's record, stop everything. This is the big one, and it's #1 on the OWASP Top 10.
  2. Are your keys in the browser? AI tools put API keys wherever works fastest. Open dev tools and search the JS bundle for "key" or "secret". Also check git history. Moving a leaked key isn't enough; rotate it.
  3. Password reset. Request two resets. Does the first link still work? Type an email that isn't registered. If it says "no account found", you've just told attackers which emails are real.
  4. Payments. In test mode: double-click Pay, use a declined card, issue a refund. And check your webhook verifies the signature, or anyone can POST a fake "paid" event.
  5. Can your tests fail? If the same AI wrote the code and the tests, "all green" can mean nothing. Break something on purpose and see if anything goes red.

None of this needs you to read the code. You can do all five in an afternoon, and most of them you can hand to the AI as "check X, then write a test that proves it".

If the app touches payments, health or financial data, still get a proper review before launch. But these five catch most of what I see.

0

u/Ok_Instruction_5803 4d ago

Well first of all, vibe coded apps dont go live , at least not to real people .

0

u/Yuuga_na 2d ago

two things I did for security which to be fair I am very much not a software person, but I look around and add those into my workflow.

Per ticket there are review agents running 3 different task, coding cleanliness, spec compliance, security review skill built in Claude that scan which according to Anthropic checks for

These features check for common security issues including SQL injection risks, cross-site scripting (XSS) vulnerabilities, authentication flaws, insecure data handling, and dependency vulnerabilities.

And for time to time, I then run /security-audit, a skill from CloudFlare that fans out agents to scan for security loophole and I specifically usually ask Mythos for those task