• Aucun résultat trouvé

Power and Electromagnetic Analysis for Template Attacks

N/A
N/A
Protected

Academic year: 2021

Partager "Power and Electromagnetic Analysis for Template Attacks"

Copied!
2
0
0

Texte intégral

(1)

HAL Id: hal-01362457

https://hal.archives-ouvertes.fr/hal-01362457

Submitted on 13 Sep 2016

HAL is a multi-disciplinary open access

archive for the deposit and dissemination of sci-entific research documents, whether they are pub-lished or not. The documents may come from teaching and research institutions in France or abroad, or from public or private research centers.

L’archive ouverte pluridisciplinaire HAL, est destinée au dépôt et à la diffusion de documents scientifiques de niveau recherche, publiés ou non, émanant des établissements d’enseignement et de recherche français ou étrangers, des laboratoires publics ou privés.

Power and Electromagnetic Analysis for Template Attacks

Margaux Dugardin, Louiza Papachristodoulou, Zakaria Najm, Lejla Batina, Jean-Christophe Courrège, Jean-Luc Danger, Sylvain Guilley

To cite this version:

Margaux Dugardin, Louiza Papachristodoulou, Zakaria Najm, Lejla Batina, Jean-Christophe Cour-rège, et al.. Power and Electromagnetic Analysis for Template Attacks. TRUDEVICE, Mar 2015, Grenoble, France. 2015. �hal-01362457�

(2)

Power and Electromagnetic Analysis for Template Attacks

Margaux Dugardin

1,3

, Louiza Papachristodoulou

2

, Zakaria Najm

3

Lejla Batina

2

, Jean-Christophe Courrège

1

, Jean-Luc Danger

3,4

, Sylvain Guilley

3,4

1

Thales Communications & Security, firstname.lastname@thalesgroup.com

2

Radboud University Nijmegen, Digital Security Group, lejla@cs.ru.nl,

louiza@cryptologio.org

3

TELECOM ParisTech, COMELEC, firstname.lastname@telecom-paristech.fr

4

Secure - IC, firstname.lastname@secure-ic.com

This work presents side-channel attacks with power and electromagnetic side-channels during scalar-multiplication on an elliptic curve, in order to compare the efficiency of those methods in horizontal variations of template attacks. More precisely, we perform Online Template Attack, an efficient attack technique applied to regular scalar-multiplication algo-rithms, on a target device where an attacker has limited control over. Our target device uses the double-and-add-always algorithm on a twisted Edwards curve running on a smart-card with an ATmega163 CPU. We show that the attack is feasible in both power and electro-magnetic attack scenarios, but power analysis gives better templates for key recovery in this setting.

Abstract

The smart card implementation is a regular scalar multiplication (double-and-add-always) from Michael Hutter and Peter Schwabe [2] over the twisted Edward curve Ed25519.

The equation from the curve is :

E(Fp) : −x2

+ y

2

= 1 + dx

2y2

over finite field Fp where : (

p =2255

19

d =(121665/121666) mod p

Smart card Implementation

Fig. 1: Power consumption trace

Fig. 2: Electromagnetic Emanation trace

Traces Before Pre-processing

Fig. a: Zoom in PA Fig. a: Zoom in PA

Fig. b: Zoom in EMA Fig. b: Zoom in EMA

Online Template Attacks (OTA) are introduced by Batina et al. in [1].

D(O) D(O) kM SB Template Trace Target Trace time kM SB−2 D(2P) or D(3P) A(2P,P) D(2P) A(4P,2P) D(P) A(O,P) A(O,2P) kM SB−1

Fig. 3: Example to find the second MSB in the target trace with the template trace of 2P

To find each key bit, we compute the Pearson correlation between the target trace and the template trace.

Online Template Attack

Pearson correlation: ρ (X , Y ) = cov(X , Y ) σXσY Pearson correlation: ρ (X , Y ) = cov(X , Y ) σXσY

In both cases we can correctly retrieve the corresponding key-bit of the exponent.

Analysis correct guess bad guess difference between two guess

EMA 0.72 0.56 low

PA 0.67 0.30 high

Tab 1. Result of the pattern matching between the target and template trace.

EM signals apart from more information, contain also more noise, or “fake” peaks due to aliasing of the magnetic and current fields. In practice, we observe that EMA needs more preprocessing of the original trace compared to PA, in order to achieve the desired results in a template side-channel analysis scenario. However, more preprocessing destroys our original signal due to interpolation, and as a result the templates are not so accurate as in current traces.

Analysis

Fig. 4: Lab Set-up

Measurement Set-up

Smart-card: ATMega-163 CPU Frequency: 3.57MHz Scope: 54855 Infiniium Agilent Sampling Frequency : 200MS/sec Probe: Langer EMV-TECHNIK RF-U5-2 Amplifier: Langer

EMV low noise

30dB Bandwith : 50MHz Board: SASEBO-W Smart-card: ATMega-163 CPU Frequency: 3.57MHz Scope: 54855 Infiniium Agilent Sampling Frequency : 200MS/sec Probe: Langer EMV-TECHNIK RF-U5-2 Amplifier: Langer

EMV low noise

30dB Bandwith : 50MHz Board: SASEBO-W

The results of the correlation between the target and the template traces are depicted. As correlation metric we used the Pearson’s correlation coefficient and we compared the pattern of the beginning of the computation of 2P and 3P with the whole target trace of P. We expect to see the highest correlation for the correct key guess at the end of the second iteration of the double-and-add algorithm.

Fig. 5: PA pattern matching between P2P and P3P

Fig. 6: EMA pattern matching between P2P and P3P

Results

We conclude that PA can give more successful results for horizontal variations of template matching, such as OTA. This could be due the nature of the noise; the noise in PA is suitable for horizontal analysis, while the noise during EM acquisitions can be easier cancelled out by averaging a number of traces in vertical attack scenarios.

Conclusion

1. Lejla Batina, Lukasz Chmielewski, Louiza Papachristodoulou, Peter Schwabe, and Michael Tunstall. Online template attacks. In Progress in Cryptology - INDOCRYPT 2014 - 15th International Conference on Cryptology in India, New Delhi, India, December 14-17, 2014, Proceedings, pages 21-36, 2014.

2. Michael Hutter and Peter Schwabe. NaCl on 8-bit AVR microcontrollers. In Amr Youssef and Abderrahmane Nitaj,editors, Progress in Cryptology - AFRICACRYPT 2013, volume 7918 of LNCS, pages 156-172, 2013.

Références

Documents relatifs

Certes, Locke peut toujours se défendre en disant que pour lui l’extension n’est pas l’essence de la matière, que nous ne savons pas ce qui fait la nature

L’analyse du réseau global des relations entre tous les stagiaires PE2 de l’IUFM montre que les groupes de référence sont des lieux d’échange et de relations parfois

[6] La modification du nombre de départements et unités assimilées dans la répartition ou de la population à représenter dans ceux- ci modifie le diviseur et la répartition finale

• Pour les petites copropriétés le coût d’un syndic pro est une part importante du budget, même si pour le syndic on est à la limite de la rentabilité.. • Les syndics «

Président de la Chambre Régionale d'Agriculture de Picardie de juin 1998 à juillet 2004 Membre du Conseil Economique et Social de Picardie (mandat 2001/2007). Président de la

Efter att ha lämnat Socialistiska partiet 2008 bildade han vänsterpartiet Parti de gauche tillsammans med Marc Dolez.. Partiet ingår i valalliansen Front de gauche vars

Le CRD souhaite pouvoir conserver la formule « atelier » en parallèle de la mise en place des cycles spécialisés car ils permettent la mise en œuvre

a) C’est le chauffeur de taxi qui les prévient. b) C’est le policier qui les prévient. c) C’est le directeur de l’école qui les prévient. 10 – Qui Benjamin croise-t-il qui