Optimization of Power Analysis Using Neural Network Zdenek - - PowerPoint PPT Presentation

optimization of power analysis using neural network
SMART_READER_LITE
LIVE PREVIEW

Optimization of Power Analysis Using Neural Network Zdenek - - PowerPoint PPT Presentation

About Us Introduction Optimization of Power Analysis Conclusion Optimization of Power Analysis Using Neural Network Zdenek Martinasek, Jan Hajny and Lukas Malina Dpt. of Telecommunications, Brno University of Technology Brno, Czech Republic


slide-1
SLIDE 1

About Us Introduction Optimization of Power Analysis Conclusion

Optimization of Power Analysis Using Neural Network

Zdenek Martinasek, Jan Hajny and Lukas Malina

  • Dpt. of Telecommunications, Brno University of Technology

Brno, Czech Republic martinasek@feec.vutbr.cz crypto.utko.feec.vutbr.cz

Zdenek Martinasek, Jan Hajny and Lukas Malina Optimization of Power Analysis Using Neural Network

slide-2
SLIDE 2

About Us Introduction Optimization of Power Analysis Conclusion

Outline

1

About Us

2

Introduction Motivation Our Contribution

3

Optimization of Power Analysis Optimization Proposal Implementation of Optimization Comparison of Classification Results

4

Conclusion

Zdenek Martinasek, Jan Hajny and Lukas Malina Optimization of Power Analysis Using Neural Network

slide-3
SLIDE 3

About Us Introduction Optimization of Power Analysis Conclusion Cryptology Research Group at BUT

Crypto Research Group, Brno University of Technology, CZ

Small group of cca 10 people, part of Department of Telecommunications, FEEC BUT in Brno, Czech Republic, equipped by SIX Research Centre, both basic and applied research, http://crypto.utko.feec.vutbr.cz/.

Zdenek Martinasek, Jan Hajny and Lukas Malina Optimization of Power Analysis Using Neural Network

slide-4
SLIDE 4

About Us Introduction Optimization of Power Analysis Conclusion Cryptology Research Group at BUT

R&D in Cryptology and Computer Security

Basic research: provable cryptographic protocol design, light-weight cryptography, side channel cryptanalysis. Implementation: smart-cards (Java, .NET, MultOS), mobile OS (iOS, Android), sensors, micro-controllers.

Zdenek Martinasek, Jan Hajny and Lukas Malina Optimization of Power Analysis Using Neural Network

slide-5
SLIDE 5

About Us Introduction Optimization of Power Analysis Conclusion Motivation Our Contribution

Main Characteristics of the Original Implementation

PA based on two-layer perceptron network1 (preparation of power patterns, training of the neural network, classification), the first experiment showed a success rate of 90% for the first byte of AES secret key (AddRoundKey and SubByte), theoretical and empirical success rates were determined only to 80% and 85%, respectively, these results were not sufficient enough,

  • ther negative characteristics were revealed during the testing,
  • ptimization of the method above was realized to increase

the success rate of classification.

1MARTIN´ ASEK, Z.; ZEMAN, V. Innovative Method of the Power Analysis. Radioengineering, 2013, vol. 22,

  • no. 02, p. 586-594. ISSN: 1210- 2512.

Zdenek Martinasek, Jan Hajny and Lukas Malina Optimization of Power Analysis Using Neural Network

slide-6
SLIDE 6

About Us Introduction Optimization of Power Analysis Conclusion Motivation Our Contribution

Our Contribution

Proposal of the optimization of the original power analysis method using the neural network, implementation of the proposed optimization, comparison the results of the optimized method with the

  • riginal implementation,

highlighting the positive and negative characteristic, verification of original method with standard 10-fold cross-validation, comparison of the results of both implementations using cross-validation..

Zdenek Martinasek, Jan Hajny and Lukas Malina Optimization of Power Analysis Using Neural Network

slide-7
SLIDE 7

About Us Introduction Optimization of Power Analysis Conclusion Optimization Proposal Implementation of Optimization Comparison of Classification Results

Optimization Proposal - Preparation of Power Patterns

The optimization using calculation of the average trace and the subsequent calculation of the difference power traces, denote P[i, n] as power traces corresponding to every secret key value, where n = {0, . . . , s} is discrete time, and i represents all possible secret key byte values from 0 to 255, an average trace ¯ A can be calculate as: ¯ A[n] = 1 256

255

  • i=0

P[i, n]. (1) training patterns for the optimized implementation are calculated as a subtraction: PD[i, n] = ¯ A[n] − P[i, n] = 1 256

255

  • i=0

P[i, n] − P[i, n]. (2)

Zdenek Martinasek, Jan Hajny and Lukas Malina Optimization of Power Analysis Using Neural Network

slide-8
SLIDE 8

About Us Introduction Optimization of Power Analysis Conclusion Optimization Proposal Implementation of Optimization Comparison of Classification Results

Comparison of Resulting Power Patterns

Zdenek Martinasek, Jan Hajny and Lukas Malina Optimization of Power Analysis Using Neural Network

slide-9
SLIDE 9

About Us Introduction Optimization of Power Analysis Conclusion Optimization Proposal Implementation of Optimization Comparison of Classification Results

Detail of Power Patterns

5900 5920 5940 5960 5980 6000 6020 6040 6060 6080

  • 0.1
  • 0.05

0.05 0.1 0.15 0.2 0.25 t [n]  I [A]  key 0 key 1 key 2 key 3 ... 5900 5920 5940 5960 5980 6000 6020 6040 6060 6080

  • 0.08
  • 0.06
  • 0.04
  • 0.02

0.02 0.04 0.06 0.08 t [n]  I [A]  key 0 key 1 key 2 key 3 ...

Zdenek Martinasek, Jan Hajny and Lukas Malina Optimization of Power Analysis Using Neural Network

slide-10
SLIDE 10

About Us Introduction Optimization of Power Analysis Conclusion Optimization Proposal Implementation of Optimization Comparison of Classification Results

Created Neural Network

The neural network was created in MATLAB using the neural network toolbox, two-layer perceptron (MLP) was used, training set was realized by using 3 × 256 power traces, back propagation learning algorithm.

Inputs Outputs Hidden units X1 X12000 Z1 Z100 Y1 Y256 Zdenek Martinasek, Jan Hajny and Lukas Malina Optimization of Power Analysis Using Neural Network

slide-11
SLIDE 11

About Us Introduction Optimization of Power Analysis Conclusion Optimization Proposal Implementation of Optimization Comparison of Classification Results

Comparison of Classification Results

A new set of 256 power traces corresponding to all secret key value was measured, whole set was subsequently classified.

Ksec ↓ Original implementation R Optimized implementation RD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 0.00% 0.00% 6.46% . . . 0.00% 0.00% 92.86% 0.00% . . . 1 0.00% 66.42% 0.00% . . . 0.00% 99.87% 0.00% 0.00% . . . 36.77% 0.00% 0.00% . . . 98.23% 0.00% 0.00% 0.00% . . . Kest → 1 2 . . . 1 2 3 . . .

Zdenek Martinasek, Jan Hajny and Lukas Malina Optimization of Power Analysis Using Neural Network

slide-12
SLIDE 12

About Us Introduction Optimization of Power Analysis Conclusion Optimization Proposal Implementation of Optimization Comparison of Classification Results

Probability Vector for Five Secret Keys

Probability of correct key estimates is increased and the other possible key estimates are suppressed (negative?).

50 100 150 200 250 10 20 30 40 50 60 70 80 90 100 Kest  P [%]  Ksec 5 Ksec 41 Ksec 81 Ksec 129 Ksec 248 50 100 150 200 250 10 20 30 40 50 60 70 80 90 100 Kest P [%]  Ksec 5 Ksec 41 Ksec 81 Ksec 129 Ksec 248

Zdenek Martinasek, Jan Hajny and Lukas Malina Optimization of Power Analysis Using Neural Network

slide-13
SLIDE 13

About Us Introduction Optimization of Power Analysis Conclusion Optimization Proposal Implementation of Optimization Comparison of Classification Results

The Highest Selected Probabilities

Investigation of all selected key estimates, theoretical success rate 80% was calculated in the original implementation.

50 100 150 200 250 10 20 30 40 50 60 70 80 90 100 P[%] Ksec  50 100 150 200 2500 50 100 150 200 250 Kest

selected highest probability selected key estimate

50 100 150 200 250 10 20 30 40 50 60 70 80 90 100 P[%] Ksec  50 100 150 200 2500 50 100 150 200 250 Kest

selected highest probability selected key estimate

Zdenek Martinasek, Jan Hajny and Lukas Malina Optimization of Power Analysis Using Neural Network

slide-14
SLIDE 14

About Us Introduction Optimization of Power Analysis Conclusion Optimization Proposal Implementation of Optimization Comparison of Classification Results

Histograms of Highest Probabilities

The results confirm the increase of the maximum probabilities, number of keys potentially predisposed to wrong classification is reduced.

10 20 30 40 50 60 70 80 90 100 5 10 15 20 25 30 35 40 45 P [%]  number of occurrences  10 20 30 40 50 60 70 80 90 100 50 100 150 200 250 P [%]  number of occurrences 

Zdenek Martinasek, Jan Hajny and Lukas Malina Optimization of Power Analysis Using Neural Network

slide-15
SLIDE 15

About Us Introduction Optimization of Power Analysis Conclusion Optimization Proposal Implementation of Optimization Comparison of Classification Results

Cross-validation

2, 560 power traces, 10 power traces for each key value, 10-fold cross-validation, 9 training traces and 1 testing in every step of validation, template attack: 256 templates, 9 interesting points.

Step of cross-validation 1 2 3 4 5 6 7 8 9 10 err Success rate [%] Template err[−] 11 13 7 6 12 7 8 7 4 9 8.4 96.71 Original method err[−] 10 5 12 17 8 17 13 14 7 12 11.5 95.71 Optimized method err[−] 0 1 1 0 0 0 0.2 99.92

Zdenek Martinasek, Jan Hajny and Lukas Malina Optimization of Power Analysis Using Neural Network

slide-16
SLIDE 16

About Us Introduction Optimization of Power Analysis Conclusion Conclusion

Conclusion

Optimization of the power analysis based on multi-layer perceptron using preprocessing, the optimization allowed a significant improvement of the classification results, probability of correct key estimates was increased and the

  • ther possible key estimates were suppressed,

total suppression of alternative probabilities might have negative effect, the original method and the optimized method were compared using the typical 10-fold cross-validation, the optimized method is able to reveal the secret key value with almost 100% success rate.

Zdenek Martinasek, Jan Hajny and Lukas Malina Optimization of Power Analysis Using Neural Network

slide-17
SLIDE 17

About Us Introduction Optimization of Power Analysis Conclusion Conclusion

Thank you for attention!

martinasek@feec.vutbr.cz crypto.utko.feec.vutbr.cz

This research work is funded by the Ministry of Industry and Trade of the Czech Republic, project FR-TI4/647. Measurements were run on computational facilities of the SIX Research Center, registration number CZ.1.05/2.1.00/03.0072. Zdenek Martinasek, Jan Hajny and Lukas Malina Optimization of Power Analysis Using Neural Network