Analysis of the MIFARE Classic used in the OV-Chipkaart project

Gerhard de Koning Gans

2008 · 11 citations · 5 references

Concepts

Abstract

The mifare Classic is the most widely used contactless smart card in the market. Its design and implementation details are kept secret by its manufacturer. We investigate the mifare Classic because this card should become the new ticket, called the OV-Chipkaart, in the Dutch public transport system. This thesis studies the architecture of the card and the communication protocol between card and reader. At the start of this research, there was no information available on the mifare Classic protocol nor the implementation of the OV-Chipkaart. To perform this research we used the Proxmark, a device that allows us to eavesdrop on the communication between the reader and the card. Our contributions are as follows. First, an ISO14443-A firmware implementation for the Proxmark that enables eavesdropping on the mifare Classic, among other card types. Secondly, we present an overview of the commands and responses of the protocol. Furthermore, we develop a method to read data from the mifare Classic card without knowledge of the secret key. Due to a weakness in the pseudo-random generator, we are able to recover the keystream generated by the CRYPTO1 stream cipher. We exploit the malleability of the stream cipher to read all memory blocks of the first sector of the card. Moreover, we are able to read any sector of the memory of the card, provided that we know one memory block within this sector. Finally, and perhaps more damaging, the same holds for modifying memory blocks. 1

References

5