Hacking Atmosphere-NX - Custom Firmware in development by SciresM

Onibi

Well-Known Member
Member
Joined
Mar 3, 2018
Messages
153
Trophies
0
Age
38
XP
146
Country
Germany
This is the key point.

Lets say we have low level owned. We say allow official key, and 000000 (our key). At that point we can run anything on the system we want.

New Firmware comes in. Changes official key. We can see that, probably also see key - key is used to start the new kernel. Kernel is hardened against all known attacks.

We try to look at its behavior, it uses memory address space randomization. We have a hard time doing that. :) Even though we own the system, we cant read new keys (for other stuff) in the kernel.

This might be a difficult problem. :) Probably solvable, but the timeframe is important too. :)

I think this is how it works - but I'm not an expert. Just someone proficient at logic. ;)

Hmm. I think in the switch, the keys are stored in the TZ, meaning we will always own them. Also, while the kernel may be obfuscated, it must be able to decrypt packages to load them. So we can just tell the kernel "go decrypt this" and it will. Worst case, since we are running from the TZ, where the kernel can not see us we always have the upper hand, no?
 
Last edited by Onibi,

TotalInsanity4

GBAtemp Supreme Overlord
Member
Joined
Dec 1, 2014
Messages
10,800
Trophies
0
Location
Under a rock
XP
9,814
Country
United States
Hmm. I think in the switch, the keys are stored in the TX, meaning we will always own them. Also, while the kernel may be obfuscated, it must be able to decrypt packages to load them. So we can just tell the kernel "go decrypt this" and it will. Worst case, since we are running from the TX, where the kernel can not see us we always have the upper hand, no?
What do you think "TX" means?
 

notimp

Well-Known Member
Member
Joined
Sep 18, 2007
Messages
5,779
Trophies
1
XP
4,420
Country
Laos
That basically it. Obfuscation, vs. time to get to them vs. release intervals. :)

I've owned other hacked devices before, that allowed homebrew - which wasnt defeatable - but the manufacturer made sure, that people quickly lost the "motivation" of modifying any of the UI, or the company backend stuff - and hackers were shut out from newer models. Which segmented the scene, which...
 

Onibi

Well-Known Member
Member
Joined
Mar 3, 2018
Messages
153
Trophies
0
Age
38
XP
146
Country
Germany
What do you think "TX" means?

In this case trustzone execution (but should be TZ for clarity true) :rofl:

--------------------- MERGED ---------------------------

That basically it. Obfuscation, vs. time to get to them vs. release intervals. :)

I've owned other hacked devices before, that allowed homebrew - which wasnt defeatable - but the manufacturer made sure, that people quickly lost the "motivation" of modifying any of the UI, or the company backend stuff - and hackers were shut out from newer models. Which segmented the scene, which...

Yea, I think we agree on what can be done :) I am maybe a bit more optimistic, but until we actually see countermeasures we have to see. I mean if they add for example anti-cheat engines to this already not super strong system, it may become slower then they can allow. Who knows :) But yea, it will be interesting and you are right they can do quite a bit.
 
Last edited by Onibi,

Onibi

Well-Known Member
Member
Joined
Mar 3, 2018
Messages
153
Trophies
0
Age
38
XP
146
Country
Germany
Ah ok lol, I thought you were talking about "Team Xecuter" and I was beyond confused

Yea, in this case TX was total bogus because I was talking about the Trustzone as (storage) environment and not the Trustzone code execution directly.
I guess TX and TZ are to close in this topic so that I keep Freudian-slipping on it ... I keep an eye out :)

Also doesn't help that I would naturally call "trustzone (code) execution" TX ... (I guess I go with TZX ..) :D
 
Last edited by Onibi,
  • Like
Reactions: TotalInsanity4

reminon

Well-Known Member
Member
Joined
Feb 7, 2016
Messages
430
Trophies
0
Age
33
XP
815
Country
United States
Since the bootrom is not upgradeable, all current and future firmwares are required to be compatible with our current bootrom. At this point keys are not relevant. Each link of the boot chain believes that the link before it was legit, "otherwise it couldn't decrypt and start me". So if the first link of the chain is rogue, then the others fall in line. They can play cat and mouse making it harder to patch out checks and signatures I guess...but they can't stop us from starting an updated ofw, while keeping our efuses and such untouched...then it's a matter of updating the cfw as needed.
 
Last edited by reminon,
  • Like
Reactions: Subtle Demise

TheCyberQuake

Certified Geek
Member
Joined
Dec 2, 2014
Messages
5,012
Trophies
1
Age
28
Location
Las Vegas, Nevada
XP
4,433
Country
United States
Keys are handled by TZ, and are contained somewhere in the update. With full TZ control future key changes are irrelevant, because we can just grab the keys with TZ with the updated emuNAND. And afaik kaslr also shouldn't be a big problem either with TZ control. TZ gives full system control, even over kernel if I'm correct. May be as simple as using TZ to "ask" kernel for the memory maps.
 
D

Deleted User

Guest
Keys are handled by TZ, and are contained somewhere in the update. With full TZ control future key changes are irrelevant, because we can just grab the keys with TZ with the updated emuNAND. And afaik kaslr also shouldn't be a big problem either with TZ control. TZ gives full system control, even over kernel if I'm correct. May be as simple as using TZ to "ask" kernel for the memory maps.

you are not 100% correct to relay Robabla he said that the TZ on 5.0 changed Heavly so i am not sure you could just go and grab something yet
 

TheCyberQuake

Certified Geek
Member
Joined
Dec 2, 2014
Messages
5,012
Trophies
1
Age
28
Location
Las Vegas, Nevada
XP
4,433
Country
United States
you are not 100% correct to relay Robabla he said that the TZ on 5.0 changed Heavly so i am not sure you could just go and grab something yet
Pretty sure that only majorly affects sysNAND, ie mitigating exploits. Not sure if it will actually affect the cfw running emuNAND much as it's running a completely custom Secure Monitor (TZ) anyway. Though I would love to hear some info on this from @SciresM if the update does actually affect anything currently developed in atmosphere.
 

Y0sh1

Well-Known Member
Member
Joined
Dec 31, 2017
Messages
137
Trophies
0
XP
1,313
Country
Ireland
The exosphere part of the CFW is pretty much done, but it seems to me like the first stage loader (fusee) is not yet uploaded to github because people will start bricking their switches like crazy. Or maybe they are waiting for some hacks to use them as the entry point for the CFW installs ¯\_(ツ)_/¯
 

Onibi

Well-Known Member
Member
Joined
Mar 3, 2018
Messages
153
Trophies
0
Age
38
XP
146
Country
Germany
The exosphere part of the CFW is pretty much done, but it seems to me like the first stage loader (fusee) is not yet uploaded to github because people will start bricking their switches like crazy. Or maybe they are waiting for some hacks to use them as the entry point for the CFW installs ¯\_(ツ)_/¯

The trustzone should eventually provide a low level flash ability (like fastboot) to avoid any (well most common) bricks. However, I do agree, to make the project safe to install a good bit more work will need to be done.

I hope we will soon see the exploit released to get a larger dev and beta test community rolling. Otherwise I expect that a stable release will be several month away :(
 
Last edited by Onibi,

TheCyberQuake

Certified Geek
Member
Joined
Dec 2, 2014
Messages
5,012
Trophies
1
Age
28
Location
Las Vegas, Nevada
XP
4,433
Country
United States
The trustzone should eventually provide a low level flash ability (like fastboot) to avoid any (well most common) bricks. However, I do agree, to make the project safe to install a good bit more work will need to be done.

I hope we will soon see the exploit released to get a larger dev and beta test community rolling. Otherwise I expect that a stable release will be several month away :(
Trustzone didn't get us something like fastboot, that would be the trustzone exploit to get us that
 

Onibi

Well-Known Member
Member
Joined
Mar 3, 2018
Messages
153
Trophies
0
Age
38
XP
146
Country
Germany
Trustzone didn't get us something like fastboot, that would be the trustzone exploit to get us that

No I mean in the CFW implementation of the TZ, so that reflashing will be simple for higher level components (kernel, userspace). Less ability to brick.
 

TheCyberQuake

Certified Geek
Member
Joined
Dec 2, 2014
Messages
5,012
Trophies
1
Age
28
Location
Las Vegas, Nevada
XP
4,433
Country
United States
No I mean in the CFW implementation of the TZ, so that reflashing will be simple for higher level components (kernel, userspace). Less ability to brick.
You don't flash anything with basic cfw and emuNAND, except the SD card with the initial setup of emuNAND. I may just be misunderstanding what you are trying to say though.
 

TheCyberQuake

Certified Geek
Member
Joined
Dec 2, 2014
Messages
5,012
Trophies
1
Age
28
Location
Las Vegas, Nevada
XP
4,433
Country
United States
I think he's saying that the bootloader will probably have a way to reflash NAND for brick protection
That's unlikely. Like I said before that kind of brick protection would require bootrom, not just TZ. You need code executing before most of nand starts to load. Unless they mean emuNAND brick protection.
 

TotalInsanity4

GBAtemp Supreme Overlord
Member
Joined
Dec 1, 2014
Messages
10,800
Trophies
0
Location
Under a rock
XP
9,814
Country
United States
That's unlikely. Like I said before that kind of brick protection would require bootrom, not just TZ. You need code executing before most of nand starts to load. Unless they mean emuNAND brick protection.
Doesn't TrustZone boot before everything EXCEPT for bootrom?
(Plus isn't there a bootrom exploit for all first revision Switches?)
 

Onibi

Well-Known Member
Member
Joined
Mar 3, 2018
Messages
153
Trophies
0
Age
38
XP
146
Country
Germany
That's unlikely. Like I said before that kind of brick protection would require bootrom, not just TZ. You need code executing before most of nand starts to load. Unless they mean emuNAND brick protection.

Yes, it would require bootrom hardware support if done as a perfect brick protection (like fastboot). However, the next best thing will be to support the same from the TZ. Essentially, updating the higher level CFW will typically not touch the TZ. At best, both parts will update separately. This will allow people to dev on the higher level CFW without bricking.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • Quincy @ Quincy:
    Usually when such a big title leaks the Temp will be the first to report about it (going off of historical reports here, Pokemon SV being the latest one I can recall seeing pop up here)
  • K3Nv2 @ K3Nv2:
    I still like how a freaking mp3 file hacks webos all that security defeated by text yet again
  • BigOnYa @ BigOnYa:
    They have simulators for everything nowdays, cray cray. How about a sim that shows you playing the Switch.
  • K3Nv2 @ K3Nv2:
    That's called yuzu
    +1
  • BigOnYa @ BigOnYa:
    I want a 120hz 4k tv but crazy how more expensive the 120hz over the 60hz are. Or even more crazy is the price of 8k's.
  • K3Nv2 @ K3Nv2:
    No real point since movies are 30fps
  • BigOnYa @ BigOnYa:
    Not a big movie buff, more of a gamer tbh. And Series X is 120hz 8k ready, but yea only 120hz 4k games out right now, but thinking of in the future.
  • K3Nv2 @ K3Nv2:
    Mostly why you never see TV manufacturers going post 60hz
  • BigOnYa @ BigOnYa:
    I only watch tv when i goto bed, it puts me to sleep, and I have a nas drive filled w my fav shows so i can watch them in order, commercial free. I usually watch Married w Children, or South Park
  • K3Nv2 @ K3Nv2:
    Stremio ruined my need for nas
  • BigOnYa @ BigOnYa:
    I stream from Nas to firestick, one on every tv, and use Kodi. I'm happy w it, plays everything. (I pirate/torrent shows/movies on pc, and put on nas)
  • K3Nv2 @ K3Nv2:
    Kodi repost are still pretty popular
  • BigOnYa @ BigOnYa:
    What the hell is Kodi reposts? what do you mean, or "Wut?" -xdqwerty
  • K3Nv2 @ K3Nv2:
    Google them basically web crawlers to movie sites
  • BigOnYa @ BigOnYa:
    oh you mean the 3rd party apps on Kodi, yea i know what you mean, yea there are still a few cool ones, in fact watched the new planet of the apes movie other night w wifey thru one, was good pic surprisingly, not a cam
  • BigOnYa @ BigOnYa:
    Damn, only $2.06 and free shipping. Gotta cost more for them to ship than $2.06
    +1
  • BigOnYa @ BigOnYa:
    I got my Dad a firestick for Xmas and showed him those 3rd party sites on Kodi, he loves it, all he watches anymore. He said he has got 3 letters from AT&T already about pirating, but he says f them, let them shut my internet off (He wants out of his AT&T contract anyways)
  • K3Nv2 @ K3Nv2:
    That's where stremio comes to play never got a letter about it
  • BigOnYa @ BigOnYa:
    I just use a VPN, even give him my login and password so can use it also, and he refuses, he's funny.
  • BigOnYa @ BigOnYa:
    I had to find and get him an old style flip phone even without text, cause thats what he wanted. No text, no internet, only phone calls. Old, old school.
  • Psionic Roshambo @ Psionic Roshambo:
    @BigOnYa, Lol I bought a new USB card reader thing on AliExpress last month for I think like 87 cents. Free shipping from China... It arrived it works and honestly I don't understand how it was so cheap.
    +1
    Psionic Roshambo @ Psionic Roshambo: @BigOnYa, Lol I bought a new USB card reader thing on AliExpress last month for I think like 87... +1