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
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
- AES Algorithm Using S-Box in GPRS Network
- Research on the Security of RFID System
- Research and implementation of windows encryption secure image transmission based on
- The Problems of S&T Policy Making, Causes and Countermeasures in Chengdu
- Problem and Countermeasure Research on the Major Scientific and Technological Projects Supervision of Hunan Province
- Research on Developing Trends、Problems and Countermeasures of Chinese Nternational Technology Cooperation
- Current Situation and Countermeasures of Chinese Technical Standardization
- Research on Financial Auditing Based on the Perspective of National Governance
- The Major Problem of Promoting Chinese Government Preformance Audit and the Countermeasure
- The Research of Problems on Mianyang Official Performance Audit and Related Countermeasures
- Information Systems, Internal Audit Risk and Countermeasures
- The Issues and Countermeasures Research in Economic Accountability Audit in Anhui Province
- Problems and Countermeasures Research of Local Audit Institutions in the Process of Transformation
- Accounting Integrity Problems and Managerial Solutions Research
- The Research on Problems of CPA Audit Quality in China
- The Research of China’s Public Pension Management in the Government Failure Perspective
- Jiangxi Agricultural Insurance Research
- Study on Asricultura] Machinery Insurance Current Situation and Development Countermeasure
- Study of Policy-related Agricultural Insurance in Henan Province
- A Study on the Greenhouse Insurance of China