Today, I have been working on security code retrieval from various Nokia smart phones. Nokia phones can be configured to lock the device (note the difference with the SIM PIN code) with a password after a certain period of time and at boot time. A locked phone does not respond to USB, bluetooth or keyboard input. You can see how this may pose a problem for forensic investigation on such a device...
For Nokia phones there are ways to retrieve or reset this security code whithout changing relevant user data on the phone.
1. For DCT3 and DCT4 models of Nokia it is possible to calculate a master code from the phone's IMEI number. This 10-digit master code overrides the security code. Unfortunately the newer phones are not DCT3 or DCT4, but BB5 phones.
2.
THC posted a method that uses a flaw in the Nokia software to auto-execute software from the MMC card even though the phone is locked. I haven't tried this method (yet), but I am curious to see on which Nokia models this method works and if it depends on the version of OS.
3. This is my favourite since it only involves a read from memory and now I can guarantee not to alter any user data. All that is needed is a flasher tool like
JAF or
NSS and the proper cables.
Nokia phones store the security code in a part of the memory called the persistent memory or PM. The PM is not touched by ROM flash file when the phone is flashed. The PM may store information like security code, Bluetooth address and service provider info. The JAF tool can extract this PM and store it. A quick peek into these PM files shows the security code in clear text! I have tried it on the following models: Nokia 6600, N72, N78 and N95. Here is an example of a PM value containing the security code:
[35]
0=35 34 33 32 31 00 00 00The first 5 bytes contain the 5 digits of the security code, just substract 0x30 from each byte. This results in 54321 as the security code. Easy huh! Now, I have tried this method for an E70 and E71, but it appears these models store the security code in some encoded form.
This method might just work for all newer Nokia models that do not have a QWERTY keyboard.
I am to see how security codes can be retrieved, reset or circumvented on other phones.