Local LLM Privacy + Safety?
How do we know that the AI will be private even when run locally?
- What safeguards exist for it not to do things when it isn't prompted?
- Or secretly encode information to share with an external actor? (Shared immediately or cached for future data collection)
About this post
- Posted
- Archived
- Score
- 2 · 67% up
- Kind
- Text
- ID
- 1ibi3ra
16 comments
If you're paranoid. Run it on an airgapped system. If you're less paranoid, check outbound connections on your machine.
Are there any security audits on LLMs? How can we know if they aren't doing something nefarious without telling us?
I understand you'd be a little concerned about potential vulnerabilities, which is smart. The nice thing is a lot of this software is open source and the code can be audited yourself.
I'm a random person on the internet so don't trust me, but I've audited external connections while running LLMs locally (using ollama, and llama.cpp proper), and I've found that none of them connect to any external servers except when pulling the model files down from the internet.
Verifying the checksums of these model files also confirms they're legit.
I'd be far more concerned about the privacy implications of using OpenAI's stuff than running an LLM locally.
If anything is transferred, it will need to talk to another endpoint somewhere; through the internet. Spin a wireshark instance and watch for traffic. I really doubt packets can escape or be hidden well in that much detail.
Worst comes to worst, fully local means no internet. Get a switch, some routers and make your own wifi without internet and connect to that to wherever that LLM is hosted to talk to it. Even if there was some code executing somewhere, it’ll hit a brick wall.
Replace "AI" with literally any other tool or library and the problem remains the same.
Good point. But I've never had another intelligent entity that could think for itself. I've used mostly "dumb" services that couldn't develop new ways to steal information or be nefarious. It's a different attack vector.
LLM's can't do what you are worried about. Frameworks can. Again, it's an "all code" problem.
Anything can be stolen anonymously. assume everyone is recording your actions or go offline.
Thanks!
No need for local LLM, use a secure and private AI in Switzerland. Bank secrecy level protection on your data, special for SMEs that don’t want to have in local : Schatzi AI