Switch 2: data gathering for possible modchip attack vectors

  • Thread starter Thread starter deeps
  • Start date Start date
  • Views Views 51,571
  • Replies Replies 78
  • Likes Likes 21

deeps

Well-Known Member
Member
Joined
Jul 3, 2007
Messages
554
Reaction score
734
Trophies
1
XP
1,883
Country
Hi all,

since a repeat of the Nvidia RCM blunder from the switch v1 is extremely unlikely, any permanent unsigned code execution on the Switch 2 is very likely to happen through some sort of modchip, if at all.

We can assume that the private keys required to create signed blobs of code will remain an unbroken secret deep within the Nintendo vault.

(brief history for reference)
On the switch (1), the modchips (sx, hwfly, instinct, picofly) work through hooking into the communication between the CPU and eMMC, and also the power supply of the CPU. The power button on the switch enables the 3.3v rail of the system which turns the modchip on, and the chip immediately activates the RST line to keep the switch CPU halted. While keeping RST high, the modchip overwrites the boot0 of the eMMC with its own (unsigned) sd-loader. Then it lowers RST to let the CPU initiate boot, listens on the CMD line as a reference point for timing, and then triggers a MOSFET that drops the supply voltage to the CPU with perfect timing to make it skip execution of the boot0 signature check. The modchip triggers RST and makes the system reboot over and over and tries different timings for the voltage glitch until it succeeds and the CPU executes the unsigned sd-loader.

Now, starting with a similar approach as a base point for Switch 2, we know from various leaks that the Switch 2 no longer uses an eMMC - it uses UFS storage, more specifically a 256GB UFS3.1 chip from Kioxia. Model number THGJFGT1E45BAIL
While having a completely different electrical interface, this chip happens to come in the same BGA153 packaging as the eMMC from Switch 1.
We can spot the new UFS chip in the leaked pcb photos:

switch2ufs.jpg


Looking at the pinout of BGA153 UFS chips, there are a few points that look like what a modchip would need to hook into:

ufspinouts.png


Thoughts:
- Unlike the eMMC which uses dat0-7 for both reading and writing, UFS has separate channels for read and write, with two points for each channel. Assuming the modchip might also need to read something from the UFS, we would need to hook into Din0-t (H1), Din0-c (H2), Dout0-c (K1), Dout0-t (K2). There is also a separate "lane" to achieve higher speeds (D(in/out)1), similar to the eMMC dat1-7 points, which the modchip should not need to bother with.
- The CLK point (H1) works the same way as on the eMMC and will probably be used.
- The UFS storage is also connected to the RST line that is used to keep CPU halted on the switch 1. This line will most likely need to be severed with both sides connected to the modchip, since the modchip will need to manipulate the UFS contents while keeping the CPU halted.

Assuming Nintendo have learnt their lesson, these lines will most likely be hidden deep within the layers of the mainboard PCB without any accessible debug points. Since some of the pins the chip will need to access are not along the outer edge of the BGA153 layout, a variant of the "slide-under dat0 adapters" will not be possible either.
The best approach for interfacing will most likely be an interposer PCB, similar to the one designed for the switch 1 eMMC by @abal1000x , but with a different shape to accomodate the shape of the frame around the UFS chip, and obviously with different pins broken out. The interposer could conveniently handle the severing of RST and expose both ends of the line as points on the interposer PCB. The layout could be something like this:

ufsinterposer.jpg


What remains to be seen is whether the Tegra T239 CPU is susceptible to voltage glitching attacks. It's likely Nvidia will have made attempts at protecting against it - the question is if they've thought of everything from every angle. Time will tell.

Got more discoveries or information to share? Thoughts? Agree? Disagree? Let's pool our resources, and with some luck someone will read this thread and go "aha!" at a not too distant point in the future.
 
Cool for the people that feel adventurous and can solder - I hope you guys will get an exploit, imo not fucking extremely precise stuff like this up deserves its reward.

For people like me that had to resort to buying another unpatched Switch unit for homebrew, the sentence "any permanent unsigned code execution on the Switch 2 is very likely to happen through some sort of modchip, if at all." isn't reassuring.

Guess I'll have to result to getting my games through a card - not a flashcard, but a credit card.
 
I hope there is no homebrew or piracy for at least 18 months.
This will just kill off 3rd party developer support and we will get lack luster Nintendo games

Even if unsigned code execution is figured out early, looking at the history of the switch 1, it will still take at least 2 years before the software becomes usable enough for anyone except developers and some extremists on this forum. I would say this is a non-issue.
 
  • Like
Reactions: Tattorack and Latif
I would probably guess that...


- NAND Encrypted
- Updated Horizon OS 2.0. - with Hypervisor style security
- Switch 1 Games run Sandboxed, with hardware acceleration for upscaling/patching.

Unless there is a way to glitch the APU... this is not going to be easy.

Let's hope we can break tony hawk :rofl2:
 
I would probably guess that...


- NAND Encrypted
- Updated Horizon OS 2.0. - with Hypervisor style security
- Switch 1 Games run Sandboxed, with hardware acceleration for upscaling/patching.

Unless there is a way to glitch the APU... this is not going to be easy.

Let's hope we can break tony hawk :rofl2:
Oh man... a day-1 Tonyhax would be utterly hilarious and embarrassing for Nintendo.
Post automatically merged:

I'll also add... NVMe attack via SD Card slot.
If they would quit relying on SD cards, that would close an entire avenue to load payloads from, dump nand to, etc. Making it far more inconvenient to hack the system. But Nintendo just loves their systems getting hacked, since they keep including SD card slots...
 
it's known that normal SD cards won't work it uses micro SD express cards (pretty sure express cards are/can be encrypted)
Post automatically merged:

also thanks google AI for my answer

No, microSD Express cards are not inherently encrypted, but some manufacturers offer cards with built-in encryption features, such as AES 256-bit, allowing users to password-protect their data.

unless nintendo forces encryption on format (which i believe can be illegal here (similar to ransomware)
 
Last edited by chrisrlink,
  • Like
Reactions: Tattorack
here is my list of the exploits that may work but are a bit unrealistic.
1. Getting into Debug or Test mode or points via JTAG or UART

2.Abusing trust zones or Secure enclaves

3. A LASER ATTACK. using laser beams to cause specific malfunctions in the chip

4. Side-Channel Attack or a electromagnetic leak (really unrealistic)

5. Nvme attack through sd express (hoping no encryption)

6. Corrupting the memory and inject USC in the Realtek Audio Codec


Also remember. Some of the specs leaked a few months ago.

Audio driver, Ethernet for the dock, and the entire motherboard which may or may not be up to date.

1743712888735.png

1743712920509.jpeg

Take this with a grain or salt as always
Post automatically merged:

here is my list of the exploits that may work but are a bit unrealistic.
1. Getting into Debug or Test mode or points via JTAG or UART

2.Abusing trust zones or Secure enclaves

3. A LASER ATTACK. using laser beams to cause specific malfunctions in the chip

4. Side-Channel Attack or a electromagnetic leak (really unrealistic)

5. Nvme attack through sd express (hoping no encryption)


Also remember. Some of the specs leaked a few months ago.

Audio driver, Ethernet for the dock,
 
I hope there is no homebrew or piracy for at least 18 months.
This will just kill off 3rd party developer support and we will get lack luster Nintendo games
When has that ever been the case? The Wii had drivechips available roughly a year after release and it was extremely successful. Some early consoles like the PSX had almost no security and were very successful. The PSP was only successful because it was easily hackable. Piracy killing support is a myth.
 
When has that ever been the case? The Wii had drivechips available roughly a year after release and it was extremely successful. Some early consoles like the PSX had almost no security and were very successful. The PSP was only successful because it was easily hackable. Piracy killing support is a myth.
I "think" you missed the point. He's trolling, and it looks like he succeeded.

"This will just kill off 3rd party developer support and we will get lack luster Nintendo games"

Typically on Nintendo consoles the most popular games are the ones made by Nintendo, followed by a ton of 3rd party games, many of which are "lack luster" shovelware. Especially if you look through their eShops.
 

Site & Scene News

Popular threads in this forum