Book Image

Malware Analysis Techniques

By : Dylan Barker
Book Image

Malware Analysis Techniques

By: Dylan Barker

Overview of this book

Malicious software poses a threat to every enterprise globally. Its growth is costing businesses millions of dollars due to currency theft as a result of ransomware and lost productivity. With this book, you'll learn how to quickly triage, identify, attribute, and remediate threats using proven analysis techniques. Malware Analysis Techniques begins with an overview of the nature of malware, the current threat landscape, and its impact on businesses. Once you've covered the basics of malware, you'll move on to discover more about the technical nature of malicious software, including static characteristics and dynamic attack methods within the MITRE ATT&CK framework. You'll also find out how to perform practical malware analysis by applying all that you've learned to attribute the malware to a specific threat and weaponize the adversary's indicators of compromise (IOCs) and methodology against them to prevent them from attacking. Finally, you'll get to grips with common tooling utilized by professional malware analysts and understand the basics of reverse engineering with the NSA's Ghidra platform. By the end of this malware analysis book, you’ll be able to perform in-depth static and dynamic analysis and automate key tasks for improved defense against attacks.
Table of Contents (17 chapters)
Section 1: Basic Techniques
Section 2: Debugging and Anti-Analysis – Going Deep
Section 3: Reporting and Weaponizing Your Findings
Section 4: Challenge Solutions

Chapter 5 – Advanced Static Analysis – Out of the White Noise

In Chapter 5, we discussed the more advanced points of static analysis utilizing the NSA's Ghidra and other tools to ascertain information about an executable without running it. The answers to the questions posed are as follows:

  1. The sample is packed with the UPX packer.
  2. The PE is a Windows .exe file.
  3. The raw size of the text section is 00010000.
  4. There are several modules and functions imported that you could have chosen – however, one may have caught your eye as it did mine: SetWindowsHookExA.
  5. The arguments passed are as follows:

    EDI (0) for dwThreadId

    The current handle for the binary

    0xd – which corresponds to WH_KEYBOARD_LL for the idHook argument

  6. You'd be more hard-pressed to find out what this executable can't do. However, based solely on static analysis, we can assume that it can read and write registry keys; read, write, and delete files; download...