Presentation is loading. Please wait.

Presentation is loading. Please wait.

PS3 Security Julian Wechsler. Overview Legal Issues DMCA Security Overview Exploits Geohots Exploit, PS Jailbreak Flaws ECDSA.

Similar presentations


Presentation on theme: "PS3 Security Julian Wechsler. Overview Legal Issues DMCA Security Overview Exploits Geohots Exploit, PS Jailbreak Flaws ECDSA."— Presentation transcript:

1 PS3 Security Julian Wechsler

2 Overview Legal Issues DMCA Security Overview Exploits Geohots Exploit, PS Jailbreak Flaws ECDSA

3 Legal Issues Sega v. Accolade: Establishes that Reverse Engineering can count as Fair Use Lexmark Intl v. Static Control Components: Ruled that circumvention of Lexmarks ink cartridge lock does not violate the DMCA.

4 The basic question If you purchase something, should you be allowed to do whatever you want with it? Recently, it was established that people are allowed to jailbreak or root their phones. From 2010 DMCA Anti-circumvention exemptions: (2) Computer programs that enable wireless telephone handsets to execute software applications, where circumvention is accomplished for the sole purpose of enabling interoperability of such applications, when they have been lawfully obtained, with computer programs on the telephone handset. How much of a stretch between cellphones and consoles? Homebrew vs Unofficial Applications

5 PS3 Security Overview Hypervisor (aka lv1) controls access between the Game OS (lv 2) and low level hardware, enforces security. Signed executables

6

7 4 years, why? For 3 years, the PS3 has had an OtherOS feature, which let people run Linux, so there was no reason to hack it. This feature was removed from the newer PS3 Slim models. Geohots Exploit – Sony responds with removing OtherOS from all units. From that point, it took one year for the system to be cracked open.

8 Geohots Exploit – Glitching Attack The exploit is a Linux kernel module (hence requiring OtherOS) that calls various system calls to the hypervisor dealing with memory management. A glitching attack involves sending a timed voltage pulse that should cause the hardware to misbehave in some manner. Here, used for glitching memory read/write

9 Geohots Exploit Goal: Compromise the hashed page table (HTAB) to get read/write access to the main segment, which maps all memory including the hypervisor. The kernel module allocates, deallocates, and then tries to use deallocated memory as the HTAB for a virtual segment. The glitch is meant to prevent the deallocating of the mapped memory.

10 Geohots Exploit – Step 1 Allocate a buffer. Make many requests to create lots of duplicate mappings to this buffer. Any one of these mappings can be used to read or write to it.

11 Geohots Exploit – Step 2 Deallocate the buffer. The hypervisor will destroy all of the mappings, but if a successful glitch happens here, the mapping will remain intact.

12 Geohots Exploit – Step 3 Lastly, create virtual segments until it falls in the buffer space that the kernel still has access to. Since you can still read and write to it, the exploit writes some HTAB entries that gives it full access to the main segment which maps all memory.

13 Geohots Exploit – Effects This exploit gives access to all memory, including the hypervisor. So what does this mean? Not really too much. You get a lot of interesting memory dumps, but not really much you can do with it at this point. Regardless, Sony retaliates by removing the OtherOS feature completely to get rid of this exploit.

14 PS Jailbreak, and all of its clones The PSJailbreak emulates a 6 port usb hub, and attaches/detacches fake devices to it to mess with the memory allocation and freeing of the various blocks of memory that hold the device and configuration descriptors. A heap overflow is used to execute shellcode.

15 PS Jailbreak Effects After loading the exploit, the payload patches the lv2 GameOS so that it can run unsigned code. For some reason, the hypervisor doesnt check to make sure that code is signed. Lv2 can also be patched to load games from the HDD. (Piracy!) Lv1/hypervisor is still protected. (Not that theyre doing much at this point)

16 Signed Executables

17 Sonys ECDSA A ECDSA signature consists of R and S computed by: R = (mG) x S = (e + kR) / m The first equation cant be solved because of the discrete logarithm problem The second equation cant be solved because it contains two unknowns.

18 Sonys ECDSA However, m is supposed to be a random number. For some reason, Sony uses the same random number every time. With two signatures using the same m, you can easily solve for k, very easily obtaining the private key. With this information, anyone can sign anything, and run it without having to preload any kind of exploit.

19 Resources https://ps3wiki.lan.st/index.php/Main_Page ole_hacking_2010.pdf ole_hacking_2010.pdf https://www.eff.org/cases/lexmark-v-static-control-case-archive


Download ppt "PS3 Security Julian Wechsler. Overview Legal Issues DMCA Security Overview Exploits Geohots Exploit, PS Jailbreak Flaws ECDSA."

Similar presentations


Ads by Google