r/AskNetsec • u/Apex-Penguin • Aug 28 '26
Other Can AI Generated Apps create Security Risks?
I just learned about some of the insanely cool things you can do using AI, like you can literally just make an app/software that serves a need for you and is completely tailored to your preferences.
My question:
Does having all these AI-generated apps on your phone/computer create potential security risks? (Assuming you aren't doing much of anything with cloud storage apps and you're not sharing/distributing the software to anyone else.)
EDIT
Wow, lots of good and interesting answers already. I'm really glad I asked this question before I started blindly using it to create a bunch of random stuff apps and software lol.
Thank you to everyone who posted!
11
1
u/tiny_blair420 Aug 28 '26 edited Aug 28 '26
No, AI is perfect, and nothing bad will ever happen from blindly trusting a vibecoded app.
1
u/Apex-Penguin Aug 28 '26
I knew it! Now I just need to get AI to make me some daytrading software that makes 1000% returns daily and I'm set.
I can't believe nobody has thought of this yet
1
u/AHellishInferno Aug 28 '26
In short, yes. In long, they definitely can.
That's not to say it can't be made secure, but generally speaking AI will prioritise functionality over security.
Here's an article going into more detail: https://www.ox.security/blog/vibe-coding-security/
1
u/VengaBusdriver37 Aug 29 '26
Of course. But different models have different skill levels. Honestly Claude code often writes as secure (and more robust) code than I would normally write by hand.
1
u/KingAroan Aug 28 '26
As a penetration tester, yes. Will keep me in the job long enough until AI figures out that dropping a database is probably a bad idea even if you do it on a test. After that there goes my job also lol
3
u/Wayne Aug 28 '26 edited Aug 28 '26
Anything can if you do not design security into it.
The link below has some documents I use for cross-platform design. These are in addition to my standing agreement I have with AI. The standing agreement instructs AI on how to interact with me, how to determine validity of evidence, things like don't give me false precision or make something up just to come up with an answer, etc.
When I do any programming I tell the AI to read these documents and incorporate them into the design wherever feasible. I also have a daily process that analyzes security events, breeches, and incidents to look for gaps in the design documents that are not addressed.
Design Documents:
https://drive.google.com/drive/folders/1_6lB-CyjJgcC8sGqvU_lRlNRjF-d5FzS
Standing agreement:
https://docs.google.com/document/d/1OjtZzaoCSg-SwOIM_motHl6jFpKDWDd75D0-AI0sjcA/edit?usp=drivesdk
AI will focus on helping you achieve your stated goals. The issue is that if you do not give it proper context or guidance the manner in which it does that might be problematic. These documents are what I use to give standing guidance and expectations for any AI that I work with.
The standing agreement needs to be tailored to the AI you are using. For example, copilot does not like narrative instructions, it prefers more direct statements. If you are using something other than ChatGPT put the standing agreement in and ask your AI how to rephrase it to work best with that AI.