Vulnerability Discovery for Encrypted Protocol Based on Fuzz-testing

Author
ZhuZhiJun
Advisor
ZhangAiFang
School
Huazhong University of Science and Technology
Major
Computer technology
Classification
TP393.08 Computer Network Security
Degree
Master's thesis
Year
2012
Downloads
70
Citations
0

Request the full text

Abstract

21century is an era of information and networking, more and more information isexchanged through the Internet, Software vulnerabilities are increasing, and the damagecaused by these vulnerabilities is very serious. To protect the information security, moreand more software are going to encrypt their protocols. Malware writers also use encryptionto protect themselves from being reversed by security researchers. Reverse engineering onencrypted protocols can contribute to software analysis, it is also the base of vulnerabilitydigging. But now, work on reverse engineering of encrypted protocols is not perfect, thereis also no good way to discover vulnerabilities on encrypted protocols, so there is still a lotof work to do on these aspects.The first step to reverse the format of encrypted protocols is to find the decryptionfunctions, and then find the decrypted message, the last step is to analyze the protocolformat. Existing work on finding decryption functions have a lot of disadvantages, for thesedisadvantages we improved the method of finding decryption functions. On the one handwe used taint analysis and combined the function fragments belonging to the same function,on the other hand we used two new methods “relevance” and “calculate strength” to furtherfilter out decryption functions.“relevance” is used to filter the functions who have onlyhandled only part of the received encrypted messages.“calculate strength” is used to filterthe functions whose computational complexity is low. On using these new methods, we cangreatly reduce false positives on suspected decryption functions.The work on reverse engineering of encrypted protocols has not only pointed out thelocation of decrypted message, but also got the length of this message. Base on these results,we pioneered the method of fuzz-testing of encrypted protocols by usingin-memory-fuzzing. We can mutate the data in the decrypted buffer base on the reversedprotocol format.We have implemented a system for locating decryption functions based on existingdynamic taint tracing platform, we also implemented a system for fuzz-testing encryptedprotocols. We have tested different kinds of software including chat software and encryptedproxy server. Compared with previous work, for most of the tested software our improvedmethod is better than previous method. In order to prove the effectiveness of fuzz-testing onencrypted protocols, we have used the method to test a vulnerability on shttpd web server.Results show that our method for fuzz-testing of encrypted protocols is correct andeffective.

Table of contents

Summary 4-5 Abstract 5-9 1 Introduction 9-15 1.1 Background 9-10 <br / > 1.2 domestic and foreign research status 10-13 1.3 The main contents 13-14 1.4 thesis structure 14-15 2 encryption protocol format analysis and fuzzy memory test 15-25 2.1 dynamic taint analysis and protocol format reverse 15 2.2 decrypted buffer positioning principle 15-21 <br / > 2.3 encryption protocol format analysis 21 2.4 memory fuzzing 21-24 2.5 Summary 24-25 3 encryption protocol fuzzing design ideas 25-34 3.1 encryption protocol fuzzing process 25-26 3.2 decryption function improvement and innovation positioning method 26-29 <br / > 3.3 encryption protocol fuzzing memory for 29-33 3.4 Summary fuzzing 33-34 4 encryption protocol implementations 34-45 4.1 encryption protocol fuzzing overall process 34 4.2 Trace generation module 34-36 4.3 buffer decryption function positioning and orientation 36-40 4.4 sources and formats to re-mark analysis 40-41 4.5 memory fuzzing 41-44 4.6 Summary 44-45 5 experiments and analysis 45-54 5.1 test object 45-46 5.2 decrypted buffer positioning 46-50 5.3 format analysis 50-51 5.4 memory fuzzing 51-53 5.5 summary 53-54 6 summary and Outlook 54-56 6.1 Full Summary 54 6.2 Prospects 54-56 Thanks 56-57 References 57-60

Related dissertations

  1. Multi-vehicle Convoy Analysis Based on ANPR Data
    HuangKeJun ·Hunan University ·2013 ·Master's thesis
  2. Design and Realization of Online-Bank Based on the Public Key Infrastructure
    CongZuo ·Hunan University ·2013 ·Master's thesis
  3. The Design and Implementation of Military Chat System
    SuGuangHui ·Shandong University ·2013 ·Master's thesis
  4. Image Encryption Algorithm Based on Chaos System Scrambling and Radon Transforms Scrambling
    WuJingJing ·Harbin Institute of Technology ·2012 ·Master's thesis
  5. Analysis and Improvement of Data Encryption Algorithms
    ZhaoXu ·Harbin Institute of Technology ·2012 ·Master's thesis
  6. Research and Implemention of Software Copyright Protection
  7. The Study of PCIe Interface Encryption Card Driver under the Linux
  8. Study on Encryption with Computer Generated Hologram
    LiuJian ·Zhejiang Normal University ·2013 ·Master's thesis
  9. Design and Implementation of Video Image Encryption System Based on3DES Algorithm IP Core
    LiMengYao ·Northeastern University ·2013 ·Master's thesis
  10. Image Encryption in Hybrid Domains Based on Improved Baker Transform and Generalized Xor
    LiuYunLong ·Harbin Institute of Technology ·2013 ·Master's thesis
  11. The Design of File Safe for Android Mobile
    ZhangZuo ·Sichuan Normal University ·2013 ·Master's thesis
  12. Research of QR Code Encryption Method Based on Cellular Automata
  13. A Mobile Access Security System Based on Android
  14. Authenticated Analysis and Applied Research about EAP-TLS in802.11i
    ZhouTao ·Central South University ·2013 ·Master's thesis
  15. Rescarch and Implementation of Security Classification-based Encryption and Detection in Mobile Ad Hoc Networks
    ZhangYanYan ·Northeastern University ·2013 ·Master's thesis
  16. Research on H.264Video Encryption Algorithm
    ZhangJiaZuo ·Northeastern University ·2013 ·Master's thesis
  17. Data Encryption and Decryption Design of AES Algorithm Based on FPGA
  18. The Research of Information Security in the Private IP Network
  19. Research on key issues of GML data compression, encryption and its application in mobile GIS
    WuHuaRong ·Jiangxi University of Technology ·2013 ·Master's thesis
  20. Research on Generation,Analysis and Application of Complicatied Hyper-Chaotic System