forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Cracking the PSP OFW without pandora
Goto page Previous  1, 2, 3, 4  Next
 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
PosX100



Joined: 15 Aug 2007
Posts: 98

PostPosted: Mon Aug 25, 2008 7:24 am    Post subject: Reply with quote

Dariusc123456 wrote:
Wally4000 wrote:
Dariusc123456 wrote:
Why cant someone make a homebrew program that will capture the process and find any holes while its running/debugging sony programs


Because its not that easy?

There are still a lot of functions undefined in the SDK as the devs don't know or can't be bothered ;) finding what they do. That is by miles much more important than allowing rampant noobs coming to the scene and asking "WHERE IS MY PS2 EMULATOR" then they release some LUA shell clone.

Wally
Listen, im not here to argue about the past. If we want the to get cfw for the newest psp, we have to work together.


q.q , like a f4m1ly ... LMAO... who's that guy???.

Sorry for the offtopic guys...
Back to top
View user's profile Send private message
kralyk



Joined: 06 Apr 2008
Posts: 114
Location: Czech Republic, central EU

PostPosted: Thu Aug 28, 2008 8:17 pm    Post subject: Reply with quote

Just a though: If we can use PSP's hardware to decrypt stuff, can we use it to encrypt it back as well? If so, could we produce a piece of hombru, encrypt it using CFW PSP and then run it on OFW?

(Yeah I know it probably cant be done because if it could it would already have been done :D why?)
_________________
...sorry for my english...
Back to top
View user's profile Send private message
Torch



Joined: 28 May 2008
Posts: 842

PostPosted: Thu Aug 28, 2008 9:44 pm    Post subject: Reply with quote

kralyk wrote:
Just a though: If we can use PSP's hardware to decrypt stuff, can we use it to encrypt it back as well? If so, could we produce a piece of hombru, encrypt it using CFW PSP and then run it on OFW?

(Yeah I know it probably cant be done because if it could it would already have been done :D why?)


The encryption is symmetric. We just have to use the same decryption key to encrypt. But we don't exactly know the key, we just ask the PSP to give us the data after decryption.

On top of that the signature is also checked which can't be cracked.
Back to top
View user's profile Send private message
Raphael



Joined: 17 Jan 2006
Posts: 646
Location: Germany

PostPosted: Thu Aug 28, 2008 10:17 pm    Post subject: Reply with quote

Torch wrote:
kralyk wrote:
Just a though: If we can use PSP's hardware to decrypt stuff, can we use it to encrypt it back as well? If so, could we produce a piece of hombru, encrypt it using CFW PSP and then run it on OFW?

(Yeah I know it probably cant be done because if it could it would already have been done :D why?)


The encryption is symmetric. We just have to use the same decryption key to encrypt. But we don't exactly know the key, we just ask the PSP to give us the data after decryption.

On top of that the signature is also checked which can't be cracked.

It is actually asymmetric, else we would have the key to encrypt things (if we also had the algorithm). Unfortunately, we only have the public key, which is stored in the eboot to let the decryption hardware decrypt the stuff, but there's neither an encryption engine, nor the private key to do so.


Once and for all: If you (directed at the lot of people out there having ideas on cracking PSP) want to help provide homebrew support for the next PSP generation, then keep away from any ideas about "breaking the encryption". It's not worth any further discussion. It can't be done in a human lifespan and not even in finite time unless we know the exact algorithm(s) involved. Full stop.

_________________
<Don't push the river, it flows.>
http://wordpress.fx-world.org - my devblog
http://wiki.fx-world.org - VFPU documentation wiki

Alexander Berl
Back to top
View user's profile Send private message Visit poster's website
Torch



Joined: 28 May 2008
Posts: 842

PostPosted: Thu Aug 28, 2008 10:31 pm    Post subject: Reply with quote

Raphael wrote:


Once and for all: If you (directed at the lot of people out there having ideas on cracking PSP) want to help provide homebrew support for the next PSP generation, then keep away from any ideas about "breaking the encryption". It's not worth any further discussion. It can't be done in a human lifespan and not even in finite time unless we know the exact algorithm(s) involved. Full stop.


I thought the encryption was AES.
Back to top
View user's profile Send private message
moonlight



Joined: 26 Oct 2005
Posts: 567

PostPosted: Thu Aug 28, 2008 10:33 pm    Post subject: Reply with quote

Well, if the algorithm is AES128 based like the certificate verify opcode, and the "private key" is in the hardware, encryption is symetric, because the "private key" is not really private, it is public, it is there in hardware. Another different matter is that it cannot be retrieved easily.
Back to top
View user's profile Send private message
Wally



Joined: 26 Sep 2005
Posts: 672

PostPosted: Thu Aug 28, 2008 11:02 pm    Post subject: Reply with quote

Dariusc123456 wrote:
Wally4000 wrote:
Dariusc123456 wrote:
Why cant someone make a homebrew program that will capture the process and find any holes while its running/debugging sony programs


Because its not that easy?

There are still a lot of functions undefined in the SDK as the devs don't know or can't be bothered ;) finding what they do. That is by miles much more important than allowing rampant noobs coming to the scene and asking "WHERE IS MY PS2 EMULATOR" then they release some LUA shell clone.

Wally
Listen, im not here to argue about the past. If we want the to get cfw for the newest psp, we have to work together.


I guess you are gluten for punishment and what?
Back to top
View user's profile Send private message AIM Address
Raphael



Joined: 17 Jan 2006
Posts: 646
Location: Germany

PostPosted: Thu Aug 28, 2008 11:30 pm    Post subject: Reply with quote

moonlight wrote:
Well, if the algorithm is AES128 based like the certificate verify opcode, and the "private key" is in the hardware, encryption is symetric, because the "private key" is not really private, it is public, it is there in hardware. Another different matter is that it cannot be retrieved easily.

In that case you are right, it is not really asymmetric but symmetric. It's still not really a public key, as that would mean it were openly accessible :)
Even if it were, we couldn't do much with it unless we find out the algorithm.

Anyway, that still doesn't make a difference to the point: trying to break the encryption is pointless ;)
_________________
<Don't push the river, it flows.>
http://wordpress.fx-world.org - my devblog
http://wiki.fx-world.org - VFPU documentation wiki

Alexander Berl
Back to top
View user's profile Send private message Visit poster's website
rapso



Joined: 28 Mar 2005
Posts: 147

PostPosted: Thu Aug 28, 2008 11:53 pm    Post subject: Reply with quote

Raphael wrote:
moonlight wrote:
Well, if the algorithm is AES128 based like the certificate verify opcode, and the "private key" is in the hardware, encryption is symetric, because the "private key" is not really private, it is public, it is there in hardware. Another different matter is that it cannot be retrieved easily.

In that case you are right, it is not really asymmetric but symmetric. It's still not really a public key, as that would mean it were openly accessible :)
Even if it were, we couldn't do much with it unless we find out the algorithm.

Anyway, that still doesn't make a difference to the point: trying to break the encryption is pointless ;)

it would, if it would be symmetric and you'd get the key, there wouldn't be anything you'd need to break.

I'd assume they use asymmetric encryption to save a symmetric key which they then use to check the binary's signature.... that's just a guess, but a common way ;)
Back to top
View user's profile Send private message
jube



Joined: 23 Oct 2007
Posts: 115

PostPosted: Fri Aug 29, 2008 12:00 am    Post subject: Reply with quote

i agree, right now the most productive avenue is to replicate what was achieved with pandora, and discover what sony did to block the process.
I have been spending time running round the net trying to collect the info and dev tools that were used to create the first pandora, in order to make as many of them public as possible and thus encourage "young blood" onto the subject. The problem is that the CFW scene is VERY secretive, and although T's presentation stated the pandora code was leaked, damned if i can find any of it ( yet !!! ).
Am still on the project while waiting for parts for PSPZ to arrive, will post any stuff i find.
Back to top
View user's profile Send private message
TyRaNiD



Joined: 18 Jan 2004
Posts: 918

PostPosted: Fri Aug 29, 2008 6:26 am    Post subject: Reply with quote

For the IPL at least the key is in the clear, it is at the start of the block. It was noted that by adjusted the first 32 bytes certain parts of the output decrypted differently.

Of course we don't a) know what algorithm they chose, or at least if we can guess (say AES) then they probably have some sort of extra key permutation. And b) having the key isn't important as you cannot regenerate the hashes (so the theory went :P).

Now of course it will be interesting to see if the new hardware's IPLs are differently encrypted to the ones in the old PSPs causes if they are not we can still brute force the hashes, though without the pre-ipl flaws it probably won't matter.

And as for "pandora code" I am not sure what you are trying to find. The code to brute force hashes etc. was never made public, the rest of it (the custom IPL itself) could be reversed relatively easily even if there is no actual source code for it out there. What got leaked in the sense was ultimately the binary results of pandora (I am sure source went with as well) but that all that was required.
Back to top
View user's profile Send private message
jube



Joined: 23 Oct 2007
Posts: 115

PostPosted: Fri Aug 29, 2008 9:08 am    Post subject: Reply with quote

ahhh, so thats why cant find it :) :),
Yep once realised how difficult the subject was just assumed could dig up all the associated code and method, ESPECIALLY the method of brute forcing the hashes :) , but been thinking about it some more and im proberbly trying to run before i can walk, i think i need to become fluent in mipps assembler first, then study 3.0OE which has the source, THEN should be in position to start staring at blocks of code in a hex editor and obtain something usefull.
T.... Can you suggest reading material? Am i near with my study plan?
Back to top
View user's profile Send private message
Torch



Joined: 28 May 2008
Posts: 842

PostPosted: Sat Aug 30, 2008 1:20 am    Post subject: Reply with quote

How many brute forced blocks would you require to make useful code that can jump into whatever you want? (Though even getting the remaining blocks containing target code to be loaded poses a problem without the pre-IPL flaws).

Also, speculatively, they could have drastically changed the IPL verification process on the PSP3000 and future firmware after it ships with could install different formatted IPLs to the NAND depending on the PSP.
Back to top
View user's profile Send private message
Dariusc123456



Joined: 12 Aug 2008
Posts: 394

PostPosted: Sat Aug 30, 2008 12:06 pm    Post subject: Reply with quote

Do anyone know where the pre-ipl maped at? And if we Brute Force the hashes, what will happen if it dont work? We might just need to poison the hashes to get the information we need. And on the psp 3000, it might have more ram space , and it could have different pre-ipl mapped in different location of the psp.
Back to top
View user's profile Send private message AIM Address
Wally



Joined: 26 Sep 2005
Posts: 672

PostPosted: Sat Aug 30, 2008 1:19 pm    Post subject: Reply with quote

Dariusc123456 wrote:
Do anyone know where the pre-ipl maped at? And if we Brute Force the hashes, what will happen if it dont work? We might just need to poison the hashes to get the information we need. And on the psp 3000, it might have more ram space , and it could have different pre-ipl mapped in different location of the psp.


I guess we'll have to wait for the PSP-3000 to find out :P
Back to top
View user's profile Send private message AIM Address
Dariusc123456



Joined: 12 Aug 2008
Posts: 394

PostPosted: Sat Aug 30, 2008 2:34 pm    Post subject: Reply with quote

Well, the psp 3000 might be ether TA-88v4 or TA-90. If we get to the pre-ipl on the ta-88v3 we can get more information on the new psp. While sony is making more harder encryptions keys, the psp scene isnt getting anywhere. We cant just give up and let sony win. From the begining of psp, til now, no hacker have gave up, nor will it happen this day. I know that no one will give up, and I know im off topic, but it will happen.
Back to top
View user's profile Send private message AIM Address
jojojoris



Joined: 30 Mar 2008
Posts: 261

PostPosted: Sat Aug 30, 2008 10:49 pm    Post subject: Reply with quote

can't someone disamble a psp and analyse all of its parts? Or just get the data from some hardware parts?
Back to top
View user's profile Send private message
Torch



Joined: 28 May 2008
Posts: 842

PostPosted: Sat Aug 30, 2008 10:51 pm    Post subject: Reply with quote

jojojoris wrote:
can't someone disamble a psp and analyse all of its parts? Or just get the data from some hardware parts?


No. Its not possible for modern chips.
Back to top
View user's profile Send private message
jojojoris



Joined: 30 Mar 2008
Posts: 261

PostPosted: Sat Aug 30, 2008 10:57 pm    Post subject: Reply with quote

Torch wrote:
jojojoris wrote:
can't someone disamble a psp and analyse all of its parts? Or just get the data from some hardware parts?


No. Its not possible for modern chips.


Why not? The PSP can use them. Why we not?

Or can't dark_alex write some special kernel which reads the parts?
Back to top
View user's profile Send private message
Torch



Joined: 28 May 2008
Posts: 842

PostPosted: Sat Aug 30, 2008 11:42 pm    Post subject: Reply with quote

jojojoris wrote:

Why not? The PSP can use them. Why we not?

Or can't dark_alex write some special kernel which reads the parts?

Because its physically impossible.
Back to top
View user's profile Send private message
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Sun Aug 31, 2008 6:22 am    Post subject: Reply with quote

You need to take a few years on digital electronics, jojo. You clearly don't understand, and this isn't the place to teach you.
Back to top
View user's profile Send private message AIM Address
angelo



Joined: 29 Aug 2007
Posts: 168

PostPosted: Sun Aug 31, 2008 8:47 am    Post subject: Reply with quote

Won't everything be in binary anyway?

010000010110111001100111011001010110110001101111 = Angelo

Imagine lines of code!

Let's just wait till we cross that bridge, the PSP isn't impossible to crack and there will always be exploits!

Angelo
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Dariusc123456



Joined: 12 Aug 2008
Posts: 394

PostPosted: Sun Aug 31, 2008 1:36 pm    Post subject: Reply with quote

Hmm.... The psp io data. But where other than the flash and MS.
Back to top
View user's profile Send private message AIM Address
Art



Joined: 09 Nov 2005
Posts: 647

PostPosted: Sun Aug 31, 2008 6:57 pm    Post subject: Reply with quote

Quote:
can't someone disamble a psp and analyse all of its parts? Or just get the data from some hardware parts?

Baa... even at the end of the era that it was possible, it required the
resources of a company, rather than an individual.
_________________
If not actually, then potentially.
Back to top
View user's profile Send private message
Torch



Joined: 28 May 2008
Posts: 842

PostPosted: Sun Aug 31, 2008 10:16 pm    Post subject: Reply with quote

The Cyrix M CPUs come to mind.
Back to top
View user's profile Send private message
SilverSpring



Joined: 27 Feb 2007
Posts: 115

PostPosted: Sun Aug 31, 2008 10:33 pm    Post subject: Reply with quote

Just to clear up some things.

The security relies on both encryption and a signature. The code needs to be both encrypted then signed for it to work. The block cipher it uses for the encryption portion is almost certainly AES (though how the block cipher is being used is unknown).

The base operations that KIRK is capable of:

1) 128bit block cipher (almost certainly AES)
2) SHA1 hash
3) random number generator

There are multiple commands you can issue to KIRK (18 commands in total) and all operations are made up of either or a combination of the above algorithms. The main command, the one resposible for decrypting prxs, eboots, ipl blocks etc. is command 1.

The signature portion is not a 'digital signature' in the traditional sense but more like an HMAC. The fact that KIRK is capable of SHA1 and the fact that SCE uses a standard SHA1-HMAC algorithm in numerous places, the 'signature' portion of command 1 almost certainly involves the SHA1-HMAC algorithm. So the 'private key' needed for all of this to work is actually just the secret key for the HMAC (hidden embedded somewhere inside KIRK).

For the encryption portion, it almost certainly involves the AES algo (other KIRK cmds have been confirmed to use the AES algorithm plus standard Sony media literature always mention the fact that the PSP has AES capabilities). The key for this portion seems to be provided with the encrypted data to be decrypted (in the header). So there is no hidden embedded 'private key' for this portion of the encryption, you supply your own key. There are other KIRK commands that just do a block cipher encrypt/decrypt, for those there is an embedded hidden key but this is not needed for command 1 (they are used for general purpose encrypt/decrypt operations). There are also multiple "sig" type KIRK commands that use the AES algo heavily which also use a hidden embedded 'private key' but again is not needed for this purpose (used for multiple things like idstorage keys, adhoc communications, etc). For this purpose ("encryption" of prxs, eboots, etc) the key is supplied with the data.

So the PSP's "encryption" is symmetric. So then what is needed to be able to 'sign' our own code the way Sony does is:

1) figure out how the AES algo is being used for the "encryption" part (to encrypt our code).
2) figure out how the SHA1-HMAC algo is being used for the "signature" part (to sign our encrypted data).
3) find the secret key for the HMAC (so our encrypted data appears to be "signed" by Sony) <--- this is what their entire security is relying on essentially (keeping this key secret)

All 3 are as equally difficult as each other so I wish anyone attempting to crack their security much luck.

Also note that while for every KIRK command there is an inverse command to do the opposite. Ie. for every "encrypt" command there is a corresponding "decrypt" command, this is not the case for the above. So we cannot just rely on KIRK hardware to "sign/encrypt" our eboots, we have to figure out the algorithms and implement them in software (which is most certainly how Sony "sign/encrypt" their code).
Back to top
View user's profile Send private message Visit poster's website
Torch



Joined: 28 May 2008
Posts: 842

PostPosted: Sun Aug 31, 2008 11:07 pm    Post subject: Reply with quote

So from a theoretical point of view, their protection is completely insecure. Its not even a protection to begin with.

All they are relying on is the fact that the chip cannot be reversed.

Wonder if the PS3 is also like this or if they use a public key cryptosystem.
Back to top
View user's profile Send private message
jean



Joined: 05 Jan 2008
Posts: 489

PostPosted: Mon Sep 01, 2008 12:24 am    Post subject: Reply with quote

Quote:
So the PSP's "encryption" is symmetric. So then what is needed to be able to 'sign' our own code the way Sony does is: ...

This is a good new: at school they teached me that encryption strength is never dependant upon algorithm secrecy. So the idea of a distributed brute force attack is not useless at all. I mean: HMAC must be always the same....Let's distribute a small app that:
1 generate small random data (or sequential one, but this way there is the need of a webservice distributing different jobs)
2 encrypt data with kirk functions related to HMAC
3 tries to obtain the encrypted data from unencrypted data without kirk, using guessed AES variants and a random key
The more users, the faster result....how about key length?
Back to top
View user's profile Send private message
kralyk



Joined: 06 Apr 2008
Posts: 114
Location: Czech Republic, central EU

PostPosted: Mon Sep 01, 2008 1:37 am    Post subject: Reply with quote

I bet the random number generator sucks terribly. These pseudo-random number generators usually do. Not that it would help us, I dont think so.

jean: I dont think that would get us anywhere, they could have so easily made the key long enough to prevent even world's most powerful distributed systems from bute forcing it.
_________________
...sorry for my english...
Back to top
View user's profile Send private message
jean



Joined: 05 Jan 2008
Posts: 489

PostPosted: Mon Sep 01, 2008 9:51 am    Post subject: Reply with quote

Quote:
jean: I dont think that would get us anywhere, they could have so easily made the key long enough to prevent even world's most powerful distributed systems from bute forcing it.

If it was asymmetric i would agree, but with symmetric...i think it has not to be that hard...the problem that requires more competence is the algorithm variation...
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Goto page Previous  1, 2, 3, 4  Next
Page 3 of 4

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group