25
State-of-the-art of international standardisation of side-channel analysis test methodologies and calibration of acquisition tools Sylvain GUILLEY [email protected] September 10, 2015, PARIS 1/18

State-of-the-art of international standardisation of side ... · State-of-the-art of international standardisation of side-channel analysis test methodologies and calibration of acquisition

  • Upload
    dodieu

  • View
    220

  • Download
    0

Embed Size (px)

Citation preview

Page 1: State-of-the-art of international standardisation of side ... · State-of-the-art of international standardisation of side-channel analysis test methodologies and calibration of acquisition

State-of-the-art of international standardisationof side-channel analysis test methodologies and

calibration of acquisition tools

Sylvain [email protected]

September 10, 2015, PARIS

1/18

Page 2: State-of-the-art of international standardisation of side ... · State-of-the-art of international standardisation of side-channel analysis test methodologies and calibration of acquisition

Overview on the workshop topic

do we really need to care?patents / IPcost

tactic

who to contact?benefit?

cost

intention or resulteval vs test

theory vs practice

strategy

looks like trustworthyaccess to marketunbreakable

2/18

Page 3: State-of-the-art of international standardisation of side ... · State-of-the-art of international standardisation of side-channel analysis test methodologies and calibration of acquisition

Overview on the workshop topic

do we really need to care?patents / IPcost

unbreakableaccess to marketlooks like trustworthy theory vs practice

eval vs testintention or result

tactic

who to contact?benefit?

cost

strategy

2/18

Page 4: State-of-the-art of international standardisation of side ... · State-of-the-art of international standardisation of side-channel analysis test methodologies and calibration of acquisition

Overview on the workshop topic

do we really need to care?patents / IPcost

benefit?cost

access to marketunbreakable

looks like trustworthy theory vs practice

intention or resulteval vs test

tactic

strategy

who to contact?

2/18

Page 5: State-of-the-art of international standardisation of side ... · State-of-the-art of international standardisation of side-channel analysis test methodologies and calibration of acquisition

Overview on the workshop topic

painful experience

reality !!!

silicon proven + various certifs.

2/18

Page 6: State-of-the-art of international standardisation of side ... · State-of-the-art of international standardisation of side-channel analysis test methodologies and calibration of acquisition

Problem #1 Gap btw theory & practice

I In practice, it does not workI Assumptions may be invalid...I Errors while implementing implementation-level protections...

I Modelization with the same accuracy of important parts &tiny parts

I How to implement theoretical requirements: e.g., randomnumbers generation?

3/18

Page 7: State-of-the-art of international standardisation of side ... · State-of-the-art of international standardisation of side-channel analysis test methodologies and calibration of acquisition

Warning for optimizations (Cadence) [ISW03]

Caption: AN = and, EO = xor.

Page 8: State-of-the-art of international standardisation of side ... · State-of-the-art of international standardisation of side-channel analysis test methodologies and calibration of acquisition

In practice, it does not work [RBG+15]

c2

r1,2

r1,3

delayed random bit

instead of

a1b2 ⊕ a2b1

a1

b2

a2

b1

a2b2

a1b2 ⊕ r1,2

a1b2

(leakage)

5/18

Page 9: State-of-the-art of international standardisation of side ... · State-of-the-art of international standardisation of side-channel analysis test methodologies and calibration of acquisition

Algorithm: CRT-RSA with Vigilant’s countermeasure

Input: Message M , key (p, q, dp, dq, iq) Output: Signature Md mod N , or a random value in ZN1 Choose a small random integer r. N = p · q2 p′ = p · r23 ipr = p−1 mod r2

4 Mp = M mod p′

5 Bp = p · ipr ; Ap = 1− Bp mod p′

6 M′p = Ap ·Mp + Bp · (1 + r) mod p′ // CRT insertion of verification value in M′p

7 d′p = dp + R3 · (p− 1)

8 S′p = M′pdp mod ϕ(p′) mod p′ // Intermediate signature in Z

pr2

9 cp = M′p + N −M + 1 mod p

10 Spr = 1 + dp · r // Checksum in Zr2

for S′p11 q′ = q · r212 iqr = q−1 mod r2

13 Mq = M mod q′

14 Bq = q · iqr ; Aq = 1− Bq mod q′

15 M′q = Aq ·Mq + Bq · (1 + r) mod q′ // CRT insertion of verification value in M′q

16 d′q = dq + R4 · (q − 1)

17 S′q = M′qdq mod ϕ(q′) mod q′ // Intermediate signature in Z

qr2

18 cq = M′q + N −M + 1 mod q

19 Sqr = 1 + dq · r // Checksum in Zr2

for S′q

20 if Mp 6≡ Mq mod r2 then return error

21 Sr = Sqr + q · (iq · (Spr − Sqr) mod p′) // Recombination checksum in Zr2

22 S′ = S′q + q · (iq · (S′p − S′q) mod p′) // Recombination in ZNr2

23 cS = S′ − Sr + 1 mod r2

24 if q · iq 6≡ 1 mod p then return error

25 return S = S′cpcqcS mod N // Retrieve result in ZN

Pablo Rauzy (Telecom ParisTech) DFA Countermeasures 2015-03-19 41 / 51

Page 10: State-of-the-art of international standardisation of side ... · State-of-the-art of international standardisation of side-channel analysis test methodologies and calibration of acquisition

Problem #2 Gap btw test & evaluation

I Test: reproducible

I Evaluation: possibility to innovate, but outcome depends onthe skill of the evaluator

Test versus Evaluation

ISO/IEC 19790:2012 ISO/IEC 15408:2009

6/18

Page 11: State-of-the-art of international standardisation of side ... · State-of-the-art of international standardisation of side-channel analysis test methodologies and calibration of acquisition

Problem #3 Education

Our discipline is not yet mainstream...

But let’s mention those interesting dissemination activities:

I Liran Lerman: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .R for SCA

I Elisabeth Oswald: . . . . . . . . . . . . . . Matlab for SCA (OpenSCA)

I Guillaume Duc: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . DPAcontest v4

I Akashi Satoh: . . . . . . . . . . . . . . . . . . . . . . . . SASEBO + SAKURA

I Colin O’Flynn; ChipWhisperer

7/18

Page 12: State-of-the-art of international standardisation of side ... · State-of-the-art of international standardisation of side-channel analysis test methodologies and calibration of acquisition

Problem #4 Heterogeneous community

We are a mix of various academic & technical skills, in:

I Signal processing

I Stats

I Data analysis

I Crypto

Design & evaluation people do not often meet formally.

8/18

Page 13: State-of-the-art of international standardisation of side ... · State-of-the-art of international standardisation of side-channel analysis test methodologies and calibration of acquisition

One example [HRG14]

: Annelie Heuser, proficient in SCA

: Olivier Rioul, proficient in stats & info theory

9/18

Page 14: State-of-the-art of international standardisation of side ... · State-of-the-art of international standardisation of side-channel analysis test methodologies and calibration of acquisition

One example [HRG14]

: Annelie Heuser, proficient in SCA

: Olivier Rioul, proficient in stats & info theory

→ CPA is the optimal attack in the affine stochastic setup... [HRG14]

9/18

Page 15: State-of-the-art of international standardisation of side ... · State-of-the-art of international standardisation of side-channel analysis test methodologies and calibration of acquisition

One example [HRG14]

: Annelie Heuser, proficient in SCA

: Olivier Rioul, proficient in stats & info theory

→ HO-CPA is optimal in case of masking and high noise... [BGHR14]

9/18

Page 16: State-of-the-art of international standardisation of side ... · State-of-the-art of international standardisation of side-channel analysis test methodologies and calibration of acquisition

One example [HRG14]

: Annelie Heuser, proficient in SCA

: Olivier Rioul, proficient in stats & info theory

→ Dimensionality reduction doesn’t decrease success rate... [BGH+15]

9/18

Page 17: State-of-the-art of international standardisation of side ... · State-of-the-art of international standardisation of side-channel analysis test methodologies and calibration of acquisition

Problem #5 Security as a whole

I Secure boot

I Key derivation and transport (whole life cycle)

I Faults & reverse-engineering attacks

I etc.

10/18

Page 18: State-of-the-art of international standardisation of side ... · State-of-the-art of international standardisation of side-channel analysis test methodologies and calibration of acquisition

Standardization in embedded security

De factoOne example:

Consensus driven, in committees

I ISO/IEC JTC 1/SC 27: IT Security techniques

I WG3: Security evaluation, testing and specification

11/18

Page 19: State-of-the-art of international standardisation of side ... · State-of-the-art of international standardisation of side-channel analysis test methodologies and calibration of acquisition

Standardization at ISO

Objective

I Agree on common definitions and methods

I For a better and wider development of technologies

How does it work?

I ISO: International Standard Organization (non profit)

I Open participation, through the “national bodies”

I Process: Study Period → Work Item → Int’l Standard

12/18

Page 20: State-of-the-art of international standardisation of side ... · State-of-the-art of international standardisation of side-channel analysis test methodologies and calibration of acquisition

Current study periods → NWIP

PUF

I SC 27 N13700, “Physically Unclonable Functions fornon-stored security parameter generation”

I Function, and performance figures

TRNG for RFID

I 20543, “Test and analysis methods for random bit generatorswithin ISO/IEC 19790 and ISO/IEC 15408”

I Rapporteurs: FR, GE, USA.

13/18

Page 21: State-of-the-art of international standardisation of side ... · State-of-the-art of international standardisation of side-channel analysis test methodologies and calibration of acquisition

Current work items

Calibration of non-invasive attack testing platforms

I 20085: Test tool requirements and test tool calibrationmethods for use in testing noninvasive attack mitigationtechniques in cryptographic modules -

I 20085-1: Part 1: Test tools and techniquesI 20085-2: Part: 2 Test calibration methods and apparatus

⇒ To contribute, please contact your national body

I Next ISO meeting, Oct. 26–30, 2015, at Jaipur, INDIA.

14/18

Page 22: State-of-the-art of international standardisation of side ... · State-of-the-art of international standardisation of side-channel analysis test methodologies and calibration of acquisition

State-of-the-art of international standardisationof side-channel analysis test methodologies and

calibration of acquisition tools

Sylvain [email protected]

September 10, 2015, PARIS

15/18

Page 23: State-of-the-art of international standardisation of side ... · State-of-the-art of international standardisation of side-channel analysis test methodologies and calibration of acquisition

[BGH+15] Nicolas Bruneau, Sylvain Guilley, Annelie Heuser, Damien Marion, andOlivier Rioul.Less is more - dimensionality reduction from a theoretical perspective.In Tim Guneysu and Helena Handschuh, editors, Cryptographic Hardwareand Embedded Systems - CHES 2015 - 17th International Workshop,Saint-Malo, France, September 13-16, 2015, Proceedings, volume 9293 ofLecture Notes in Computer Science, pages 22–41. Springer, 2015.

[BGHR14] Nicolas Bruneau, Sylvain Guilley, Annelie Heuser, and Olivier Rioul.Masks Will Fall Off: Higher-Order Optimal Distinguishers.In ASIACRYPT, volume 8874 of LNCS, pages 344–365. Springer,December 2014.P. Sarkar and T. Iwata (Eds.): ASIACRYPT 2014, PART II.

[HRG14] Annelie Heuser, Olivier Rioul, and Sylvain Guilley.Good Is Not Good Enough - Deriving Optimal Distinguishers fromCommunication Theory.In Lejla Batina and Matthew Robshaw, editors, Cryptographic Hardwareand Embedded Systems - CHES 2014 - 16th International Workshop,Busan, South Korea, September 23-26, 2014. Proceedings, volume 8731 ofLecture Notes in Computer Science, pages 55–74. Springer, 2014.

16/18

Page 24: State-of-the-art of international standardisation of side ... · State-of-the-art of international standardisation of side-channel analysis test methodologies and calibration of acquisition

[ISW03] Yuval Ishai, Amit Sahai, and David Wagner.Private Circuits: Securing Hardware against Probing Attacks.In CRYPTO, volume 2729 of Lecture Notes in Computer Science, pages463–481. Springer, August 17–21 2003.Santa Barbara, California, USA.

[RBG+15] Debapriya Basu Roy, Shivam Bhasin, Sylvain Guilley, Jean-Luc Danger,and Debdeep Mukhopadhyay.From Theory to Practice of Private Circuit: A Cautionary Note.In The 33rd IEEE International Conference on Computer Design (ICCD’15), October 18-21 2015.New York City, USA.

17/18

Page 25: State-of-the-art of international standardisation of side ... · State-of-the-art of international standardisation of side-channel analysis test methodologies and calibration of acquisition

Welcome to PROOFS ’15

September 17, 2015, at Saint-Malo (France)

18/18