A Malware Analysis and Artifact Capture Tool Dallas Wright Dakota State University

Total Page:16

File Type:pdf, Size:1020Kb

A Malware Analysis and Artifact Capture Tool Dallas Wright Dakota State University Dakota State University Beadle Scholar Masters Theses & Doctoral Dissertations Spring 3-2019 A Malware Analysis and Artifact Capture Tool Dallas Wright Dakota State University Follow this and additional works at: https://scholar.dsu.edu/theses Part of the Information Security Commons, and the Systems Architecture Commons Recommended Citation Wright, Dallas, "A Malware Analysis and Artifact Capture Tool" (2019). Masters Theses & Doctoral Dissertations. 327. https://scholar.dsu.edu/theses/327 This Dissertation is brought to you for free and open access by Beadle Scholar. It has been accepted for inclusion in Masters Theses & Doctoral Dissertations by an authorized administrator of Beadle Scholar. For more information, please contact [email protected]. A MALWARE ANALYSIS AND ARTIFACT CAPTURE TOOL A dissertation submitted to Dakota State University in partial fulfillment of the requirements for the degree of Doctor of Philosophy in Cyber Operations March 2019 By Dallas Wright Dissertation Committee: Dr. Wayne Pauli Dr. Josh Stroschein Dr. Jun Liu ii iii Abstract Malware authors attempt to obfuscate and hide their execution objectives in their program’s static and dynamic states. This paper provides a novel approach to aid analysis by introducing a malware analysis tool which is quick to set up and use with respect to other existing tools. The tool allows for the intercepting and capturing of malware artifacts while providing dynamic control of process flow. Capturing malware artifacts allows an analyst to more quickly and comprehensively understand malware behavior and obfuscation techniques and doing so interactively allows multiple code paths to be explored. The faster that malware can be analyzed the quicker the systems and data compromised by it can be determined and its infection stopped. This research proposes an instantiation of an interactive malware analysis and artifact capture tool. iv Declaration I hereby certify that this dissertation constitutes my own product, that where the language of others is set forth, quotation marks so indicate, and that appropriate credit is given where I have used the language, ideas, expressions or writings of another. I declare that the dissertation describes original work that has not previously been presented for the award of any other degree of any institution. Signed, _____________________________ Dallas Wright v Table of Contents A MALWARE ANALYSIS AND ARTIFACT CAPTURE TOOL ............................................... i Abstract .......................................................................................................................................... iii Declaration ..................................................................................................................................... iv Table of Contents ............................................................................................................................ v List of Tables ............................................................................................................................... viii List of Figures ................................................................................................................................ ix CHAPTER ONE ............................................................................................................................. 1 Introduction ................................................................................................................................. 1 Problem Relevance ..................................................................................................................... 2 Problem Statement ...................................................................................................................... 3 Purpose Statement ....................................................................................................................... 3 Primary Research Questions ....................................................................................................... 4 Hypotheses .................................................................................................................................. 5 Theoretical Framework ............................................................................................................... 5 Research Design.......................................................................................................................... 6 Introduction Summary ................................................................................................................ 7 CHAPTER TWO ............................................................................................................................ 8 Literary Review .......................................................................................................................... 8 Review of Literature ................................................................................................................... 8 Literary Review Summary ........................................................................................................ 14 CHAPTER THREE ...................................................................................................................... 16 Application Design and Specifications ..................................................................................... 16 vi Research Approach ................................................................................................................... 16 Assumptions and Limitations ................................................................................................... 17 Malware Samples ...................................................................................................................... 18 Iterative Development ............................................................................................................... 19 Data Analysis ............................................................................................................................ 20 Application Overview ............................................................................................................... 24 Technical Specifications ........................................................................................................... 31 Major Functional Requirements ............................................................................................... 34 Application Design Summary ................................................................................................... 43 CHAPTER FOUR ......................................................................................................................... 44 MACT Evaluation ..................................................................................................................... 44 MACT Example Use................................................................................................................. 49 Preliminary Functional Testing................................................................................................. 53 Testing Process ......................................................................................................................... 54 Bypassing Anti-analysis Techniques with MACT ................................................................... 56 MACT Testing .......................................................................................................................... 59 MACT Malware Evaluation Case Studies ................................................................................ 60 Sample 1 – PUA .................................................................................................................... 60 Sample 2 - Trojan .................................................................................................................. 64 Sample 3 - PUA ..................................................................................................................... 68 Sample 4 - Worm ................................................................................................................... 74 Sample 5 - Ransomware ........................................................................................................ 82 Sample 6 - PUA ..................................................................................................................... 89 Sample 7 - Backdoor ............................................................................................................. 96 Sample 8 - Trojan ................................................................................................................ 101 vii Sample 9 - Virus .................................................................................................................. 104 Sample 10 - Worm ............................................................................................................... 111 Testing Summary .................................................................................................................... 114 CHAPTER FIVE ........................................................................................................................ 118 Conclusions and Recommendations ....................................................................................... 118 Overview ................................................................................................................................
Recommended publications
  • Advance Dynamic Malware Analysis Using Api Hooking
    www.ijecs.in International Journal Of Engineering And Computer Science ISSN:2319-7242 Volume – 5 Issue -03 March, 2016 Page No. 16038-16040 Advance Dynamic Malware Analysis Using Api Hooking Ajay Kumar , Shubham Goyal Department of computer science Shivaji College, University of Delhi, Delhi, India [email protected] [email protected] Abstract— As in real world, in virtual world also there are type of Analysis is ineffective against many sophisticated people who want to take advantage of you by exploiting you software. Advanced static analysis consists of reverse- whether it would be your money, your status or your personal engineering the malware’s internals by loading the executable information etc. MALWARE helps these people into a disassembler and looking at the program instructions in accomplishing their goals. The security of modern computer order to discover what the program does. Advanced static systems depends on the ability by the users to keep software, analysis tells you exactly what the program does. OS and antivirus products up-to-date. To protect legitimate users from these threats, I made a tool B. Dynamic Malware Analysis (ADVANCE DYNAMIC MALWARE ANAYSIS USING API This is done by watching and monitoring the behavior of the HOOKING) that will inform you about every task that malware while running on the host. Virtual machines and software (malware) is doing over your machine at run-time Sandboxes are extensively used for this type of analysis. The Index Terms— API Hooking, Hooking, DLL injection, Detour malware is debugged while running using a debugger to watch the behavior of the malware step by step while its instructions are being processed by the processor and their live effects on I.
    [Show full text]
  • Practical Malware Analysis
    PRAISE FOR PRACTICAL MALWARE ANALYSIS Digital Forensics Book of the Year, FORENSIC 4CAST AWARDS 2013 “A hands-on introduction to malware analysis. I’d recommend it to anyone who wants to dissect Windows malware.” —Ilfak Guilfanov, CREATOR OF IDA PRO “The book every malware analyst should keep handy.” —Richard Bejtlich, CSO OF MANDIANT & FOUNDER OF TAOSECURITY “This book does exactly what it promises on the cover; it’s crammed with detail and has an intensely practical approach, but it’s well organised enough that you can keep it around as handy reference.” —Mary Branscombe, ZDNET “If you’re starting out in malware analysis, or if you are are coming to analysis from another discipline, I’d recommend having a nose.” —Paul Baccas, NAKED SECURITY FROM SOPHOS “An excellent crash course in malware analysis.” —Dino Dai Zovi, INDEPENDENT SECURITY CONSULTANT “The most comprehensive guide to analysis of malware, offering detailed coverage of all the essential skills required to understand the specific challenges presented by modern malware.” —Chris Eagle, SENIOR LECTURER OF COMPUTER SCIENCE AT THE NAVAL POSTGRADUATE SCHOOL “A great introduction to malware analysis. All chapters contain detailed technical explanations and hands-on lab exercises to get you immediate exposure to real malware.” —Sebastian Porst, GOOGLE SOFTWARE ENGINEER “Brings reverse-engineering to readers of all skill levels. Technically rich and accessible, the labs will lead you to a deeper understanding of the art and science of reverse-engineering. I strongly believe this will become the defacto text for learning malware analysis in the future.” —Danny Quist, PHD, FOUNDER OF OFFENSIVE COMPUTING “An awesome book .
    [Show full text]
  • What Are Kernel-Mode Rootkits?
    www.it-ebooks.info Hacking Exposed™ Malware & Rootkits Reviews “Accessible but not dumbed-down, this latest addition to the Hacking Exposed series is a stellar example of why this series remains one of the best-selling security franchises out there. System administrators and Average Joe computer users alike need to come to grips with the sophistication and stealth of modern malware, and this book calmly and clearly explains the threat.” —Brian Krebs, Reporter for The Washington Post and author of the Security Fix Blog “A harrowing guide to where the bad guys hide, and how you can find them.” —Dan Kaminsky, Director of Penetration Testing, IOActive, Inc. “The authors tackle malware, a deep and diverse issue in computer security, with common terms and relevant examples. Malware is a cold deadly tool in hacking; the authors address it openly, showing its capabilities with direct technical insight. The result is a good read that moves quickly, filling in the gaps even for the knowledgeable reader.” —Christopher Jordan, VP, Threat Intelligence, McAfee; Principal Investigator to DHS Botnet Research “Remember the end-of-semester review sessions where the instructor would go over everything from the whole term in just enough detail so you would understand all the key points, but also leave you with enough references to dig deeper where you wanted? Hacking Exposed Malware & Rootkits resembles this! A top-notch reference for novices and security professionals alike, this book provides just enough detail to explain the topics being presented, but not too much to dissuade those new to security.” —LTC Ron Dodge, U.S.
    [Show full text]
  • Captain Hook: Pirating AVS to Bypass Exploit Mitigations WHO?
    Captain Hook: Pirating AVS to Bypass Exploit Mitigations WHO? Udi Yavo . CTO and Co-Founder, enSilo . Former CTO, Rafael Cyber Security Division . Researcher . Author on BreakingMalware Tomer Bitton . VP Research and Co-Founder, enSilo . Low Level Researcher, Rafael Advanced Defense Systems . Malware Researcher . Author on BreakingMalware AGENDA . Hooking In a Nutshell . Scope of Research . Inline Hooking – Under the hood - 32-bit function hooking - 64-bit function hooking . Hooking Engine Injection Techniques . The 6 Security Issues of Hooking . Demo – Bypassing exploit mitigations . 3rd Party Hooking Engines . Affected Products . Research Tools . Summary HOOKING IN A NUTSHELL . Hooking is used to intercept function calls in order to alter or augment their behavior . Used in most endpoint security products: • Anti-Exploitation – EMET, Palo-Alto Traps, … • Anti-Virus – Almost all of them • Personal Firewalls – Comodo, Zone-Alarm,… • … . Also used in non-security products for various purposes: • Application Performance Monitoring (APM) • Application Virtualization (Microsoft App-V) . Used in Malware: • Man-In-The-Browser (MITB) SCOPE OF RESEARCH . Our research encompassed about a dozen security products . Focused on user-mode inline hooks – The most common hooking method in real-life products . Hooks are commonly set by an injected DLL. We’ll refer to this DLL as the “Hooking Engine” . Kernel-To-User DLL injection techniques • Used by most vendors to inject their hooking engine • Complex and leads security issues Inline Hooking INLINE HOOKING – 32-BIT FUNCTION HOOKING Straight forward most of the time: Patch the Disassemble Allocate Copy Prolog Prolog with a Prolog Code Stub Instructions JMP INLINE HOOKING – 32-BIT FUNCTION HOOKING InternetConnectW before the hook is set: InternetConnectW After the hook is set: INLINE HOOKING – 32-BIT FUNCTION HOOKING The hooking function (0x178940) The Copied Instructions Original Function Code INLINE HOOKING – 32-BIT FUNCTION HOOKING .
    [Show full text]
  • HP Remote Graphics Software User Guide 5.4.5 © Copyright 2011 Hewlett-Packard Development Company, L.P
    HP Remote Graphics Software User Guide 5.4.5 © Copyright 2011 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. The only warranties for HP products and services are set forth in the express warranty statements accompanying such products and services. Nothing herein should be construed as constituting an additional warranty. HP shall not be liable for technical or editorial errors or omissions contained herein. The HP Remote Graphics Sender for Windows uses Microsoft Detours Professional 2.0. Detours is Copyright 1995-2004, Microsoft Corporation. Portions of the Detours package may be covered by patents owned by Microsoft corporation. Microsoft, Windows, Windows XP, Windows Vista and Windows 7 are registered trademarks or trademarks of Microsoft Corporation in the U.S. and other countries. Intel is a registered trademark of Intel Corporation or its subsidiaries in the U.S. and other countries. Part number: 601971–002 Second edition: January 2011 Acknowledgments HP Remote Graphics Software was developed using several third party products including, but not limited to: OpenSSL: This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit (http://www.openssl.org/). This product includes software written by Tim Hudson ([email protected]). This product includes cryptographic software written by Eric Young ([email protected]) Jack Audio Connection Kit (JACK): JACK is a low-latency audio server, written for POSIX conformant operating systems such as GNU/Linux and Apple's OS X. JACK is released in source code format under the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1, February 1999.
    [Show full text]
  • PRACTICAL MALWARE ANALYSIS. Copyright © 2012 by Michael Sikorski and Andrew Honig
    PRAISE FOR PRACTICAL MALWARE ANALYSIS “An excellent crash course in malware analysis.” —Dino Dai Zovi, INDEPENDENT SECURITY CONSULTANT “. the most comprehensive guide to analysis of malware, offering detailed coverage of all the essential skills required to understand the specific challenges presented by modern malware.” —Chris Eagle, SENIOR LECTURER OF COMPUTER SCIENCE, NAVAL POSTGRADUATE SCHOOL “A hands-on introduction to malware analysis. I'd recommend it to anyone who wants to dissect Windows malware.” —Ilfak Guilfanov, CREATOR OF IDA PRO “. a great introduction to malware analysis. All chapters contain detailed technical explanations and hands-on lab exercises to get you immediate exposure to real malware.” —Sebastian Porst, GOOGLE SOFTWARE ENGINEER “. brings reverse-engineering to readers of all skill levels. Technically rich and accessible, the labs will lead you to a deeper understanding of the art and science of reverse-engineering. I strongly recommend this book for beginners and experts alike.” —Danny Quist, PHD, FOUNDER OF OFFENSIVE COMPUTING “If you only read one malware book or are looking to break into the world of malware analysis, this is the book to get.” —Patrick Engbretson, IA PROFESSOR, DAKOTA STATE UNIVERSITY AND AUTHOR OF The Basics of Hacking and Pen Testing “. an excellent addition to the course materials for an advanced graduate level course on Software Security or Intrusion Detection Systems. The labs are especially useful to students in teaching the methods to reverse-engineer, analyze, and understand malicious software.” —Sal Stolfo, PROFESSOR, COLUMBIA UNIVERSITY WARNING This is a book about malware. The links and software described in this book are malicious. Exercise extreme caution when executing unknown code and visiting untrusted URLs.
    [Show full text]
  • Architecture for Analyzing Potentially Unwanted Applications
    Architecture for analyzing Potentially Unwanted Applications Alberto Geniola School of Science Thesis submitted for examination for the degree of Master of Science in Technology. Espoo 10.10.2016 Thesis supervisor: Prof. Tuomas Aura Thesis advisor: M.Sc. Markku Antikainen aalto university abstract of the school of science master’s thesis Author: Alberto Geniola Title: Architecture for analyzing Potentially Unwanted Applications Date: 10.10.2016 Language: English Number of pages: 8+149 Department of Computer Science Professorship: Information security Supervisor: Prof. Tuomas Aura Advisor: M.Sc. Markku Antikainen The spread of potentially unwanted programs (PUP) and its supporting pay par install (PPI) business model have become relevant issues in the IT security area. While PUPs may not be explicitly malicious, they still represent a security hazard. Boosted by PPI companies, PUP software evolves rapidly. Although manual analysis represents the best approach for distinguishing cleanware from PUPs, it is inapplicable to the large amount of PUP installers appearing each day. To challenge this fast evolving phenomenon, automatic analysis tools are required. However, current automated malware analisyis techniques suffer from a number of limitations, such as the inability to click through PUP installation processes. Moreover, many malware analysis automated sandboxes (MSASs) can be detected, by taking advantage of artifacts affecting their virtualization engine. In order to overcome those limitations, we present an architectural design for imple- menting a MSAS mainly targeting PUP analysis. We also provide a cross-platform implementation of the MSAS, capable of running PUP analysis in both virtual and bare metal environments. The developed prototype has proved to be working and was able to automatically analyze more that 480 freeware installers, collected by the three top most ranked freeware websites, such as cnet.com, filehippo.com and softonic.com.
    [Show full text]
  • No. BOWLING GREEK STATE Unwersiw LIBRARY
    No. IRVING WALLACE: THE MAKING OF A BESTSELLER W. John Leverence A Dissertation Submitted to the Graduate School of Bowling Green State University in partial fulfillment of the requirements for the degree of DOCTOR OF PHILOSOPHY -June 1974 Approved by Doctoral Committee (/3. Advisor Department of English Graduate School Representative &-S-7} Janus ia£\^ BOWLING GREEK STATE UNWERSiW LIBRARY il ABSTRACT Having served as a newspaperman, a foreign correspondent during World War II, a major participant in the famous "Why We Fight Series" for the Army Signal Corps, a magazine writer, a studio contract writer, and a novelist, Irving Wallace's career is a number of careers in amal­ gam. During any stage of his life as a professional writer he could be considered a paradigm by which one could learn of the problems and pos­ sibilities of that area of professional writing. How he achieved his position as one of the world's most successful writers is a remarkable story, not only of Irving Wallace, but of the structures of success and failure in the day-to-day world of American commercial writers. In late January, 1973, Irving Wallace began depositing manuscripts, letters and ephemera in the archives of The Center For The Study of Popular Culture, Bowling Green University. This study is based upon those materials and further information provided this researcher by Mr. Wallace. This study concluded that the novels of Irving Wallace are the­ matic and structural extensions of his careers in journalism and film writing. The craft and discipline of journalism and film writing served him well in his apprenticeship as a writer, but were finally restrictive to him because of their commercial nature.
    [Show full text]
  • Detouring Program Execution in Binary Applications Meng Final Report
    Detouring program execution in binary applications MEng Final Report Mike Kwan mk08 Department of Computing, Imperial College London [email protected] Supervisor: Dr. Cristian Cadar Co-supervisor: Petr Hosek Second marker: Dr. Paolo Costa June 19, 2012 Abstract Extending an existing system and altering its behaviour are tasks conventionally associated with modification of source code. At this level, such changes are trivial but there are many cases where there is either no access to source code or it is not feasible to modify the system from that level. We investigate the possibilities and challenges of providing a solution to this problem on the x86-32 and x86-64 Linux platforms. We present libbf, an elegant and lightweight solution using binary rewriting to provide a user with the ability to modify behaviour and weave new functionality into existing systems. We demonstrate its effectiveness on production systems by evaluating it on large-scale real-world software. Acknowledgements I would like to thank the following people: My supervisor Dr. Cristian Cadar, for his consistent advice, suggestions and guidance throughout. My co-supervisor Petr Hosek, for the many thorough discussions, invaluable report feedback and his constant enthusiasm. My second marker Dr. Paolo Costa, for spending time to give feedback on the various drafts of the report. Contents 1 Introduction 3 1.1 Requirements . .4 1.2 Contributions . .6 1.3 Report Structure . .6 2 Background 7 2.1 Detouring . .7 2.1.1 Trampoline . .8 2.2 Executable Life Cycle . .9 2.2.1 Compiling . .9 2.2.2 Static Linking . .9 2.2.3 Dynamic Linking .
    [Show full text]
  • Liu Dissertation 2011.Pdf
    Multi-level Sandboxing Techniques for Execution-based Stealthy Malware Detection A dissertation submitted in partial ful¯llment of the requirements for the degree of Doctor of Philosophy at George Mason University By Lei Liu Master of Science Huazhong University of Science and Technology, 1999 Bachelor of Science Huazhong University of Science and Technology, 1996 Director: Songqing Chen, Associate Professor Department of Computer Science Spring Semester 2011 George Mason University Fairfax, VA Copyright °c 2011 by Lei Liu All Rights Reserved ii Dedication I dedicate this dissertation to my parents Zuoxun Liu and Dingfeng Luo. iii Acknowledgments I would like to thank the following people who made this possible. I would like to thank my advisor Dr. Songqing Chen, who has spent so much of his time directing this dissertation work. It would have been impossible without his guidance and support. My gratitude also goes to Dr. Sanjeev Setia, Dr. Brian L. Mark, Dr. Fei Li, and Dr. Yutao Zhong who served on my dissertation committee and gave me their invaluable input. I would also like to thank Dr. Hassan Gomaa for his advice on my dissertation presen- tation, as well as Drs. Xinwen Zhang, Guanhua Yan, Xinyuan Wang, and Zhao Zhang for their advice and collaboration in several research projects during my Ph.D. study. I would also express my appreciation to my lab mates Dongyu Liu and Yao Liu for their help and collaboration, and to my friends I met at George Mason University: Fayin Li, Haidong Lu, Yifan Liu, Bo Zhang, and Baoxian Zhao, just to name a few.
    [Show full text]
  • City of Verona 111 Lincoln Street Verona, WI 53593-1520 COMMON COUNCIL Monday, February 22, 2021 – 7:00 P.M
    City of Verona 111 Lincoln Street Verona, WI 53593-1520 COMMON COUNCIL Monday, February 22, 2021 – 7:00 P.M. www.ci.verona.wi.us Due to the COVID-19 pandemic, the Verona Common Council will hold its meeting as a virtual meeting. The Common Council will not meet at City Hall, 111 Lincoln Street. Members of the Common Council and Staff will join the meeting by using Zoom Webinar, as described immediately below. Members of the public can join the meeting using Zoom Webinar via a computer, tablet, or smartphone, or by calling into the meeting using phones, as described immediately below. Those requiring toll-free options are asked to contact City Hall for details prior to the meeting at [email protected] or 608-848-9941. Join the meeting via computer, tablet, or smart phone: https://zoom.us/j/91020919879 Webinar ID: 910 2091 9879 Join the meeting via phone by dialing: 312-626-6799 Webinar ID: 910 2091 9879 Watch live on the City’s YouTube Channel: https://www.youtube.com/user/VeronaWIMeetings The online meeting agenda and all support materials can be found at https://www.ci.verona.wi.us/. In addition to the public, all Council members and staff will also be participating remotely. Anyone with questions prior to the meeting may contact the City at (608) 848-9941 or [email protected]. PUBLIC SPEAKING INSTRUCTIONS WRITTEN COMMENTS: You can send comments to the City Council on any matter, either on or not on the agenda, by emailing [email protected] or in writing to Common Council, 111 Lincoln Street., Verona, WI, 53593.
    [Show full text]
  • Here May Easily Be Over a Hundred of Restaurants Within a 15 Minutes Walk from the Marriott
    i ECOOP’15 / CurryOn Prague Programme 29th edition, July 5–10 - ii Contents 1 General Information 1 1.1 Welcome to Prague........................................1 1.2 Organisation...........................................2 1.2.1 Programme Chair....................................2 1.2.2 Programme Committee.................................2 1.2.3 Artifact Evaluation Committee Chairs.........................2 1.2.4 Artifact Evaluation Committee.............................2 1.2.5 Organising Committee..................................3 1.2.6 Official Sponsors of ECOOP 2015............................4 1.3 Useful Information........................................5 1.3.1 Conference Address...................................5 1.3.2 Registration Desk....................................5 1.3.3 Badge Policy.......................................5 1.3.4 Internet Access......................................5 1.3.5 ECOOP Proceedings...................................6 1.3.6 Dahl–Nygaard Awards..................................6 1.3.7 ECOOP Distinguished Paper..............................6 1.3.8 ECOOP Distinguished Artifacts............................6 1.3.9 Restaurants........................................6 1.3.10 Taxi Companies.....................................8 1.3.11 Transportation......................................8 1.3.12 Safety...........................................8 1.3.13 Currency.........................................9 1.3.14 Power...........................................9 1.3.15 Emergency........................................9
    [Show full text]