Outsmarting Smart Cards

Total Page:16

File Type:pdf, Size:1020Kb

Outsmarting Smart Cards Outsmarting Smart Cards Gerhard de Koning Gans Copyright c Gerhard de Koning Gans, 2013 ISBN: 978-94-6191-675-4 IPA dissertation series: 2013-05 Typeset using LATEX The work in this thesis has been carried out under the auspices of the re- search school IPA (Institute for Programming research and Algorithmics) The graphical art of this work, except for the comic on page 25, is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/3.0/ The remaining part of this work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Netherlands License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/nl/ Outsmarting Smart Cards PROEFSCHRIFT ter verkrijging van de graad van doctor aan de Radboud Universiteit Nijmegen op gezag van de rector magnificus prof. mr. S.C.J.J. Kortmann, volgens besluit van het college van decanen in het openbaar te verdedigen op donderdag 11 april 2013 om 15:30 uur precies door Gerrit Theodoor de Koning Gans geboren op 1 juni 1983 te Zwolle Promotor: Prof. dr. B.P.F. Jacobs Copromotor: Dr. F.D. Garcia Manuscriptcommissie: Prof. dr. G. Avoine Université Catholique de Louvain Prof. dr. ir. H.J. Bos Vrije Universiteit Amsterdam Dr. J.C. Hernandez-Castro University of Kent Dr. J.H. Hoepman Prof. dr. E.R. Verheul In memory of Johannes Pap Acknowledgements I would like to thank the many people that helped me directly or indirectly in the completion of my thesis. First of all, my gratitude goes to my direct supervisor Flavio Garcia for his guidance and pleasant assistance in my research. I would also like to thank my promotor Bart Jacobs. Bart has always been willing to share his clear view on a wide range of security related subjects. It encouraged me to develop my own critical view on new developments and applications in our information society, which helps me to this day. I thank Bart and Flavio for proofreading the early ver- sions of this thesis and providing me with constructive comments. Special thanks also go to the members of the reading committee, Gildas Avoine, Herbert Bos, Julio Cesar Hernandez-Castro, Jaap-Henk Hoepman and Eric Verheul, who helped im- proving this thesis a lot by their valuable and professional comments. Thanks to all the members of the “Mifare team” with whom I had the privilege to work on some exciting research. I am convinced that the dedicated and close collaboration between the team members has been one of the cornerstones of this success. We have defeated the Germans. I am grateful that the Digital Security group as a whole, with its dynamic compo- sition of members, was a nice environment for discussion and collaboration. Let me mention some people in particular. Ken Madlener, a good friend and colleague who means a lot to me. In our countless number of afternoon breaks we kept analyzing the (academic) world and motivated each other to keep on going. Another special friend and colleague I would like to thank here is Roel Verdult. Thank you for your close collaboration and friendship. Thanks go to my co-authors. Besides Flavio, Bart, Jaap-Henk, Eric and Roel it also has been a pleasure to work with Arjan Blom, Milosch Meriac, Ruben Muijrers, Erik Poll, Peter van Rossum, Joeri de Ruiter and Ronny Wichers Schreur. The past four years will remain in my thoughts as a period of new experiences, meeting inspirational people and a period in which I could develop myself in my profession. I would like to thank all the people who supported me in many ways over the years. It is impossible to name every person, but do know that I appreciated the support of many more people than mentioned here. I am really thankful for the opportunities that I have been given to increase my knowledge and skills. For the entire duration of my study I felt unconditionally supported by my family and close friends, without whom all of this would not have been possible. Gerhard de Koning Gans Arnhem, February 2013 Contents Acknowledgements vi 1 Introduction1 1.1 Smart cards and RFID............................3 1.2 Cryptography.................................5 1.2.1 Basic building blocks.........................6 1.3 Security protocols............................... 10 1.3.1 Security goals............................. 10 1.3.2 Formal verification and testing................... 11 1.4 Attack scenarios................................ 12 1.5 Outline and results.............................. 18 2 Tools for eavesdropping and analysis 23 2.1 Communication protocols.......................... 25 2.1.1 The physical layer.......................... 26 2.1.2 Encoding techniques......................... 27 2.1.3 Modulation techniques....................... 29 2.2 Proxmark III.................................. 31 2.2.1 Hardware board........................... 32 2.2.2 FPGA implementation........................ 34 2.2.3 Demodulation............................. 38 2.2.4 Other RFID research tools...................... 38 2.3 SmartLogic................................... 40 2.3.1 ISO/IEC 7816............................. 41 2.3.2 SmartLogic setup........................... 41 2.3.3 Hardware............................... 42 2.3.4 Software................................ 44 2.3.5 Other smart card tools........................ 45 2.4 Conclusion................................... 46 3 Case study: Smart cards in practice 49 3.1 An active man-in-the-middle attack on EMV............... 50 3.1.1 The EMV protocol.......................... 51 3.1.2 The attack............................... 52 3.1.3 Using the SmartLogic........................ 52 3.1.4 EMV attack implementation..................... 54 3.2 Security tokens for internet banking.................... 56 3.2.1 The e.dentifier2............................ 56 3.2.2 Attack on the USB-connected mode................ 57 3.3 Distance relaying............................... 59 3.4 Smart card emulation............................. 60 3.5 Concurrent SIM card sharing........................ 62 4 Dismantling Mifare Classic 65 4.1 Research context and related work..................... 66 4.2 Mifare Classic................................. 70 4.2.1 Communication layer........................ 71 4.2.2 Memory layout............................ 71 4.2.3 Commands.............................. 73 4.2.4 Anticollision and authentication.................. 73 4.3 Weak pseudo-random number generator................. 74 4.4 Recovering the command codes....................... 75 4.4.1 Keystream recovery......................... 77 4.4.2 Reading sector zero.......................... 80 4.4.3 Reading higher sectors........................ 81 4.4.4 Command codes........................... 81 4.5 Recovering the cryptographic system................... 83 4.5.1 Authentication protocol....................... 83 4.5.2 CRYPTO1 cipher........................... 85 4.6 Weaknesses and exploits........................... 89 4.6.1 LFSR state recovery......................... 89 4.6.2 LFSR rollback............................. 91 4.6.3 Odd inputs to the filter function.................. 92 4.7 Attacking Mifare Classic........................... 94 4.7.1 Attack one............................... 94 4.7.2 Attack two............................... 95 4.7.3 Multiple-sector authentication................... 95 4.7.4 Improved attacks........................... 96 4.8 Conclusion................................... 97 5 Dismantling iClass and iClass Elite 99 5.1 Research context and related work..................... 100 5.2 iClass...................................... 103 5.2.1 Functionality............................. 104 5.2.2 Authentication protocol....................... 106 5.3 iClass Standard................................ 106 5.3.1 Black box reverse engineering.................... 107 5.3.2 The function hash0 .......................... 114 5.3.3 Weaknesses in iClass Standard key diversification........ 115 5.3.4 Attacking iClass Standard key diversification........... 118 5.4 The iClass cipher............................... 119 5.4.1 Firmware reverse engineering................... 119 5.4.2 The cipher............................... 121 5.5 Weakness in iClass.............................. 123 5.5.1 Weak keys............................... 123 5.5.2 XOR key update weakness..................... 123 5.5.3 Privilege escalation.......................... 124 5.5.4 Lower card key entropy....................... 124 5.5.5 Key recovery attack on iClass Standard.............. 124 5.6 iClass Elite................................... 125 5.6.1 Key diversification on iClass Elite................. 126 5.6.2 Weaknesses in iClass Elite key diversification........... 128 5.6.3 Key recovery attack on iClass Elite................. 128 5.7 Conclusion................................... 130 6 A synchronizable forward-private low-cost RFID protocol 133 6.1 RFID next to barcodes............................ 135 6.2 Forward privacy................................ 136 6.3 The desynchronization problem....................... 137 6.3.1 Barcode analogy........................... 139 6.4 System model................................. 140 6.5 Security definitions.............................. 141 6.6 Protocol description.............................. 144 6.6.1 Second channel............................ 144 6.6.2 Tag and reader state......................... 145 6.6.3 Success, failure and synchronization run............. 146 6.6.4 Precomputation and state resolution...............
Recommended publications
  • Security Evaluation of GOST 28147-89 in View of International Standardisation
    Security Evaluation of GOST 28147-89 In View Of International Standardisation Nicolas T. Courtois University College London, Gower Street, London, UK, [email protected] Abstract. GOST 28147-89 is is a well-known 256-bit block cipher which is a plausible alternative for AES-256 and triple DES which is known to have a much lower implementation cost, see [31]. GOST is implemented in standard crypto libraries such as OpenSSL and Crypto++ [25, 45], and is increasingly popular and used also outside its country of origin and on the Internet [23, 24, 31]. In 2010 GOST was submitted to ISO, to become a worldwide industrial encryption standard. Until 2011 researchers unanimously agreed that GOST could or should be very secure, which was summarized in 2010 in these words: \despite considerable cryptanalytic e®orts spent in the past 20 years, GOST is still not broken", see [31]. Unhappily, it was recently discovered that GOST can be broken and is a deeply flawed cipher. There is a very con- siderable amount of recent not yet published work on cryptanalysis of GOST known to us, see [12]. One simple attack was already presented in February at FSE 2011, see [28]. In this short paper we describe an- other attack, to illustrate the fact that there is now plethora of attacks on GOST, which require much less memory, and don't even require the reflection property [29] to hold, without which the recent attack from [28] wouldn't work. We are also aware of many substantially faster at- tacks and of numerous special even weaker cases, see [12].
    [Show full text]
  • Thesis Submitted for the Degree of Doctor of Philosophy
    Optimizations in Algebraic and Differential Cryptanalysis Theodosis Mourouzis Department of Computer Science University College London A thesis submitted for the degree of Doctor of Philosophy January 2015 Title of the Thesis: Optimizations in Algebraic and Differential Cryptanalysis Ph.D. student: Theodosis Mourouzis Department of Computer Science University College London Address: Gower Street, London, WC1E 6BT E-mail: [email protected] Supervisors: Nicolas T. Courtois Department of Computer Science University College London Address: Gower Street, London, WC1E 6BT E-mail: [email protected] Committee Members: 1. Reviewer 1: Professor Kenny Paterson 2. Reviewer 2: Dr Christophe Petit Day of the Defense: Signature from head of PhD committee: ii Declaration I herewith declare that I have produced this paper without the prohibited assistance of third parties and without making use of aids other than those specified; notions taken over directly or indirectly from other sources have been identified as such. This paper has not previously been presented in identical or similar form to any other English or foreign examination board. The following thesis work was written by Theodosis Mourouzis under the supervision of Dr Nicolas T. Courtois at University College London. Signature from the author: Abstract In this thesis, we study how to enhance current cryptanalytic techniques, especially in Differential Cryptanalysis (DC) and to some degree in Al- gebraic Cryptanalysis (AC), by considering and solving some underlying optimization problems based on the general structure of the algorithm. In the first part, we study techniques for optimizing arbitrary algebraic computations in the general non-commutative setting with respect to sev- eral metrics [42, 44].
    [Show full text]
  • Public Evaluation Report UEA2/UIA2
    ETSI/SAGE Version: 2.0 Technical report Date: 9th September, 2011 Specification of the 3GPP Confidentiality and Integrity Algorithms 128-EEA3 & 128-EIA3. Document 4: Design and Evaluation Report LTE Confidentiality and Integrity Algorithms 128-EEA3 & 128-EIA3. page 1 of 43 Document 4: Design and Evaluation report. Version 2.0 Document History 0.1 20th June 2010 First draft of main technical text 1.0 11th August 2010 First public release 1.1 11th August 2010 A few typos corrected and text improved 1.2 4th January 2011 A modification of ZUC and 128-EIA3 and text improved 1.3 18th January 2011 Further text improvements including better reference to different historic versions of the algorithms 1.4 1st July 2011 Add a new section on timing attacks 2.0 9th September 2011 Final deliverable LTE Confidentiality and Integrity Algorithms 128-EEA3 & 128-EIA3. page 2 of 43 Document 4: Design and Evaluation report. Version 2.0 Reference Keywords 3GPP, security, SAGE, algorithm ETSI Secretariat Postal address F-06921 Sophia Antipolis Cedex - FRANCE Office address 650 Route des Lucioles - Sophia Antipolis Valbonne - FRANCE Tel.: +33 4 92 94 42 00 Fax: +33 4 93 65 47 16 Siret N° 348 623 562 00017 - NAF 742 C Association à but non lucratif enregistrée à la Sous-Préfecture de Grasse (06) N° 7803/88 X.400 c= fr; a=atlas; p=etsi; s=secretariat Internet [email protected] http://www.etsi.fr Copyright Notification No part may be reproduced except as authorized by written permission. The copyright and the foregoing restriction extend to reproduction in all media.
    [Show full text]
  • Algebraic Complexity Reduction and Cryptanalysis of GOST Nicolas T
    Algebraic Complexity Reduction and Cryptanalysis of GOST Nicolas T. Courtois University College London, Gower Street, London, UK Abstract. GOST 28147-89 is a well-known Russian government encryp- tion standard. Its large key size of 256 bits at a particularly low imple- mentation cost [83] make that it is widely implemented and used [70, 105, 66, 83, 88]. In 2010 GOST was submitted to ISO to become an inter- national standard. GOST was analysed by Schneier, Biham, Biryukov, Dunkelman, Wagner, various Australian, Japanese, and Russian scien- tists, and all researchers seemed to agree that it looks quite secure. Though the internal structure of GOST seems quite weak compared to DES, and in particular the diffusion is not quite as good, it is always stip- ulated that this should be compensated by a large number of 32 rounds cf. [63, 101, 100, 8] and by the additional non-linearity and diffusion pro- vided by modular additions [63, 84]. At Crypto 2008 the hash function based on this cipher was broken. Yet as far as traditional encryption ap- plications with keys generated at random are concerned, until 2011 no cryptographically significant attack on GOST was found. In this paper we present several new attacks on full 32-rounds GOST. Our methodology is derived from the idea of conditional algebraic attacks on block ciphers [25, 20] which can be defined as attacks in which the prob- lem of key recovery is written as a problem of solving a large system of algebraic equations, and where the attacker makes some \clever" as- sumptions on the cipher which lead to an important simplification in the algebraic description of the problem, which makes it solvable in practice if the assumptions hold.
    [Show full text]
  • Algebraic Cryptanalysis of the Data Encryption Standard
    Algebraic Cryptanalysis of the Data Encryption Standard Nicolas T. Courtois1 and Gregory V. Bard2 1University College of London, Gower Street, London, UK, [email protected] 2Fordham University, NY, USA [email protected] Abstract. In spite of growing importance of AES, the Data Encryption Standard is by no means obsolete. DES has never been broken from the practical point of view. The triple DES is believed very secure, is widely used, especially in the financial sector, and should remain so for many many years to come. In addition, some doubts have been risen whether its replacement AES is secure, given the extreme level of “algebraic vulnerability” of the AES S-boxes (their low I/O degree and exceptionally large number of quadratic I/O equations). Is DES secure from the point of view of algebraic cryptanalysis, a new very fast-growing area of research? We do not really hope to break it, but just to advance the field of cryptanalysis. At a first glance, DES seems to be a very poor target — as there is (apparently) no strong algebraic structure of any kind in DES. However in [14] it was shown that “small” S-boxes always have a low I/O degree (cubic for DES as we show below). In addition, due to their low gate count requirements, by introducing additional variables, we can always get an extremely sparse system of quadratic equations. To assess the algebraic vulnerabilities is the easy part, that may appear unproductive. In this paper we demonstrate that in this way, several interesting attacks on a real-life “industrial” block cipher can be found.
    [Show full text]
  • Computational and Algebraic Aspects of the Advanced Encryption Standard
    Computational and Algebraic Aspects of the Advanced Encryption Standard Carlos Cid, Sean Murphy and Matthew Robshaw Information Security Group, Royal Holloway, University of London, Egham, Surrey, TW20 0EX, U.K. [email protected] [email protected] [email protected] Abstract. The new Advanced Encryption Standard (AES) has been recently selected by the US government to replace the old Data Encryption Standard (DES) for protecting sensitive o±cial information. Due to its simplicity and elegant algebraic structure, the choice of the AES algorithm has motivated the study of a new approach to the analysis of block ciphers. While conventional methods of cryptanalysis (e.g. di®erential and linear cryptanalysis) are usually based on a \statistical" approach, where an attacker attempts to construct statistical patterns through many interactions of the cipher, the so-called algebraic attacks exploit the intrinsic algebraic structure of a cipher. More speci¯cally, the attacker expresses the encryption transformation as a set of multivariate polynomial equations and attempts to recover the encryption key by solving the system. In this paper we consider a number of algebraic aspects of the AES, and examine a few computational and algebraic techniques that could be used in the cryptanalysis of cipher. We show how one can express the cipher as a very large, though surprisingly simple, system of multivariate quadratic equations over the ¯nite ¯eld F28 , and consider some approaches that can be used to solve this system. 1 Introduction In 1997 the US National Institute of Standards and Technology (NIST) announced an open compe- tition to select a substitute for the old 64-bit block, 56-bit key Data Encryption Standard (DES).
    [Show full text]
  • An Algebraic Masking Method to Protect AES Against Power Attacks⋆
    An Algebraic Masking Method to Protect AES Against Power Attacks? Nicolas T. Courtois1 and Louis Goubin1,2 1 Axalto Crypto Research & Advanced Security, 36-38 rue de la Princesse, BP 45, F-78430 Louveciennes Cedex, France, [email protected] 2 PRiSM Versailles University, 45 avenue des Etats-Unis, F-78035 Versailles Cedex, France, [email protected] Abstract. The central question in constructing a secure and efficient masking method for AES is to address the interaction between additive masking and the inverse S-box of Rijndael. All recently proposed meth- ods to protect AES against power attacks try to avoid this problem and work by decomposing the inverse in terms of simpler operations that are more easily protected against DPA by generic methods. In this paper, for the first time, we look at the problem in the face, and show that this interaction is not as intricate as it seems. In fact, any operation, even complex, can be directly protected against DPA of any given order, if it can be embedded in a group that has a compact representation. We show that a secure computation of a whole masked inverse can be done directly in this way, using the group of homographic transformations over the projective space (but not exactly, with some non-trivial technicalities). This is used to propose a general high-level algebraic method to protect AES against power attacks of any given or- der. Key Words: Rijndael, AES, inverse S-box, homographic transforma- tions, linear fractional transformations, M¨obius transformations, the zero- masking problem, Differential Power analysis, higher-order DPA.
    [Show full text]
  • Algebraic Attacks Over GF(2 K), Application to HFE Challenge 2 and Sflash-V2
    Algebraic Attacks over GF (2k), Application to HFE Challenge 2 and Sflash-v2 Nicolas T. Courtois Axalto Cryptography Research & Advanced Security, 36-38 rue de la Princesse, BP 45, 78430 Louveciennes Cedex, France http://www.nicolascourtois.net [email protected] Abstract. The problem MQ of solving a system of multivariate quadratic equations over a finite field is relevant to the security of AES and for several public key cryptosystems. For example Sflash, the fastest known signature scheme (cf. [1]), is based on MQ equations over GF (27), and Patarin’s 500 $ HFE Challenge 2 is over GF (24). Similarly, the fastest alleged algebraic attack on AES due to Courtois, Pieprzyk, Murphy and Robshaw uses a MQ system over GF (28). At present very little is known about practical solvability of such systems of equations over GF (2k). The XL algorithm for Eurocrypt 2000 was initially studied over GF (p), and only recently in two papers presented at CT-RSA’02 and ICISC’02 the behaviour of XL is studied for systems of equations over GF (2). In this paper we show (as expected) that XL over GF (2k), k > 1 (never studied so far) does not always work very well. The reason is the existence of additional roots to the system in the extension field, which is closely related to the remark made by Moh, claiming that the XSL attack on AES cannot work. However, we explain that, the specific set of equations proposed by Murphy and Robshaw already contains a structure that removes the problem. From this, we deduce a method to modify XL so that it works much better over GF (2k).
    [Show full text]
  • Differential Cryptanalysis of GOST
    Di®erential Cryptanalysis of GOST Nicolas T. Courtois1 and MichaÃlMisztal2 1 University College London, Gower Street, London, UK, [email protected] 2 Military University of Technology, Kaliskiego 2, Warsaw, Poland, [email protected] Abstract GOST 28147-89 is a well-known block cipher and the o±cial en- cryption standard of the Russian Federation. A 256-bit block cipher considered as an alternative for AES-256 and triple DES, having an amazingly low implementation cost and thus increasingly popular and used [22, 23, 30, 24, 41]. Until 2010 researchers unanimously agreed that: \despite considerable cryptanalytic e®orts spent in the past 20 years, GOST is still not broken", see [30] and in 2010 it was submitted to ISO 18033 to become a worldwide industrial encryption standard. In 2011 it was suddenly discovered that GOST is insecure on more than one account. There is an amazing variety of recent attacks on GOST [8, 15]. We have reflection attacks [26, 15], attacks with double reflec- tion [15], and various attacks which does not use reflections [15, 8]. All these methods follow a certain general framework called \Alge- braic Complexity Reduction", a new general \umbrella" paradigm in- troduced in [15, 8]. The ¯nal key recovery step is in most cases a software algebraic attack [15, 8] and sometimes a Meet-In-The-Middle attack [26, 15]. In this paper we show that GOST is NOT SECURE even against (advanced forms of) di®erential cryptanalysis (DC), Previously Rus- sian researchers postulated that GOST will be secure against DC for as few as 7 rounds out of 32 [18, 38] and Japanese researchers were already able to break about 13 rounds [37].
    [Show full text]
  • Stream Ciphers and the Estream Project? Vincent Rijmen A,∗ Akatholieke Universiteit Leuven, Dept
    The ISC Int'l Journal of Information Security January 2010, Volume 2, Number 1 (pp. 3{11) ISeCure http://www.isecure-journal.org Invited Paper Stream Ciphers and the eSTREAM Project? Vincent Rijmen a;∗ aKatholieke Universiteit Leuven, Dept. ESAT/SCD-COSIC and IBBT, Kasteelpark Arenberg 10, B-3001 Heverlee, Belgium, and Institute for Applied Information Processing and Communications (IAIK), Graz University of Technology, Inffeldgasse 16a, A-8010 Graz, Austria A R T I C L E I N F O. ABSTRACT Article history: Stream ciphers are an important class of symmetric cryptographic algorithms. Received: 6 October 2009 Revised: | The eSTREAM project contributed significantly to the recent increase of Accepted: 30 November 2009 activity in this field. In this paper, we present a survey of the eSTREAM Published Online: 18 January 2010 project. We also review recent time/memory/data and time/memory/key Keywords: trade-offs relevant for the generic attacks on stream ciphers. Cryptology, Stream Ciphers, Time-Memory Trade-offs, c 2010 ISC. All rights reserved. eSTREAM 1 Introduction design of secure stream ciphers. In Section2 we start with one of the remarkable issues in the stream ciphers The design of secure stream ciphers is one of the old- versus block ciphers debate, namely the fuzzy border est problems in cryptography. Although there exists separating them from one another. In Section3, we a nicely developed theory that answers several of the describe some general results that were obtained dur- important questions, the question is not fully solved ing the eSTREAM competition. These generic attacks (and it will probably never be).
    [Show full text]
  • Security of Wireless Embedded Devices in the Real World
    Security of Wireless Embedded Devices in the Real World Timo Kasper . David Oswald . Christof Paar Chair for Embedded Security HGI, Ruhr-University Bochum Universitaetsstrasse 150 44801 Bochum, Germany {timo.kasper | david.oswald | christof.paar}@rub.de Abstract In the past years, wireless embedded devices have become omnipresent. Portable tokens communicating via an RF (Radio Frequency) interface are employed in contactless applications such as access control, iden- tification, and payments. The survey presented in this paper focuses on those devices that employ crypto- graphic mechanisms as a protection against ill-intended usage or unauthorizedly accessing secured data. By analyzing different commercial products, i.e., electronic passports, the remote keyless entry system KeeLoq, a Mifare Classic based contactless payment system, and a public transport system relying on Mifare DESfire cards we demonstrate that it is feasible to recover the secret cryptographic keys from various cryptographic tokens. At hand of the real-world examples, the implications of a key extraction for the security of the re- spective contactless application are illustrated. 1 Introduction Wireless tokens have become ubiquitous in our everyday life. RFID (Radio Frequency Identifica- tion) technology is used in the supply chain as a barcode replacement, in the medical sector (pace makers, patient wristbands), as a countermeasure against product piracy, or helps to prevent car theft in the form of car immobilizers. Contactless cards, representing the most powerful variant of RFIDs, enable amongst others comfortable ticketing, contactless payments and secure access control. Active, battery-powered remote controls possess their own transmitter enabling greater operating ranges. They are often used in Remote Keyless Entry (RKE) systems that have already replaced the conventional mechanical keys for accessing the majority of modern cars and build- ings.
    [Show full text]
  • Cryptanalysis of Block Ciphers with Overdefined Systems of Equations
    Cryptanalysis of Block Ciphers with Overdefined Systems of Equations Nicolas T. Courtois1 and Josef Pieprzyk2 1 CP8 Crypto Lab, SchlumbergerSema, 36-38 rue de la Princesse BP 45, 78430 Louveciennes Cedex, France http://www.nicolascourtois.net [email protected] 2 ICS, Macquarie University, NSW 2109, Australia [email protected] Abstract. Several recently proposed ciphers are built with layers of small S-boxes, interconnected by linear key-dependent layers. Their security relies on the fact, that the classical methods of cryptanalysis (e.g. linear or differential attacks) are based on probabilistic characteristics, which makes their security grow exponentially with the number of rounds Nr. In this paper we study the security of such ciphers under an additional hypothesis: the S-box can be described by an overdefined system of algebraic equations (true with probability 1). We show that this hypothesis is true for both Serpent (due to a small size of S-boxes) and Rijndael (due to unexpected algebraic properties). We study general methods known for solving overdefined systems of equations, such as XL from Euro- crypt’00, and show their inefficiency. Then we introduce a new method called XSL that uses the sparsity of the equations and their specific structure. The XSL attack has a parameter P , and in theory we show that P should be a constant. The XSL attack would then be polynomial in Nr, with a huge constant that is double- exponential in the size of the S-box. We demonstrated by computer simulations that the XSL attack works well enough on a toy cipher.
    [Show full text]