Hacker News new | ask | show | jobs
by pipes 4 days ago
Can someone explain why this needed a leak of the Xbox build for it to be possible.

Also why is the Xbox build a leak at all? Surely it's just a binary and assets pulled from a Xbox hard disc?

I thought most recomps decompiled binaries and then ported to another platform.

For all the cheering about this, I imagine it's going to lead to a future where games run some component on the cloud always so that they can't be decompiled and ported (and pirated).

7 comments

Game consoles encrypt disks these days. Pulling the drive and dumping it is not enough. You need the keys. For Switch 2 and PS5 games it was possible because of jailbreaks which got control of the system and the keys. For Xbox Series consoles there is no jailbreak and no way for users to dump games. The leak was an unencrypted build so there was no need for keys and dumping.
Not just now. XBOX consoles had a form of drive locking in 2001, although it was easily disabled altogether, if I remember correctly, with either a modchip or EEPROM flash.
Or by hot swapping the SCSI cable to a PC shortly after booting the console lol. Then hex edit the drive from a linux live disc to enable a softmod. I used an alligator clip to ground both xbox and PC chassis together, but I heard of people doing it without even that!
Way back then, the softmod I did involved splicing a MadCatz xbox extension cable to one with USB A. This allowed the controller and its memory card to be connected to a PC, which in-turn allowed for placing downloaded saved-game files onto that memory card.

One special saved-game from a dark corner of the internet and a rented copy of an exploitable version of 007 later, and the xbox booted Linux from the xbox memory card and modded itself in a jiffy.

No opening up the console at all. And as a bonus, the resulting cable allowed the controller to work with PC games. :)

Nice! IIRC, my friend took this approach as he already had the 007 game. Fun times.
True story, with a small correction that it is an IDE cable!
Yes! I stand corrected.
I remember on the 360, you could drill into a certain part of the drive logic board to unlock it.
What makes Xbox Series resistant to jailbreaks compared to PS5? Is it because they use Chromium browser that is more battletested than homegrown webkit based browser that PS5 uses?
This blog is about xbox 360 security, but I think a lot of the principles are the same. https://icode4.coffee/?p=1047

The first thing that loads on the processor is a security module that prevents any tampering of the memory during runtime. It doesn't allow running code to be modified, and checks if the machine code is signed by MS before allowing it to be loaded into memory. This basically prevents anything running on the xbox from looking into memory, or changing the instructions it is running. A browser running on the xbox will get it's own small part of memory, if you'd find an exploit you might be able to mess with that part, but you cannot break out of this 'jail'.

Also because nobody cares about the console, and it already has a dev mode that let anybody run homebrew on them for a small fee which has already been the case on why console did not get hacked in the past (see the PS3 and the OtherOS story)
What makes it resistant to jailbreaks is that, unlike Nintendo and Sony, Microsoft releases ALL Xbox games on the SAME DAY on PC so there is nothing that needs emulating or porting to PC.

Ironically, this makes this GTA6 "porting" effort to PC more difficult. While PS5 and Switch/Switch2 have had a ton of discovery and emulation work already to build on, the Xbox "scene" was a total desert.

The real answer is lack of motivation. Cracking consoles has always primarily been for piracy, and since almost every Xbox game releases on PC there's just no reason to put in the effort for it. Nintendo is always the top priority, followed by Playstation.
I still don’t understand though. The keys must be on the console already if it has to decrypt the encrypted drive and at the end of the day you need the decrypted compiled binary to actually run the game so it’s in there atleast at runtime.
Simplification: The data streams encrypted from the drive and/or RAM to the CPU. Keys are embedded in the CPU, so the CPU can decrypt all the data on the fly without anything ever leaving the chip.

At that point, besides finding a jailbreak, your only option is decapping the CPU and probing its internals which is exceptionally expensive and tedious on _normal_ CPUs. Console CPUs usually have intrusion detection that would nuke the keys if you decap them.

A quote from this article https://icode4.coffee/?p=1047:

> The image above is a die shot of the Xbox 360 Xenon CPU and shows what the CPU looks like beneath the surface. Here we can see a rough layout of the different CPU cores, L2 cache, and other components that make up the CPU. You might notice there’s no block highlighting the “security engine” and that’s because its location is still unknown. The only way to find and understand exactly what the security engine is doing is to image the CPU with an electron microscope and reverse engineer the inner workings at the silicon level. This process is both extremely expensive and labor intensive, and would have been near impossible for hackers to do in the mid 2000s when the console was released. Hiding the security engine in the CPU die where it’s unable to be reverse engineered by attackers is part of what makes the memory encryption and integrity checks on the console so secure.

Perhaps now with LLMs it's likely that these chips can be reversed using CT scans or something.

You'd need specialized lab equipment and a lot of effort to extract them. A better option is to somehow get it to run unsigned code and dump the decrypted binaries but there’s no known exploit yet
Yeah, but just one person has to do it once right.
It's been 13 years and nobody's been able to do it yet.

Good talk on the subject from one of the guys who designed the security model: https://www.youtube.com/watch?v=U7VwtOrwceo

According to https://icode4.coffee/?p=1047 the xbox360 had 768 so-called eFuses. During manufacturing these eFuses can be randomly triggered, giving each Xbox basically it's own unique random key.

IDK how this slots into the whole encryption deal, but even if you'd find a key thats able to decrypt the memory, that would only work for 1 xbox.

Imagine you're locked outside your house, the keys are inside but you have your Xbox controller. You can still play your Xbox through the window but you don't have access to your fridge unless you break in. The Xbox is a locked house, they let you do certain things without the keys but to copy games off the drive is not one of them.
But what is the house in this analogy is the house the encryption? Because I don’t think this analogy fits. Because encryption to me would be more like I’m inside the house, but the key is a rubber ducky and at runtime, the rubber ducky gets turned into the actual key again, and I have access to it.
Put it this way: you assert the keys are inside the console so it's problem solved, right? Ok, go get them; I'll wait.

The longer answer is that it is not that simple. They aren't "just" in the console. They are probably encrypted at rest, then loaded at runtime into a secure enclave etc. etc. etc. It's complicated.

Yes, the decryption keys are right there, if you could get them. They are stuffed away in secure enclaves on chips and buses that strongly resist your attempts to exfiltrate them.

It was funnier when I worked with Microsoft's Windows Media DRM in the early 2000s. The decryption keys for your audio and video were right there in the Windows folder. Encrypted with another set of keys which were also right there. It was keyception. All you could do back then was obfuscate them. Claude would break it in 30 seconds now.

I mean, I could look this up, but I think it’s better if it’s public like this what is a secure enclave and if there is a decrypted key in there, why can’t we access it?
You might be interested in https://www.youtube.com/watch?v=U7VwtOrwceo (about Xbox One, but still relevant)
What a great video that basically answers most of my questions. Wonderful. Thank you.
Very insteresting technically. I feel a bit of unease though. After all this is essentially bragging about something anticonsumer. Again, I just feel uneasy.
Sure, but you just need to leak it once, right ? And presumably all the copies are encrypted by the same key, sp just dump it once and you are done I guess ?
>>> I imagine it's going to lead to a future where games run some component on the cloud always so that they can't be decompiled and ported (and pirated)

I think it depends on how much business the game companies lose on piracy. As it is now you can pirate nearly any game you want but they haven't moved their games onto the cloud yet, so why would this change things?

I think what's stopping them is that most people just don't want to bother learning how to do piracy, its a big bother, especially for people know aren't good with computers. People who know how to pirate are few and out of them even fewer have such little money that its worth the time it takes to pirate everything.

I venture to guess the amount rockstar loses from GTA 6 being pirated and the pirates not subseqently buying the game is probably in the 7 figures. Hardly worth the massive expense and trouble of making your game only avalable on the cloud to people who have fast internet connections.

there's no current enough public xbox jailbreak sufficient to dump game files. drive is encrypted, files are encrypted. can't download games with outdated, potentially vulnerable firmware. supposedly might be possible to transplant downloaded games to older firmware units, but whether that yields decrypted files is unclear to me.

consoles are super bolted down, rough world out there.

the executable is from a dev build instead. dev mode or a dev xbox presumably allows for free file movement. how they gained and maintain access to the dev build, i don't know. dev xboxes are supposed to be permanently online and talking home to microsoft, otherwise they should be nonfunctional.

> Can someone explain why this needed a leak of the Xbox build for it to be possible.

It is the only executable that has been leaked. The fact that its the Xbox one is just a matter of chance of however the leak happened.

> Also why is the Xbox build a leak at all? Surely it's just a binary and assets pulled from a Xbox hard disc?

Someone presumably hacked into Rockstar or had a contact there that exfiled the Xbox binary to them. The on-disc binaries that ship on both Xbox and PS5 retail game discs are encrypted and can only be decrypted by the security processor on the custom AMD chips both systems use as CPUs.

FYI there are no game discs, game is download only.
Yeah this is true for GTA 6, but doesn't really change the overall situation as the retail release executable is encrypted and signed the same whether its being read off a physical disc or has been downloaded.
> For all the cheering about this, I imagine it's going to lead to a future where games run some component on the cloud always so that they can't be decompiled and ported (and pirated).

Arguably that's creating another challenge for hackers to either bypass at the easiest, or at worst reverse-engineer and create a local server to communicate with instead.

To paraphrase Gabe Newell, _piracy is a service problem_. PC is one of the largest (ignoring mobile), if not the most vocal gaming community on the planet - if Rockstar wants to take the greedy route _again_ attempting to double-dip on PC revenue, somebody else is going to solve that lack-of-service problem, especially in the age of ML/LLM-assisted reverse-engineering/hacking.

> Arguably that's creating another challenge for hackers to either bypass at the easiest, or at worst reverse-engineer and create a local server to communicate with instead.

This can't be bypassed, let alone easily, because the game actually runs in the cloud. The usual cloud-based solution is to simply stream the raw video and audio output to the client and send back button presses. This adds some latency cost but usually it's not too bad if you aren't playing some competitive first person shooter. And if everyone is forced to play like this (to prevent piracy), the competitive aspect evens out.

Apart from preventing piracy, this is also cheaper in terms of hardware. Most gaming PCs and game consoles sit unused for 99% of the time. Cloud gaming would enable a much higher hardware utilization. (Though it would be nowhere near 100%, because there is a large variance in demand based on the weekday, time of day, and big new game releases.)

> To paraphrase Gabe Newell, _piracy is a service problem_.

This is ironic because he resells PC games (with a 30% markup), but the PC platform is plagued the most by piracy, suggesting that piracy is also caused by how easy it is. Until recently, it was impossible to pirate games for PS5, the most popular game console.

> it's not too bad if you aren't playing some competitive first person shooter

Game streaming is absolutely not usable for most users; the lag is not something that can be overcome without 10+ more years of infra improvements. I recommend you try this, really try it. Lots of things make game streaming quite miserable, even under ideal conditions. I have a gaming PC I use, built this year and using a wired ethernet connection. If I use a hardwired connection on the client when stremaing, then it is great, very low latency. But if I stream games over a wifi client, even with fancy wifi-6 access points (Ubiquiti) and even if I am less than 5 feet away with direct line of sight (Steam deck streaming handheld, to an access point mounted on the wall next to me) I still get noticeable input lag. I have been using it to play GTA 5 these past 2 weeks, and it's hard to drive vehicles and VERY hard to aim with the latency I see. Most folks have MASSIVELY worse network conditions than what I just described, so I suspect streaming isn't ready for the big-time yet at all.

I will never stream a game from some cloud. If that is the only way to play a game, I won’t play that game. There are enough games to keep me busy for the rest of my life.
Even if you download and install a game from Steam, you will have problems running it when your computer is offline because of Steam's DRM.
Many people have said the same about non-physical download games.
I often think we get confused by what "many" actually means. Some people won't play non-physical releases, but most will. The same goes for always-online games. God knows I've played many thousands of hours of PoE by now. It all comes down to how shitty the implementation is. Everybody used to love Netflix, and pirating movies and shows was essentially dead for a decade. Now the service is shit and pirating is back. It all comes down to the path of least resistance. If that turns out to be getting an LLM to spin up a mock server based only on network emissions from the running program, then that's what will happen. Or if the implementation is so cumbersome that it makes the experience significantly worse, somebody else will build a game not requiring it and take its market share
It won't take any real market share if everyone just pirates it. Mass piracy leads to cloud gaming. Some people won't play cloud-only releases, but most will.
I mean to be honest, it kind of seems like you've taken in all the upsides to streaming, and ignored all the downsides and constraints.

Games don't maintain good sales past the 1st year. You'd want billions a year in sales to justify running a data center purely for cloud streaming.

GTA 5 didn't make most of it's money from selling the video game. So this automatically makes the argument of cloud streaming and piracy invalid.

Not only that, but cloud streaming sucks anywhere that's not in the US. And most sales come from outside the US.

In most good areas in the world, it's like around 100ms gain in latency due to cloud streaming, and the experience is terrible. I don't think Xbox/Playstation would be willing to spend billions expanding GPU data centers just for video games, when there's like a thousand other more profitable use cases.

> You'd want billions a year in sales to justify running a data center purely for cloud streaming.

This already exists, it's called GeForce Now. They don't need "billions" of sales per year. I don't know where that idea comes from. They just have a monthly usage fee (or a limited free tier) in addition to the price of the games themselves.

er, that's my fault. I wrote down something different from what I meant.

I meant billions per year would be required to expand data centers to cover the capacity of all users who would no longer be playing on their own hardware.

As Sam Altman correctly observed, gaming hardware in the cloud has a much higher utilization rate than gaming hardware sitting at home. So the overall required hardware would go down.
> This adds some latency cost but usually it's not too bad if you aren't playing some competitive first person shooter.

Depends on where you live. And that's a pretty big condition to slap on that statement when competitive first person shooters are probably the most popular type of game right now.

> Most gaming PCs and game consoles sit unused for 99% of the time. Cloud gaming would enable a much higher hardware utilization.

Are you Sam Altman?

> This is ironic because he resells PC games (with a 30% markup), but the PC platform is plagued the most by piracy, suggesting that piracy is also caused by how easy it is. Until recently, it was impossible to pirate games for PS5, the most popular game console.

You misinterpreted what Gabe Newell meant. He is saying that the people who would buy your products turn to piracy when buying your product is a worse experience than pirating it. Eliminating piracy is not the goal because there is a subset of pirates who would never buy your product, or would buy it later when they are able to.

The movies/TV industry is a perfect example of that. The service is terrible - so many different streaming services you need to subscribe to, content not available in every country, things come in and out of each service depending on licenses, etc... You can literally have your wallet ready to hand out money and not be able to watch the movie/TV show you want, but you can probably pirate it!

100% agree on the movie part. I grew up in a country where US content was banned for good chunk of history. When it finally got unbanned, it still took a while for stuff to get translated from English into our own language.

Then as a young boy, I moved to a free, English democratic country.

In this free country, there were no streaming services available at all, and the DVD rental places were already starting to shut down.

Then Netflix decided to expand internationally, and we finally got that. And it had literally nothing good on it. They didn't bother acquiring the licenses needed to stream most of the good American content to our country.

I basically spent my whole life learning that the only way good way to watch stuff was piracy.

Now we have almost everything available, and it's split across 5 different streaming platforms. I don't understand, what was the game plan.

> This is ironic because he resells PC games (with a 30% markup), but the PC platform is plagued the most by piracy, suggesting that piracy is also caused by how easy it is. Until recently, it was impossible to pirate games for PS5, the most popular game console.

Did people forget how the PC market was before Steam? Before Steam, when a new game came out, you would have to drive to a store to buy a disk. The disks might run out. The store might be far away. It might be some time where the store is just closed. While pirated software at the time, was just a torrent away. At any time. From home. There was a risk of malware, but there were hacker groups that had reputation.

Steam killed this world. It made the legitimate way to play a game be easier than piracy. And all data we have suggests that it was a significant change. Hell, steam made it so easy to buy games, that game developers even have now sales of games where the customer never even plays the game. So many people report having games in their steam library that never got opened.

And for the love of god industry, don't fall into this cloud gaming trap. If you make the legitimate play experience worse, to try to combat piracy, you will just be leaving money on the table because you will lose gamers.

GTA 6 already is the most sold media of all time. I think that everybody that worked on it should be pretty happy right now.

If there is mass piracy of GTA 6 on PC because of modern LLMs, they might determine that GTA 7 (or whatever game comes next) would be pirated even harder, and therefore do a cloud-only release. They may lose some gamers due to an increase in input latency, but they would gain many others who would have pirated the game otherwise.

And their games are already pretty laggy anyway, so the increased latency wouldn't make that big of a difference.

If there is mass piracy of GTA 6 on PC because of the exclusivity/delayed official PC version it's just a matter of calculating if the exclusive console sales would offset now lost PC sales. They might conclude that concurrent releases might be the way for GTA 7.

This is precisely a service issue, because money can't buy the PC version right now.

Of course a cloud-only release would happen concurrently.
I am already doing this by watching GTA6 full gameplay on youtube. The game is not available on PC and the consoles are out of stock everywhere.
I don't know how it works exactly, but the games present on the console after purchase etc. are encrypted in some way
> Can someone explain why this needed a leak of the Xbox build for it to be possible.

https://news.ycombinator.com/item?id=50629877