Hacking Number of Switch Keys (Don't Ask For Them)

TiMeBoMb4u2

Well-Known Member
OP
Member
Joined
Oct 25, 2008
Messages
1,550
Trophies
0
Location
Hyrule
XP
1,198
Country
United States
I have 18 key, what am I missing ?
here the keys a got:

master_key_00 = C2CXXXXXXXXXXXXXXXXXXXX
master_key_01 = 54EXXXXXXXXXXXXXXXXXXXX
master_key_02 = 4F6XXXXXXXXXXXXXXXXXXXX

package1_key_00 = F4EXXXXXXXXXXXXXXXXXXXX
package2_key_00 = A35XXXXXXXXXXXXXXXXXXXX
package2_key_01= A0DXXXXXXXXXXXXXXXXXXXX
package2_key_02 = 7E5XXXXXXXXXXXXXXXXXXXX

titlekek_source = 1EDXXXXXXXXXXXXXXXXXXXX
header_kek_source = 1F1XXXXXXXXXXXXXXXXXXXX
header_key_source = 5A3XXXXXXXXXXXXXXXXXXXX
package2_key_source = FB6XXXXXXXXXXXXXXXXXXXX
aes_kek_generation_source = 4D8XXXXXXXXXXXXXXXXXXXX
aes_key_generation_source = 874XXXXXXXXXXXXXXXXXXXX
key_area_key_application_source = 7F5XXXXXXXXXXXXXXXXXXXX
key_area_key_ocean_source = 327XXXXXXXXXXXXXXXXXXXX
key_area_key_system_source = 874XXXXXXXXXXXXXXXXXXXX

XCI Header Key = 01CXXXXXXXXXXXXXXXXXXXX
NCA Header Encryption Key = AEAXXXXXXXXXXXXXXXXXXXX

Are you talking about 20 keys including the master key 03 and 04 ?
I think the "XCI Header Key" is unique to each XCI.
It's located at 0x120:0x130 in every XCI file. It just needs to be reversed.
So, I wasn't counting that one.

Also, the "NCA Header Encryption Key" is commonly referred to as "header_key".

That should bring the total to seventeen (17), right?

If so, it looks like I'm missing:
Code:
package2_key_01
package2_key_02
 
Last edited by TiMeBoMb4u2, , Reason: clarified "header_key"

key1340

Well-Known Member
Member
Joined
Jul 6, 2015
Messages
193
Trophies
0
Age
33
XP
222
Country
United States
There have been 13 keys leaked and you can generate 16 more keys from them taking the total to 29 keys.

The sha256 hashes from all 29 keys are here https://gist.github.com/nicoboss/967cd250d3969e1c4610c54e3186193b

All 29 keys are on the net and i have confirmed them with there sha256 hashes.

There are at least 6 more private keys that you can generate 10 more keys from to make 16 more keys needed.
 
  • Like
Reactions: peteruk

TiMeBoMb4u2

Well-Known Member
OP
Member
Joined
Oct 25, 2008
Messages
1,550
Trophies
0
Location
Hyrule
XP
1,198
Country
United States
There have been 13 keys leaked and you can generate 16 more keys from them taking the total to 29 keys.
The sha256 hashes from all 29 keys are here https://gist.github.com/nicoboss/967cd250d3969e1c4610c54e3186193b
All 29 keys are on the net and i have confirmed them with there sha256 hashes.
There are at least 6 more private keys that you can generate 10 more keys from to make 16 more keys needed.

I think the "leaked" number is now 15, since BBB posted the "master_key_01" and "master_key_02" with their "A.O.T. 2 (Attack on Titan 2)" release.
 

key1340

Well-Known Member
Member
Joined
Jul 6, 2015
Messages
193
Trophies
0
Age
33
XP
222
Country
United States
I think the "leaked" number is now 15, since BBB posted the "master_key_01" and "master_key_02" with their "A.O.T. 2 (Attack on Titan 2)" release.

No the leaked keys are

master_key_00
master_key_01
master_key_02
package1_key_00
package2_key_source
titlekek_source
aes_kek_generation_source
aes_key_generation_source
key_area_key_application_source
key_area_key_ocean_source
key_area_key_system_source
header_kek_source
header_key_source

The rest are all generated from them.
 

TiMeBoMb4u2

Well-Known Member
OP
Member
Joined
Oct 25, 2008
Messages
1,550
Trophies
0
Location
Hyrule
XP
1,198
Country
United States
No the leaked keys are

master_key_00
master_key_01
master_key_02
package1_key_00
package2_key_source
titlekek_source
aes_kek_generation_source
aes_key_generation_source
key_area_key_application_source
key_area_key_ocean_source
key_area_key_system_source
header_kek_source
header_key_source

The rest are all generated from them.

Okay, so you're not counting "package2_key_00" and "header_key", because they are derivable, right?
 
  • Like
Reactions: peteruk

pingtendo

Member
Newcomer
Joined
Sep 20, 2016
Messages
17
Trophies
0
Age
37
XP
173
Country
United States
There have been 13 keys leaked and you can generate 16 more keys from them taking the total to 29 keys.

The sha256 hashes from all 29 keys are here https://gist.github.com/nicoboss/967cd250d3969e1c4610c54e3186193b

All 29 keys are on the net and i have confirmed them with there sha256 hashes.

There are at least 6 more private keys that you can generate 10 more keys from to make 16 more keys needed.

So 6 more private keys we don't know yet are:
master_key_03
master_key_04
package1_key_01
package1_key_02
package1_key_03
package1_key_04

and 10 more keys to generate are:
package2_key_03
package2_key_04
titlekek_03
titlekek_04
key_area_key_application_03
key_area_key_application_04
key_area_key_ocean_03
key_area_key_ocean_04
key_area_key_system_03
key_area_key_system_04

right?
 
  • Like
Reactions: TheExpertNoob

TiMeBoMb4u2

Well-Known Member
OP
Member
Joined
Oct 25, 2008
Messages
1,550
Trophies
0
Location
Hyrule
XP
1,198
Country
United States
So 6 more private keys we don't know yet are:
master_key_03
master_key_04
package1_key_01
package1_key_02
package1_key_03
package1_key_04

and 10 more keys to generate are:
package2_key_03
package2_key_04
titlekek_03
titlekek_04
key_area_key_application_03
key_area_key_application_04
key_area_key_ocean_03
key_area_key_ocean_04
key_area_key_system_03
key_area_key_system_04

right?
To my knowledge, this is correct.
 

mariogamer

Well-Known Member
Member
Joined
Aug 12, 2015
Messages
1,256
Trophies
0
Age
28
XP
790
Country
Canada
Is it actually possible to derive the keys without the switch hardware? And how much time would be needed to do that? (Edit: thinking about that, it shouldn't tale that much time since it is onlye a derivation, but idk)
 
Last edited by mariogamer,

TiMeBoMb4u2

Well-Known Member
OP
Member
Joined
Oct 25, 2008
Messages
1,550
Trophies
0
Location
Hyrule
XP
1,198
Country
United States
Is it actually possible to derive the keys without the switch hardware? And how much time would be needed to do that?
If you have a dump of the Switch archive 0100000000000819 and the master_key and package1_key for the version of the Switch from which the archive was obtained, you can find all the other key_sources.
 

mariogamer

Well-Known Member
Member
Joined
Aug 12, 2015
Messages
1,256
Trophies
0
Age
28
XP
790
Country
Canada
If you have a dump of the Switch archive 0100000000000819 and the master_key and package1_key for the version of the Switch from which the archive was obtained, you can find all the other key_sources.
No I'm talking about derivable keys (eg. *_##keys) (except master and package1 keys)
 
Last edited by mariogamer,

TiMeBoMb4u2

Well-Known Member
OP
Member
Joined
Oct 25, 2008
Messages
1,550
Trophies
0
Location
Hyrule
XP
1,198
Country
United States
No I'm talking about derivable keys (eg. *_##keys) (except master and package1 keys)

It's a bit complicated...
roblabla said:
You need package1_key to decrypt package1, which contains the Secure_Monitor.bin. In there you'll find half the seeds, including the package2_key_source.

The master_key is then needed (with the package2_key_source) to decrypt the package2, which contains FS, where the other half of the seeds are located.

You can also find more information regarding the keys within SciresM's hactool GitHub here:
https://github.com/SciresM/hactool/blob/master/KEYS.md
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    SylverReZ @ SylverReZ: https://www.youtube.com/watch?v=kaQqCfuxKoE