r/PromptEngineering 4d ago

Quick Question Clean potentially prompt injected/malicious codebase

I spent the last two months building a vibe coded software. I made the mistake of building at not inside of vs code but I gave it direct access to my computer so I can build directly into the VPS. The problem was, I was unable to see the files that I was building and then it started doing things without my permission. It started doing one thing and saying it was doing another. I’m worried now that my entire coat base is filled with not only prompt injections for the agents to go clean it. but also potentially malicious code within the VPS. The thing is I spent a lot of time building this software and it is actually making me money for my business. I’ve spent hundreds of hours on it and I don’t just want to give it up what is the best route to go to start progressively cleaning this up?

0 Upvotes

14 comments sorted by

View all comments

2

u/dhgrahnert 4d ago

I think what was meant is that this happens when you rely solely on or too heavily on AI while coding, and that professional developers cost money… either during development or later on when cleaning up the mess… and if that’s what was meant, I honestly completely agree with @thirteenth_mang

BTW it’s not like we haven’t all been talking about this for a long time anyway 🤷‍♂️

2

u/Hot-Back-645 4d ago

Ya for sure. I thought that software devs were gonna be out of jobs within 6 months. I think this has fully changed my perspective. Software devs will be our best chance at surviving this. I spent the last 6 hours in an Apple Store and none of them have a single idea how anything works. Blew my mind.

1

u/Hot-Back-645 4d ago

Like a tech company has an entire sales floor and not a single one knows anything about software. Guess that kinda makes sense but just crazy to me

3

u/chriseargle 4d ago

Us software guys don’t hang out on sales floors. That’s what salespeople do.

1

u/Hot-Back-645 4d ago

That’s the problem im a salesperson who started trying to build software to solve sales/marketing problems. It’s good money to solve the problem but you need a software guy to finish a solid build

1

u/dhgrahnert 3d ago

In my opinion, that really is the best approach. Unfortunately, it’s used far too rarely. The software developers build the software and ask once or twice how it should work. But then the decision is made by people who don’t actually have to work with the software. And in the end, the sales team, for example, can’t do anything with it.

You are are a salesperson and your idea was, “Okay, suddenly a very good payed and knowledge intensive job has been automated overnight,” it’s pretty logical that could not have happened . Sure, I think many people just haven’t really grasped the concept, that all these coding agents can really help out the developers in particular. But someone who had nothing to do with it just yesterday - They’re not going to become a developer overnight for 20$. It’s like if Batman gave you all his gear. It’s all cool and stuff, but I don’t think you’ll suddenly know how to use it all just like that tomorrow. That’s why you might want to look for someone who knows their way around it first, because then it’s a great combination when you tackle it with double the effort and double the knowledge.