Tuesday, December 28, 2010

Breaking PIN for software tokens

Software tokens usually use PIN for accessing token functions. Some vendors avoid implementing methods of validating PIN within an application. PIN is validated implicitly by validating dynamic password or response value generated by the application. It is possible because PIN is hashed and then the result (key) is used to decrypt a main key. Next, the main key is used by the application to generate OTP. So when the wrong PIN is provided, the application will decrypt incorrect key and will generate not valid OTP.

But under some conditions it is possible to find out the right PIN code. First of all, we have to obtain at least one valid OTP. For time based tokens we have to know the time when the valid OTP was generated. For counter based tokens we have to find out the counter value. It can be a problem so the attack is more effective when we know an approximate value of the counter for corresponding OTP. The counter is stored in local database of the application and usually we are able to modify the content.

The last step is to perform brute force attack and to compare the values of two dynamic passwords. After every try we have to recover the previous value of the counter (for counter based tokens) or set the right time (for time based tokens).

The attack is very difficult to perform against mobile devices with offline software tokens. We have to have an access to local database of mobile device and capture valid OPT which is send via network.

3 comments:

Shreya Awasthi said...
This comment has been removed by the author.
Shreya Awasthi said...

Sifs India provides forensic science training courses and education by online/distance mode with real court cases practice which include analysis of handwriting, fingerprint science, forensic biology, DNA Fingerprinting, Cyber Forensics, ethical hacking, Forensic Graphology,Forensic Psychology. We have given education to a lot of students and other officials related to forensic science and criminal investigation.

Masonava said...

Nice message with lots of information included in the posting.Please find our link
if you may be interested in ,please refer to
Forensic Mailing list & Email list