Reverse engineering Java']Java Card and vulnerability exploitation: a shortcut to ROM

被引:0
|
作者
Mesbah, Abdelhak [1 ]
Lanet, Jean-Louis [2 ]
Mezghiche, Mohamed [1 ]
机构
[1] Univ Boumerdes, Independence Ave, Boumerdes 35000, Algeria
[2] INRIA, LHS PEC, 263 Ave Gen Leclerc, F-35042 Rennes, France
关键词
Smart card; !text type='Java']Java[!/text] Card; Reverse engineering; Native calls; Vulnerability exploitation;
D O I
10.1007/s10207-018-0401-9
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Secure elements store and manipulate assets in a secure way. The most attractive assets are the cryptographic keys stored into the memory that can be used to provide secure services to a system. For this reason, secure elements are prone to attacks. But retrieving assets inside such a highly secure device is a challenging task. This paper presents the process we used to gain access to the assets in the particular case of Java Card secure element. In a Java Card, the assets are stored securely, i.e., respecting confidentiality and integrity attributes. Only the native layers can manipulate these sensitive objects. Thus, the Java interpreter, the API and the run time act as a firewall between the assets and the Java applications that one can load into the device. Finding a vulnerability into this piece of software is of a prime importance. Finding a vulnerability into a software is often not enough to develop a complete exploit. Here, we demonstrate at the end that a Java Card applet can call the hidden native functions used to decipher the secure container that encapsulates a key. Some previous attacks have shown the ability to get access to the application code area. But the Java Card intermediate byte code detected in the dumps has shown several differences with regard to the specification, which prevents the reverse engineering of the applicative code. Thus, to avoid the execution of shell code by a hostile applet, a part of the byte code stored into the card is unknown. The transformation is done on-the-fly during the upload of an application. We present in this article a new approach for reversing the unknown instruction set of the intermediate byte code which in turn has led to reverse engineering of the Java classes of the attacked card. We discovered during the reverse that some method calls have an unusual signature. Without having access to the native code, we have inferred the semantics of the called methods and their calling convention. These methods have access to the assets of the card without being restricted by security mechanisms like the firewall. We exploit this knowledge to set up a new attack that provides a full access to the cryptographic material and allows to reset the state of the card to the initial configuration. We demonstrate the ability to call these methods at the Java level in an application to retrieve sensitive assets whatever the protections are. Then, we suggest several possibilities to mitigate these attacks.
引用
收藏
页码:85 / 100
页数:16
相关论文
共 50 条
  • [41] Reverse execution of Java']Java bytecode
    Cook, JJ
    COMPUTER JOURNAL, 2002, 45 (06): : 608 - 619
  • [42] Preventing reverse engineering threat in Java']Java using byte code obfuscation techniques
    Memon, Jan M.
    Shams-ul-Arfeen
    Mughal, Asghar
    Memon, Faisal
    SECOND INTERNATIONAL CONFERENCE ON EMERGING TECHNOLOGIES 2006, PROCEEDINGS, 2006, : 689 - +
  • [43] Brewing fresh Java']Java from legacy Lisp - an experiment in automated reverse engineering
    Harmer, TJ
    Boyle, JM
    13TH IEEE INTERNATIONAL CONFERENCE ON AUTOMATED SOFTWARE ENGINEERING, PROCEEDINGS, 1998, : 318 - 321
  • [44] A high performance buffering of Java']Java objects for Java']Java card systems with flash memory
    Jin, Min-Sik
    Jung, Min-Soo
    EMERGING DIRECTIONS IN EMBEDDED AND UBIQUITOUS COMPUTING, 2006, 4097 : 908 - 918
  • [45] Managing the life cycle of Java']Java Card applets in other Java']Java virtual machines
    Roland, Michael
    Langer, Josef
    Mayrhofer, Rene
    INTERNATIONAL JOURNAL OF PERVASIVE COMPUTING AND COMMUNICATIONS, 2014, 10 (03) : 291 - +
  • [46] Developing smart card-based applications using Java']Java Card
    Vandewalle, JJ
    Vétillard, E
    SMART CARD RESEARCH AND APPLICATIONS, PROCEEDINGS, 2000, 1820 : 105 - 124
  • [47] Formal methods in context:: Security and Java']Java card
    Bolignano, D
    Le Métayer, D
    Loiseaux, C
    JAVA ON SMART CARDS: PROGRAMMING AND SECURITY, 2001, 2041 : 1 - 5
  • [48] Production Card on Great java']java Cultures in Madoera
    Haack, H.
    PETERMANNS MITTEILUNGEN, 1926, 72 (3-4): : 85 - 85
  • [49] PhiAttack Rewriting the Java']Java Card Class Hierarchy
    Dubreuil, Jean
    Bouffard, Guillaume
    SMART CARD RESEARCH AND ADVANCED APPLICATIONS (CARDIS 2021), 2022, 13173 : 275 - 288
  • [50] Verification of JAVA']JAVA CARD applets behavior with respect to transactions and card tears
    Marche, Claude
    Rousset, Nicolas
    SEFM 2006: FOURTH IEEE INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING AND FORMAL METHODS, PROCEEDINGS, 2006, : 137 - +