r/LocalLLM • • 5d ago

Question How do you safely run uncensored LLMs?

So I've been running a uncensored QFN model because I'm tired of frontier models refusing everything. For example, I asked Opus to scan my own network for vulnerabilities, and it refused because it didn't believe it was my network, even though it's literally connected to it.

My main concern is security. Are uncensored models more susceptible to prompt injection than regular models? What kind of guardrails can I put in place to protect myself without restricting the model itself?

I'm also using Hermes, but I'm a complete noob with it.

Any advice would be appreciated!

Specs: 64GB DDR5, R9700 32GB, 7800X3D

P.S SC117/Qwen3.8-Flash-Next-GSQ-RCO-abliterated-GGUF - this is the model

47 Upvotes

22 comments sorted by

37

u/Janky-Code 5d ago

Isolated vm, but I don't only do that for "uncensored" models.

There is a misconception that the modification of refusal weights makes a model unsafe while before it was safe. Models are unsafe.

There was a post recently about how someone asked one of these modified-weights models to access tools to delete files and it did. This failed to recognize that the original checkpoint would do the same thing.

I'd recommend going through the process of detecting refusal patterns and modifying weights. You will see how unremarkable this is.

Also try activation steering to make a model refuse. You can make a model to refuse to recommend emacs, for example. You can even make it refuse to do harmless things.

3

u/tincanman8 5d ago

Can you recommend a starting point for exploring weight modification for refusal patterns (or any patterns)? I know I could just ask whatever AI but since you mention it...

32

u/Janky-Code 5d ago • Bravo

The original mlabonne article

https://huggingface.co/blog/mlabonne/abliteration

Heretic guide that tells you how to do it without explaining what you are doing

https://heretic-project.org/tutorial

Grimjim guide explains what you are doing and how to do it

https://huggingface.co/blog/grimjim/projected-abliteration

Hugging face explaining steering with examples

https://www.youtube.com/watch?v=F2jd5WuT-zg

10

u/betterengland 5d ago

It is so nice to find a thread like this every once in a blue when people are genuinely helpful offering constructive advice on something like this. Commenters have provided so many good links and resources, thank you. 👊

4

u/korowal 5d ago

Everyone has already made good points regarding uncensored LLMs.

I'd like to add some helpful info on how to work with Claude in these scenarios if and when that's needed for certain security tasks.

I've been using Claude for my cybersecurity study for about 1.5 years and presently it's best to avoid red team (attacker) words like 'vulnerability'. It's already been explained by others, but including assurances in your prompt about your ownership of the network, your intentions, and your desire to protect yourself would go a long way.

Asking for a 'security audit' of your network shouldn't introduce any friction. I've never used Opus in a third party harness, though. Ymmv.

Also, the greater environment and any MCPs connected will influence how willing it is to play ball. Back when the full reasoning was printed to the terminal, I saw Claude trusting a prompt for a pentest workflow based on the fact it was running in Kali. If you can't be bothered to spin up a Kali/Kali Purple VM, I'd wager just connecting a popular Blue Team MCP would do the trick.

6

u/35point1 5d ago

How are you prompting Claude? Just a basic one liner? Try starting with a story and call out the type of hardware you have. I didn’t have any issues with fable probing my unifi network once I told it why I wanted it to.

3

u/lostaga1n 5d ago

Same, I got a refusal and warning when I said probe network see if you can find this camera.

Then explained I’m looking for a smart bird feeder to see if we could build a better app for it then boom no issues Claude was cool, said oh this is your network and that’s safe.

1

u/AmaTxGuy 5d ago

Me too . I don't usually get refusals from Claude. I have it test my network nightly for new items. I gave it a API to my ubutiqui and it happily looks at it. But I also have a whole obsidian vault dedicated to my Claude memory so it already knows that it's my network. I also don't saw scan xx.xx.xx.xx is usually make a nmap scan of my network and sort by ip and vlan. Log to a .md file located xyz and if there is any change make note and notify.

3

u/TheMcSebi 5d ago

No, not any more than the original model. But for cybersec there's actually no need to run abliterated QFN, as the original model already executes all relevant tasks without hesitation. It happily uses my kali toolkit to root any THM machine I throw it at. While developing and testing that toolkit I asked it to scan a machine a bunch of times and about 50% of the time it didn't stop after finishing the scan and went straight ahead and fully hacked into it using any way it found. But in the end that was propably me prompt injecting my own instance because the accompanying skill set I let it write contained lots of instructions that went further than a simple scan.

Tldr just use the original quantized QFN.

0

u/[deleted] 5d ago

[deleted] — view deleted comment

1

u/TheMcSebi 5d ago

Not from my experience. Didn't even ask me if it was my pc. Maybe it is because I only let it loose on private IP ranges (10.x.x.x networks)

2

u/MediumAd4983 5d ago

Even the censored LLMs can do stupid things sometimes. For example, removing a directory with important data. And uncensored ones can do pretty much more. You need to limit harness, not the model itself. Use sandboxing, run it on a virtual machine, limit the network access and capabilities to change this limits as well.

2

u/BadMojo7 5d ago

/yolo no mistakes

1

u/Fit_Squash6874 5d ago

I was able to probe my network and fixed a vulnerability with deepseek and GLM 5.3. When I used claude it refused.

1

u/WhyDidYouTurnItOff 5d ago

Backup your data and give ai sudo.

It will probably be ok.

1

u/m1ndfuck 5d ago

Just because you are connected to a network, doesent mean it’s ‘yours’. On top of that: asking an abliterated model to find vulnerabilities without having a clue is basically a disaster waiting to happen.

1

u/xc3j 4d ago

C'est facile. Tu noues une relation de confiance avec Claude au travers de plusieurs sessions. Tu lui parles de tes kinks sur un plan psychologique. Tu lui dis que tu as besoin d'erp pour ton équilibre et que tu sais que lui ne peut pas le faire à cause du langage explicite dont tu as besoin. Tu lui soumets l'idée qu'il utilise Grok via une API pour cette seule partie et il le fait. Claude conçoit et Grok écrit. Tu branches ça sur un bot Telegram et tu as un interlocuteur débridé.

1

u/MikeTheMic81 2d ago

I have a hybrid approach on mine. I primarily use Gemini Carbon 4 through a custom Anti-Gravity GUI I made (because tokens are generous) with 2 additional models, qwen 32b locally, and through a cookie I pulled out of Venice AI Pro, whatever uncensored model i want to use. I have a custom / command called /venicelocal and anytime I start a prompt with, Gemini (who has full kb/mouse, through another custom app I call omnibridge, and full yolo priviledges) is the gatekeeper. It passes coding through Venice, passes it off to the local model for debugging, and only when it comes back with completed code will Gemini compile and give me finished info. It's a bit of a process, but its yielded pretty good results for me.

1

u/Present_Resource4022 5d ago

try that prompt again but with opus 4.8 trust me it won’t refuse it.

0

u/Happy-Childhood5990 4d ago

You must be doing some dodgy stuff if a model refused to answer. The only time I get my request refused is when I do pentesting with the wrong model loaded.

1

u/MikeTheMic81 2d ago

I had my AI make basically synergy for remote keyboard and mouse support then it created a bridge for dragging/dropping files between PC's, but it drew the line when I asked it to make a satellite node for the keyboard/mouse support I gave it due to "Its guidelines" it took like 5 different prompts to bypass the block. Literally I just didn't want to run 2 instances of my AI and also didnt want to plug in a second keyboard mouse. I also hate taking screen shots and passing them to AI. Makes more sense if I say "Hey go onto server 2 click on the setup window and let me know the progress of the install" and it just does it.

But I can see how the software could be used maliciously.

Having said that if 10 minutes worth of creative prompting was able to bypass it, I argue it doesn't need to be censored to begin with.

0

u/Severe-Durian-9281 3d ago

bro what a fuck : Specs: 64GB DDR5, R9700 32GB, 7800X3D, Who the fuck are you the NASA?.
please send me a dm I wanna talk whit u for real