aes & rsa side channel attack with chipwhisperer · 2019-08-28 · onots onto' 000"...

9
AES & RSA Side Channel Attack with ChipWhisperer Cleveland State University EEC-581 Computer Architecture Andriy Kucher

Upload: others

Post on 08-Jul-2020

4 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: AES & RSA Side Channel Attack with ChipWhisperer · 2019-08-28 · onots onto' 000" 0.82 Add project (Rod Only) a voject XMEGA AES S chi chi r 2 g_gbit ALS chi Add t preprocessing

AES & RSASide Channel Attack

with ChipWhisperer

Cleveland State University

EEC-581

Computer Architecture

Andriy Kucher

Page 2: AES & RSA Side Channel Attack with ChipWhisperer · 2019-08-28 · onots onto' 000" 0.82 Add project (Rod Only) a voject XMEGA AES S chi chi r 2 g_gbit ALS chi Add t preprocessing

ChipWhisperer

• Open-source toolchain for hardware security research.

• Xilinx S6LX9 FPGA

• XMEGA MCU Target

• Side channel attack tool

• Open-source software written in Python and C

Page 3: AES & RSA Side Channel Attack with ChipWhisperer · 2019-08-28 · onots onto' 000" 0.82 Add project (Rod Only) a voject XMEGA AES S chi chi r 2 g_gbit ALS chi Add t preprocessing

Breaking AES & RSA

• AES (Advanced Encryption Standard) – symmetric encryption.• Widely used in the world.• Side channel attack.• Data collection.• Key recovery.

• RSA (Rivest–Shamir–Adleman) – asymmetric encryption.• Used every day in browsers as part of HTTPS.• Side channel attack.• RSA code analysis and finding the leakage.• Data collection.• Data analysis.

Page 4: AES & RSA Side Channel Attack with ChipWhisperer · 2019-08-28 · onots onto' 000" 0.82 Add project (Rod Only) a voject XMEGA AES S chi chi r 2 g_gbit ALS chi Add t preprocessing

Breaking AES

• ChipWhisperer firmware compilation and upload

Page 5: AES & RSA Side Channel Attack with ChipWhisperer · 2019-08-28 · onots onto' 000" 0.82 Add project (Rod Only) a voject XMEGA AES S chi chi r 2 g_gbit ALS chi Add t preprocessing

Breaking AES

• Capturing Traces

• Executing Attack

Page 6: AES & RSA Side Channel Attack with ChipWhisperer · 2019-08-28 · onots onto' 000" 0.82 Add project (Rod Only) a voject XMEGA AES S chi chi r 2 g_gbit ALS chi Add t preprocessing

Breaking RSA

• Compiling and uploading target firmware

Page 7: AES & RSA Side Channel Attack with ChipWhisperer · 2019-08-28 · onots onto' 000" 0.82 Add project (Rod Only) a voject XMEGA AES S chi chi r 2 g_gbit ALS chi Add t preprocessing

Breaking RSA

• Data collection

• Key iteration

• Python API

Page 8: AES & RSA Side Channel Attack with ChipWhisperer · 2019-08-28 · onots onto' 000" 0.82 Add project (Rod Only) a voject XMEGA AES S chi chi r 2 g_gbit ALS chi Add t preprocessing

Breaking RSA

• Data analysis

• Difference plot

• Automating the process

Page 9: AES & RSA Side Channel Attack with ChipWhisperer · 2019-08-28 · onots onto' 000" 0.82 Add project (Rod Only) a voject XMEGA AES S chi chi r 2 g_gbit ALS chi Add t preprocessing

Summary

•Chip Whisperer is low cost, but advanced tool for hardware security research and testing.•Chip Whisperer software package include all of the

tools to recover AES keys.•Breaking RSA is more advance process, but not

imposible. •Next step is to use tools like SciPy and TensorFlow to

automate the analysis.