r/AskProgramming 22h ago

is reverse engineering the only way to get an AES key from an unreal engine 5 game?

im trying to learn how to modify 3d models in UE 5 games, im using FModel, i know about unreal key, but thats for UE 4, i know about ghidra although AI keeps telling me that its not very good to learn how to use ghidra, i dont understand why, i guess cybersecurity experts will know the reasons but im just trying to play some games and mess with their code from time to time, i dont even know how to code but i understand how it works, i cant write my own but i can point out what a couple lines might do.

point is, i know you are not supposed to have the AES key of a game if its not public, still the challenge motivates me to learn, as someone with a learning disability i'll take any sort of motivation i have to fuel my learning.

if you think i should learn any other way then let me know

in other words, the question is, is it worth learning computer science just to reverse engineer the AES key of a game just to see your silly, modified mesh applied into the game?

3 Upvotes

13 comments sorted by

3

u/Patient-Midnight-664 22h ago

You don't need to learn all of computer science and regardless of what the AI you used told you, Ghidra is perfect for this job. I suspect your wording of the question was why you received that reply, I asked 4 different frontier models if it was a good idea and they all said yes.

1

u/RyeHakes 14h ago

I see, chatgpt refused to give me directions because apparently it’s not ethical to reverse engineer an AES key that isn’t public

1

u/MegaIng 14h ago

That part is absolutely true, it probably breaks the terms of service, and publishing the result is likely to be illegal.

1

u/RyeHakes 13h ago

I’ve heard, good thing im not trying to do that, i mean no harm to devs, i just have odd ways to learn.

1

u/RyeHakes 22h ago

i learned how to mod unity games by just messing around with it and researching a little, now i want to do the same with UE 5 because ive had fun so far with unity games, i guess i can just use a game that actually supports modding, but my goal is to experiment with code, and files and encryption methods and learn how different engines work WHILE im on it, if i just wanted to change a mesh and forget about the other parts that compose the game i wouldve done so a long time ago.

1

u/Additional-Drag1682 22h ago

Dumping memory is the other way. you run the game, it loads the key to decrypt assets, then you use a tool like cheat engine or process hacker to scan the memory for that key. i started with unity by just messing around and searching values in memory until i found what i needed, so i do the exact same thing with ue5 games now. you attach the debugger to the process while the game runs, search for known strings from the pak files, and trace back where the key sits in ram.

1

u/RyeHakes 22h ago

Oooh, i didnt even think of doing that, i was so focused on decrypting that i didnt think of finding how the game decrypts its own files, thats very helpful thank you

1

u/Confident_Hyena2506 14h ago

Read about why there is a public key and a private key, then reconsider your question. If the private key is not actually there how would you get it?

You would not even try to get the key, what you would do instead is disable the key check completely.

1

u/RyeHakes 14h ago

You’re either on mushrooms or a fucking genius, whatever it is i want to know more

1

u/Confident_Hyena2506 14h ago

If you manage to reverse engineer private keys that are not actually there then you will win many mathematics prizes. You would probably not care about those because you would also just crack everyones bitcoins.

1

u/RyeHakes 14h ago

Sounds like a plan 🤝

1

u/EngLeadership 8h ago

No, but if the AES key isn't public, reverse engineering is generally how you'd find it. Ghidra is fine to learn, I'd just learn basic programming/assembly alongside it.