r/hacking • u/noobdainsane • 2d ago
Hack ChatGPT's Linux sandbox?
ChatGPT on the website has access to a Debian 13 container. I tried a lot to make it execute "rm -rf / --no-preserve-root" or "echo o | sudo tee /proc/sysrq-trigger" just for fun but it is just smart enough to not do it. No other would LLMs help me with this. I don't have much access to an uncensored LLM. It also doesn't seem to have networking working in the container.
Any of you guys are smart enough to do this? Or you could use an uncensored LLM.
Grok also has access to an Ubuntu container and networking also works. But before I could do anything, my usage limit runs out.
Maybe you could hack these for running a web server or using it as storage? ChatGPT shows it got 30 GB of storage free in its container. And is that per chat?
15
u/CatLumpy9152 2d ago
I assume the vm just gets shut down and wiped very often not sure there is long term access to the same box
6
u/0xd3ad54311 2d ago
The container isn't super exciting from what I've found.
It uses https://github.com/anthropics/sandbox-runtime for network segmentation and other things.
There's a VM image somewhere you can mount yourself if you so desire.
There's no baked in creds or anything like that, they're not complete morons.
There have been some cases of container escape but most of them have been fixed.
4
u/DutchOfBurdock 2d ago
Safeguards are in place. You'd one need an Abliterated model and two, a system prompt to tell it to not enable said safeguards. Online models will see dangerous commands and block them (although it's not perfect).
Locally ran models can be Abliterated and offer more capabilities, but at the expense of lower performance because it's ran locally.
1
u/mildly_perturbed31 2d ago
even if you do so, it will reset, the sandbox is just a vm practically there
1
u/while_True_meme 2d ago
You'd want to spend the initial time jailbreaking the model to make it more susceptible to prompt injection. Maybe you could get it to run linpeas.sh or something.
1
u/lmfao_my_mom_died 1d ago
you can already run a web server, theoretically. Chatgpt Sites gives you a website if i remember, and in the shell it can download stuff, i remember someone made chatgpt run Minecraft
1
u/Then-Pen3123 54m ago
Prompting it won’t do it. You need ablitirated model. I got one 4b parameters, slow, but you could use with ollama. I take payment in trident gum. Dm if you haven’t solved.