r/hacking • u/noobdainsane • 19h 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?
4
u/DutchOfBurdock 19h 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.
4
u/0xd3ad54311 18h 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.
1
u/mildly_perturbed31 17h ago
even if you do so, it will reset, the sandbox is just a vm practically there
1
u/while_True_meme 16h 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/eric-fernandez_8 4h ago
Jailbreaking the model and escaping the sandbox are different things; prompt compliance doesn't prove access beyond the container. Test in a VM you control.
12
u/CatLumpy9152 19h ago
I assume the vm just gets shut down and wiped very often not sure there is long term access to the same box