wamos 2018 thorsten knoll
play

WAMOS 2018: Thorsten Knoll thorsten.knoll@hs-rm.de Adapting - PowerPoint PPT Presentation

WAMOS 2018: Thorsten Knoll thorsten.knoll@hs-rm.de Adapting Kerckhoffs principle: A path from cryptography to open source hardware Adapting Kerckhoffs principle Content of presentation The path: The idea Kerckhoffs principle (KP)


  1. WAMOS 2018: Thorsten Knoll thorsten.knoll@hs-rm.de Adapting Kerckhoffs principle: A path from cryptography to open source hardware

  2. Adapting Kerckhoffs principle Content of presentation The path: ● The idea ● Kerckhoffs principle (KP) ● Attacks and KP ● Mitigations and KP ● The need for Open Source Hardware (OSH) ● Conclusion: Adapting KP Slide 2 / 31 WAMOS 2018, Thorsten Knoll

  3. Adapting Kerckhoffs principle The idea The idea Slide 3 / 31 WAMOS 2018, Thorsten Knoll

  4. Adapting Kerckhoffs principle The idea New: Sidechannel attacks on mainstream CPUs (~2000) Brandnew: Meltdown, Spectre, BranchScope, TLBleed, Spectre-NG, … (2018) Very old: Kerckhoffs principle (1883) Slide 4 / 31 WAMOS 2018, Thorsten Knoll

  5. Adapting Kerckhoffs principle The idea New: Sidechannel attacks on + mainstream CPUs (~2000) Brandnew: Meltdown, Spectre, BranchScope, + TLBleed, Spectre-NG, … (2018) Very old: Kerckhoffs principle (1883) Paper: Adapting Kerckhoffs principle Slide 5 / 31 WAMOS 2018, Thorsten Knoll

  6. Adapting Kerckhoffs principle Kerckhoffs principle (KP) Kerckhoffs principle (KP) Slide 6 / 31 WAMOS 2018, Thorsten Knoll

  7. Adapting Kerckhoffs principle Kerckhoffs principle (KP) 1883 - Auguste Kerckhoffs in “La cryptographie militaire”: Design principles for (military) cipher systems: 1. The system must be practically, if not mathematically, indecipherable. 2. It should not require secrecy, and it should not be a problem if it falls into enemy hands. 3. It must be possible to communicate and remember the key without using written notes, and correspondents must be able to change or modify it at will. 4. It must be applicable to telegraph communications. 5. It must be portable, and should not require several persons to handle or operate. 6. Lastly, given the circumstances in which it is to be used, the system must be easy to use and should not be stressful to use or require its users to know and comply with a long list of rules. Translation from french to english: https://en.wikipedia.org/wiki/Kerckhoffs%27s_principle Slide 7 / 31 WAMOS 2018, Thorsten Knoll

  8. Adapting Kerckhoffs principle Kerckhoffs principle (KP) 1883 - Auguste Kerckhoffs in “La cryptographie militaire”: Design principles for (military) cipher systems: 1. The system must be practically, if not mathematically, indecipherable. 2. It should not require secrecy, and it should not be a problem if it falls into enemy hands. 3. It must be possible to communicate and remember the key without using written notes, and correspondents must be able to change or modify it at will. 4. It must be applicable to telegraph communications. 5. It must be portable, and should not require several persons to handle or operate. 6. Lastly, given the circumstances in which it is to be used, the system must be easy to use and should not be stressful to use or require its users to know and comply with a long list of rules. Translation from french to english: https://en.wikipedia.org/wiki/Kerckhoffs%27s_principle Slide 8 / 31 WAMOS 2018, Thorsten Knoll

  9. Adapting Kerckhoffs principle Kerckhoffs principle (KP) 1883 - Auguste Kerckhoffs in “La cryptographie militaire”: Design principles for (military) cipher systems: 2. It should not require secrecy, and it should not be a problem if it falls into enemy hands. Broader interpretation: A cryptosystem’s security must solely depend on keeping the keys secret, not the algorithms. Now known as “Kerckhoffs principle” (KP) Slide 9 / 31 WAMOS 2018, Thorsten Knoll

  10. Adapting Kerckhoffs principle Kerckhoffs principle (KP) Plaintext (Data) KEY Cryptosystem Open (Algorithms) Plaintext (Data) Secret Slide 10 / 31 WAMOS 2018, Thorsten Knoll

  11. Adapting Kerckhoffs principle Kerckhoffs principle (KP) 1949 - Claude E. Shannon: Reformulation of KP: The enemy knows the system. Design principle: A cryptosystem should be designed as if the enemy would already know the system. Now known as “Shannon’s maxim” (SM) Slide 11 / 31 WAMOS 2018, Thorsten Knoll

  12. Adapting Kerckhoffs principle Kerckhoffs principle (KP) 2002 - Bruce Schneier: ● Generalization for all secure systems. ● More secrets to be kept → More fragile. ● Less secrets to be kept → More robust. ● If algorithms, protocols, implementations have to be kept secret → They’re part of the (composite) key. ● How easily and costly is the replacing of compromised keyparts? ● Openness enables reviews and evaluation, implied a community. ● Design principle: Minimize the number of secrets in your security system. Slide 12 / 31 WAMOS 2018, Thorsten Knoll

  13. Adapting Kerckhoffs principle Kerckhoffs principle (KP) 2018 – Thorsten Knoll: Secure System Secret Open (Composite key) more fragile more robust KP Point Slide 13 / 31 WAMOS 2018, Thorsten Knoll

  14. Adapting Kerckhoffs principle Attacks and KP Attacks and KP Slide 14 / 31 WAMOS 2018, Thorsten Knoll

  15. Adapting Kerckhoffs principle Attacks and KP Since 2003: - Remote attacks are practical - Prime and Probe - Predicting secret keys via branch prediction - Cache games - Flush and reload - Evict and reload Since 2018: Spectre NG V3 Meldown, Branch- Spectre NG Spectre NG Spectre Scope V3a + V4 V1.1 V1+V2 TLBleed 2018 Jan Feb Mar Apr May Jun Jul Slide 15 / 31 WAMOS 2018, Thorsten Knoll

  16. Adapting Kerckhoffs principle Attacks and KP Actual CPUs Secret Open (Composite key) Before 2018 Slide 16 / 31 WAMOS 2018, Thorsten Knoll

  17. Adapting Kerckhoffs principle Attacks and KP Actual CPUs Secret Open (Composite key) Before 2018 Now Slide 17 / 31 WAMOS 2018, Thorsten Knoll

  18. Adapting Kerckhoffs principle Attacks and KP Actual CPUs Secret Compromised Open (Composite key) keyparts Before 2018 Now Slide 18 / 31 WAMOS 2018, Thorsten Knoll

  19. Adapting Kerckhoffs principle Mitigations and KP Mitigations and KP Slide 19 / 31 WAMOS 2018, Thorsten Knoll

  20. Adapting Kerckhoffs principle Mitigations and KP Mitigation strategies: ● In Software → Mostly open. ● Seems like a hot-fix for a bigger problem (in hardware). ● A lot of work in a small timeframe. ● Billions of affected devices sold. ● Not every attack vector is mitigatable in software. ● Call for openness arises: New ISA’s including timings. Slide 20 / 31 WAMOS 2018, Thorsten Knoll

  21. Adapting Kerckhoffs principle Mitigations and KP Attacks move the KP-Point Actual CPUs Secret Compromised Open (Composite key) keyparts Before 2018 Now Mitigations fill the gap Slide 21 / 31 WAMOS 2018, Thorsten Knoll

  22. Adapting Kerckhoffs principle The need for Open Source Hardware (OSH) The need for Open Source Hardware (OSH) Slide 22 / 31 WAMOS 2018, Thorsten Knoll

  23. Adapting Kerckhoffs principle The need for Open Source Hardware (OSH) 2018 – Sovereignty in IT: ● 60 pages, describing the actual state. ● Tons of examples: Hardware-Trojans, -Backdoors, -Killswitches. ● Defines 13 actionpoints to start with. ● Security can’t be added to hardware by software. ● If software is secure, the attacks target a level deeper (hardware). ● Design and production of silicon is closed by now and should be opened to gain back sovereignty. Slide 23 / 31 WAMOS 2018, Thorsten Knoll

  24. Adapting Kerckhoffs principle The need for Open Source Hardware (OSH) Secret (Composite key) Open Pre- Manu- Open Source EDA Tools production facturing Software (OSS) KP Point Wanted Slide 24 / 31 WAMOS 2018, Thorsten Knoll

  25. Adapting Kerckhoffs principle Conclusion: Adapting Kerckhoffs principle Conclusion: Adapting Kerckhoffs principle Slide 25 / 31 WAMOS 2018, Thorsten Knoll

  26. Adapting Kerckhoffs principle Conclusion: Adapting Kerckhoffs principle Conclusions: ● Attacks move the KP-Point by research, not by design. ● Mitigations fill the gap to secure systems again. ● Mitigations are necessary. Billions of devices sold. ● Kerckhoffs principle is adaptable for measuring the situation. ● More Openness doesn’t solve the actual situation, but in long term it could relax the short timeframe situation. ● A strong community is needed, for review and evaluation. ● Open Source Hardware is on the rise (RISC-V). Slide 26 / 31 WAMOS 2018, Thorsten Knoll

  27. Adapting Kerckhoffs principle Conclusion: Adapting Kerckhoffs principle Think ahead: ● NIST has gone the way of finding new cryptography algorithm standards through open, public competitions. ● Maybe we’ll see such a competition for PBUs, TLBs and PHTs in near future? Slide 27 / 31 WAMOS 2018, Thorsten Knoll

  28. Adapting Kerckhoffs principle Conclusion: Adapting Kerckhoffs principle Think ahead: ● NIST has gone the way of finding new cryptography algorithm standards through open, public competitions. ● Maybe we’ll see such a competition for PBUs, TLBs and PHTs in near future? ● Why would anyone build an i7 in Open Source? It might not even be possible. ● Instead putting the focus on massive parallelisation. Think about some thousand RISC-V on a single die. That would even be possible with FPGA prototyping in academia. Slide 28 / 31 WAMOS 2018, Thorsten Knoll

  29. Adapting Kerckhoffs principle Conclusion: Adapting Kerckhoffs principle The path: ● All of this is a path to more robust, secure and open systems. ● Going the presented path might take decades. Slide 29 / 31 WAMOS 2018, Thorsten Knoll

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend