Digital Foundry
Supporter Program
Get access to   exclusive content unlimited 4K videos Discord Server Retro Corner Support us on Patreon Join now

Nintendo Switch piracy firmware uses 'brick code' to prevent itself from being pirated

Security researcher kills own console.

It's been revealed that the piracy-enabling firmware recently launched for Nintendo Switch contains 'brick code' that can render the device inoperable, designed to stop it from being copied - a somewhat ironic state of affairs. Security researcher Mike Heskin took to Twitter to reveal the findings of his analysis of Team Xecutor's 'SX OS' custom firmware. It's a software patch for the Switch's operating system, released in tandem with a hardware dongle that opens the door to running unsigned code - ie homebrew - but also enables copied games to run.

So why wilfully introduce code into the firmware that can render the device useless? As Heskin points out, this is actually nothing new - a 3DS hack did exactly the same thing. Hardware-based hacks can be easily cloned (indeed, 'open source' piracy-free Switch hacks based on the same exploit are already available) and Team Xecutor's proprietary work comes in the way it has adjusted Switch's OS to allow copied software to run. Heskin says that he actually bricked his own console - deliberately - during his research, presumably to see what Team Xecutor's countermeasures actually do.

The bricking code is designed to halt users - or more likely, Xecutor's rivals - looking to reverse-engineer and copy the piracy-enabling portions of the firmware. In normal usage, it should sit in the background and not do anything, though Heskin reckons there's a very small chance that users of the firmware could accidentally trigger the code. In this scenario, Switch's 32GB of NAND memory is locked based on a dynamically generated password created by the brick code, making the console useless. Only by reflashing the NAND externally can the console be restored - hardly an easy task.

The launch of Team Xecutor's custom firmware has been met with some controversy, with users pointing out that the piracy functions don't work on all titles. Meanwhile, other reverse-engineering work has revealed that every physical and digital release for Switch has a unique serial number, meaning that copied versions with the same ID will be easily detectable by Nintendo if you take a hacked console online with a pirate game.

However, in the here and now, Team Xecutor itself says that the firmware is safe and that it has not had one single report of its code causing issues. The drama continues to unfold, however, with Mike Heskin suggesting that TX is using open source code from other Switch exploits (which do not support piracy) in its monetised product. It's a scenario that usually motivates other hackers to reverse-engineer the paid-for software and to give it away for free.

The current Switch exploit is based on a hardware-based vulnerability that Nintendo cannot patch without releasing a new version of the console, meaning that the battle to keep piracy off the system and to ensure that online gaming remains secure will be waged in the software space. Nintendo has already issued bans to hackers experimenting with compromised consoles, but a firmware update to patch up its OS hasn't happened - yet.

Will you support the Digital Foundry team?

Digital Foundry specialises in technical analysis of gaming hardware and software, using state-of-the-art capture systems and bespoke software to show you how well games and hardware run, visualising precisely what they're capable of. In order to show you what 4K gaming actually looks like we needed to build our own platform to supply high quality 4K video for offline viewing. So we did.

Our videos are multi-gigabyte files and we've chosen a high quality provider to ensure fast downloads. However, that bandwidth isn't free and so we charge a small monthly subscription fee of €5. We think it's a small price to pay for unlimited access to top-tier quality encodes of our content. Thank you.

Support Digital Foundry

Find out more about the benefits of our Patreon

Sometimes we include links to online retail stores. If you click on one and make a purchase we may receive a small commission. Read our policy.

Jump to comments (85)

About the author

Richard Leadbetter

Richard Leadbetter

Technology Editor, Digital Foundry  |  digitalfoundry

Rich has been a games journalist since the days of 16-bit and specialises in technical analysis. He's commonly known around Eurogamer as the Blacksmith of the Future.


You may also enjoy...

Comments (85)

Comments for this article are now closed. Thanks for taking part!

Hide low-scoring comments

Buy things with globes on them

And other lovely Eurogamer merch in our official store!

Eurogamer Merch