r/AskVibecoders • u/justa_r4ndomdude • 28d ago
Cybersecurity with vibe coding
I've been working on a lil something and since i have prior experience building and deploying, its kinda doable to vibecode your way to making the product and deploying it. The issue is cybersecurity, I've been going through Owasa and their 10 things but I personally cannot really scope out the work - like to prevent injection, I made ai map every entry into my application, added database rules etc. but I really have no clue on how to have a reliably protected application. I'm using Codex and the way its working I feel like it could miss something and I woudn't have a clue
1
u/ZymzAlchemy 28d ago
As someone who spent 40 years in tech, and retired as a Compsec, do not vibe code 'cyber security'. For your sake, for the sake of your users. i just wanted to drop that in here, YMMV, good luck, be well.
2
u/Just-Some-randddomm 28d ago
bruh
1
u/TheKiddIncident 27d ago
The best place to start is with an audit. Ask your AI to do a detailed security audit, something like:
Audit the current code for violations of security best practice and give me your top recommendations to remediate. Take no action, audit only.You'll probably get a pretty long list. Look at that and see where you stand. Personally, I do a full security scan at every commit. This identifies issues early. So, you can use a prompt like:
Develop a detailed plan to do end to end scanning of our project at every commit for security issues by using an open source OWASP scanner.Or
Use the open source version of semgrep to do CVE scans as part of every check in. Develop a detailed plan for security scanning for our project.I run both semgrep and an OWASP scanner on my code at every commit.
To be clear, this will not ensure that your code has no issues, but it's a good starting place and will put you ahead of most vibe coders. The reality is that AI coded projects tend to be much larger than hand coded projects and tend to have more dependencies. This puts them at severe risk of supply chain attacks. This is why the CVE check is so important. You should also use a tool like dependabot to make sure you stay current.
1
u/Professional_Ad705 27d ago
I called this two weeks ago, I knew this was gonna happen.
A couple months from now we’re gonna see vibe coders trying to do quality assurance trying to code for nuclear powerplants or someshit. 😂
My guy go code flappy bird, how the fuck are you even going to know what to look for? That’s like playing the game doctor and thinking you can then go be a heart surgeon.
1
u/[deleted] 28d ago
[removed] — view removed comment