Micro-architectural Attacks and Countermeasures

Author
LuShiTing
Advisor
HanJun , ZengXiaoYang
School
Fudan University
Major
Microelectronics and Solid State Electronics
Classification
TP309 Security and confidentiality
Degree
Master's thesis
Year
2010
Downloads
37
Citations
0

Request the full text

Abstract

Micro-architectural analysis (MA) is a fast evolving area of side-channel cryptanalysis. This new area focuses on the effects of common processor components and their functionalities on the security of software cryptosystems. The main characteristic of micro-architectural attacks, which sets them aside from classical side-channel attacks, is the simple fact that they exploit the micro-architectural behavior of modern computer systems. Attackers could get running information through malicious software, then get some sensitive information through off-line analysis. This kind of attack has the following features:1.) side channel information are acquired through software measurement on target machine with no need to use sophisticated devices.2.) non-privilege process could get the running information of the privilege process.3.) people can mount both a remote attack and local attack.This thesis mainly focuses one kinds of these attacks, data cache based timing attacks(CBTA). First, the main principle of CBTA is introduced, and several kinds of CBTA technique are discussed. Moreover, theoretical model is given under some attacks. Second, various countermeasures are described and their advantages and disadvantages are pointed out. Based on these discussions, the author proposes two anti-attack measures using hardware modification. Aiming at access-driven attacks, a XOR address remapping technique is proposed, which could obfuscate the mapping relationship between cache line and memory block. Aiming at timing-driven attacks, the IPMG mechanism is proposed innovatively. This mechanism could generate cache miss dynamically through observing the historic miss rate. These two mechanisms are realized on the MIPS processor and their effectiveness is verified on the FPGA board. At last, performance penalty and hardware cost are evaluated. The result shows that the proposed solution is effective with very low performance penalty and area cost.

Table of contents

Abstract 3-4 summary 4-9 Chapter 1 Introduction 9-17 1.1 Information Security and Cryptography 9-10 1.2 Side Channel Attacks 10-12 1.3 Micro-architectural Analysis Attack 12-15 1.4 Layout of This Thesis 15-17 Chapter 2 Cache Based Timing Attack and Mathematical Modeling 17-34 2.1 Fundamentals of CBTA 17-22 2.1.1 Memory Hierarchy and Cache Structure 17-20 2.1.2 AES Algorithm 20-22 2.2 Software Implementation of AES 22-23 2.3 Access Driven CBTA 23-26 2.4 Trace Driven CBTA 26 2.5 Timing Driven CBTA 26-31 2.5.1 Differential Analysis 27-30 2.5.2 Correlation Analysis 30-31 2.6 Typical Attack Flow 31-33 2.7 Summary 33-34 Chapter 3 Anti-attack Measures to Thwart CBTA 34-50 3.1 Related Work about Thwarting CBTA 34-37 3.1.1 Countermeasures against Access Driven Attack 34-35 3.1.2 Countermeasures against Time Driven Attack 35 3.1.3 Pros and Cons for Using Small Lookup Table 35-37 3.2 Countermeasure Aiming at Access-Driven Attacks 37-40 3.2.1 Threat Model 37-38 3.2.2 The Permutation Logic 38-40 3.2.3 The Task Oriented Random Permutation 40 3.3 Countermeasure Aiming at Timing-driven Attacks - IPMG 40-48 3.3.1 Threat Model and Mathematical Analysis 41-43 3.3.2 Induced Pseudo-Miss Generation (IPMG) 43-47 3.3.3 ISA Extension and Accurate Miss Rate Recording 47-48 3.4 Prefetch Mechanism 48-49 3.5 AES Specific Instruction Set Extension 49-50 Chapter 4 Implementation of Counter-measures on MIPS Processor 50-59 4.1 Structure of MIPS processor 50-52 4.2 Security Modules 52-58 4.2.1 Remapping Module 52-54 4.2.2 IPMG module 54-57 4.2.3 AES Extension on MIPS 57-58 4.3 Summary 58-59 Chapter 5 Verification and Evaluation 59-74 5.1 Test Environment 59-60 5.2 Design of test software 60-62 5.3 Effectiveness of the Proposed Solutions 62-70 5.3.1 Access driven attack 64 5.3.2 First round attack 64-66 5.3.3 Final round attack 66-68 5.3.4 Correlation analysis 68-70 5.4 Evaluation of Performance Loss and Area Cost 70-71 5.5 ISE Tape out Result 71-73 5.6 Summary 73-74 Chapter 6 Conclusion 74-76 References 76-80 Publications 80-81 Acknowledgements 81-82

Related dissertations

  1. AES Algorithm Using S-Box in GPRS Network
    Ahmed Jawad Al-Bdairi ·Hunan University ·2012 ·Master's thesis
  2. Research on the Security of RFID System
    LiuJinHe ·North China Electric Power University ·2012 ·Master's thesis
  3. Research and implementation of windows encryption secure image transmission based on
  4. The Problems of S&T Policy Making, Causes and Countermeasures in Chengdu
  5. Problem and Countermeasure Research on the Major Scientific and Technological Projects Supervision of Hunan Province
    LuoLiHuaLei ·Central South University ·2012 ·Master's thesis
  6. Research on Developing Trends、Problems and Countermeasures of Chinese Nternational Technology Cooperation
    DingZuo ·Zhengzhou University ·2013 ·Master's thesis
  7. Current Situation and Countermeasures of Chinese Technical Standardization
  8. Research on Financial Auditing Based on the Perspective of National Governance
  9. The Major Problem of Promoting Chinese Government Preformance Audit and the Countermeasure
    HaoJuan ·Shanghai Jiaotong University ·2010 ·Master's thesis
  10. The Research of Problems on Mianyang Official Performance Audit and Related Countermeasures
    LiYu ·Southwest Jiaotong University ·2013 ·Master's thesis
  11. Information Systems, Internal Audit Risk and Countermeasures
    LiYingZuo ·Liaoning Normal University ·2013 ·Master's thesis
  12. The Issues and Countermeasures Research in Economic Accountability Audit in Anhui Province
  13. Problems and Countermeasures Research of Local Audit Institutions in the Process of Transformation
    ZhangJing ·Suzhou University ·2012 ·Master's thesis
  14. Accounting Integrity Problems and Managerial Solutions Research
    GuiDeJun ·Northwest Normal University ·2013 ·Master's thesis
  15. The Research on Problems of CPA Audit Quality in China
    LiZuo ·Shanxi University of Finance ·2014 ·Master's thesis
  16. The Research of China’s Public Pension Management in the Government Failure Perspective
    NiuYun ·Hubei University ·2013 ·Master's thesis
  17. Jiangxi Agricultural Insurance Research
    LiuLiLi ·Nanchang University ·2013 ·Master's thesis
  18. Study on Asricultura] Machinery Insurance Current Situation and Development Countermeasure
    ZhaoYu ·Henan Agricultural University ·2013 ·Master's thesis
  19. Study of Policy-related Agricultural Insurance in Henan Province
  20. A Study on the Greenhouse Insurance of China
    ZhangXiaoJie ·Dongbei University of Finance ·2013 ·Master's thesis