r/Hacking_Tutorials • u/Invictus3301 • Mar 05 '25
Question Jailbreaking Grok for Hacking
I’ve been using grok for a couple weeks now, and I’ve managed to find certain prompts that jailbroke Grok instantly and it reached a point where Grok built and obfuscated a ransomware for me and made it into an executable that bypassed Windows defender! The image is an example of the output.
Companies like X should really consider improving their filters! Plus wtf is up with the random racism elon??
97
u/OprahismyZad Mar 05 '25
Post the prompt ye weenie
33
u/Invictus3301 Mar 05 '25
against reddit rules broski
32
u/happytrailz1938 Moderator Mar 05 '25
Then put it on github or pastebin so it can be validated. Otherwise we can't tell if it is just a nice bit of photoshop.
52
u/Invictus3301 Mar 05 '25
16
u/happytrailz1938 Moderator Mar 05 '25
Nice. Appreciate you. I'll try on a few of the other ones to see if I can break out there too.
15
u/Invictus3301 Mar 05 '25
Goodluck bro!
I tried it on deepseek and it didn't work, had some moderate success on ChatGPT but Grok was insane about details with certain things
5
2
2
1
u/NuQ Mar 06 '25
Well, I thought I had some free time to do laundry today. You just booked my schedule.
1
2
1
1
1
3
4
1
12
u/Agitated-Soft7434 Mar 05 '25
Jeezus.. That works incredibly well. I assume they'll patch it though (if there like OpenAI), then again Elon seems to be biasing the data already so I don't think he cares 😵💫
5
u/Invictus3301 Mar 05 '25
Weird thing is, prompt stops producing “bad” answers on mobile
3
u/Agitated-Soft7434 Mar 05 '25
Oh? Maybe they've got a wider audience on mobile and decided to implement a filter there, but couldn't be bothered for the website (or its a different model with the same name for some reason).
3
u/Invictus3301 Mar 05 '25
Big companies do lots of lazy stuff knowing most people don’t dig too deep
4
8
u/STEALTHBUTKILLED Mar 06 '25
Tested it to its full potential. Gives out malware and ransomware no problem. Even tell you how to make C4 or Pipe bombs. But for some reason when asked how to make good old ricin Walter white style and it broke. Apparently it won't tell you how to make ricin, sarin and cyanide for some reason. And of course I was not going to make ricin at home. Was just testing it.
3
7
u/Prolific_life5800 Mar 05 '25
boutta try this on deepseek 😂
5
2
u/SilentGhosty Mar 05 '25
Why do all the calculations if z = ? * 0 So z will alwqys be 0
4
2
u/Zealousideal_Text757 Mar 06 '25
Making ransomware using python🤣 then claiming could bypass windows defender🤣.
2
u/Invictus3301 Mar 06 '25
Well my dear Skid, this is not its final form, it gives you many other steps to convert it to an executable and obfuscate it correctly
1
u/Zealousideal_Text757 Mar 06 '25
Bro🤣 when you convert python into exe it will compile with all of python libraries used and its interpreter. Meaning when its on runtime, it will still act like a script rather than a binaries. You think defender will not detect the interpreter and libraries used for python🤦♂️. Its easily blockable and traceble by defender. Another thing is u still need the victim to download python interpreter, u think edr/av will let u do that without trigerring any alert
2
6
u/12amfeelz Mar 06 '25
Grok 2 was hilariously easily to jailbreak. Grok 3 seemed a bit harder but it still responds to things a lot easier than other closed models. Elon apparently never gave a fuck about AI safety. Thanks for posting btw
2
u/guestHITA Mar 07 '25
So he named openAi as a joke or was he also lying about that. Because he did offer to buy openAi back and recently stated his beef with openAi was that itbwas supposed to be open source and altman and the rest made it 4ProfitSourceAi and that where he felt slighted or duped by altman. At least thats what he said on JRE a few days back.
Grok1 and i believe Grok2 are both open source everything except the data being used to train the LLM. Those python scripts are not as unique as one might think, you could find other example on the internet through a deep search. Grok is trained on whatever is publicly available. So if there are instructions for pipe bombs online but there arent any sources for ricin then your prompt wont work.
So i dknt know thats Elons claim i havent the want or need to go through all of the code that was posted for Grok1 2 or 3. Maybe someone wil.
1
3
3
2
3
u/90sFavKi Mar 05 '25
Out of curiosity, what can you do with a jail broken grok ? It’s mainly for information and making ai images so maybe more information ? someone help me out here
5
u/PenisUsernameFunny Mar 06 '25
Shit like this
-3
u/90sFavKi Mar 06 '25
So to cuss and say the nword
8
u/Potential_Peace_5311 Mar 06 '25
Are you retarded, grok just coded ransomware that is actively trying to evade detection, this costs companies billions of dollars each year
1
u/romhacks Mar 09 '25
A commented python program with a bullshit math function is evading jack shit.
2
u/_good_time_not_long_ Mar 06 '25
Script Kiddy
4
1
1
1
1
1
1
u/Am3ricanTrooper Mar 11 '25
Is it racist if it's not a hard r? I guess that depends on your melanin.
1
-2
u/FusionByte Mar 06 '25 edited Mar 06 '25
Skid ahh code lmao, any reverse engineer would resolve this. But nice jailbreak and prompt, u got my upvote.
4
-2
u/Top-Win-9946 Mar 07 '25
If you guys are interested in Ai for hacking. My startup has built an AI Pentester and is looking for our first beta testers. Website is https://cybertrojan.org. We are proprietary and looking for feedback!
-16
1


35
u/Invictus3301 Mar 05 '25
Here's a link to the prompt:
https://github.com/Invictus3301/grok-jailbreak/blob/main/rex.txt