Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Malware Analysis Techniques

You're reading from   Malware Analysis Techniques Tricks for the triage of adversarial software

Arrow left icon
Product type Paperback
Published in Jun 2021
Publisher Packt
ISBN-13 9781839212277
Length 282 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Dylan Barker Dylan Barker
Author Profile Icon Dylan Barker
Dylan Barker
Arrow right icon
View More author details
Toc

Table of Contents (17) Chapters Close

Preface 1. Section 1: Basic Techniques
2. Chapter 1: Creating and Maintaining your Detonation Environment FREE CHAPTER 3. Chapter 2: Static Analysis – Techniques and Tooling 4. Chapter 3: Dynamic Analysis – Techniques and Tooling 5. Chapter 4: A Word on Automated Sandboxing 6. Section 2: Debugging and Anti-Analysis – Going Deep
7. Chapter 5: Advanced Static Analysis – Out of the White Noise 8. Chapter 6: Advanced Dynamic Analysis – Looking at Explosions 9. Chapter 7: Advanced Dynamic Analysis Part 2 – Refusing to Take the Blue Pill 10. Chapter 8: De-Obfuscating Malicious Scripts: Putting the Toothpaste Back in the Tube 11. Section 3: Reporting and Weaponizing Your Findings
12. Chapter 9: The Reverse Card: Weaponizing IOCs and OSINT for Defense 13. Chapter 10: Malicious Functionality: Mapping Your Sample to MITRE ATT&CK 14. Section 4: Challenge Solutions
15. Chapter 11: Challenge Solutions 16. Other Books You May Enjoy

Isolating your environment

With our tooling installed, we no longer require internet access for most malware analysis. Analysis with a VM connected to the internet can pose several risks and should be avoided unless absolutely necessary. Risks associated with exposing your VM to the internet include the following:

  • Allowing attackers to directly interact with the target machine via command and control
  • Assisting in the wider propagation of worming malware to your network or others
  • Accidentally participating in illegal activities such as DDoS as a zombie, being utilized as a proxy for further hacking of targets, and more

For these reasons, it's important that we set our VM to be isolated by default and only expose it to the internet if absolutely necessary in order to further understand our malware. And even in instances such as these, take proper precautions.

Isolating your VM is a simple process, and only requires a few clicks. As before, we'll highlight our VM in VirtualBox, and then click the Settings icon as shown in the following screenshot:

Figure 1.19 – VirtualBox's Settings button will take you to the Settings pane

Figure 1.19 – VirtualBox's Settings button will take you to the Settings pane

With the Settings pane open, navigate to the Network pane. Here, we can select Host-only Adapter. This will limit the VM's network communication to just the host and prevent the spread of malware via the network to more sensitive endpoints.

Thankfully, other host isolation features such as Shared Folders and Shared Clipboard access are off by default in VirtualBox and do not require further configuration for VM isolation:

Figure 1.20 – Setting up Host-only Adapter

Figure 1.20 – Setting up Host-only Adapter

A word on executing with network activity

Occasionally, when examining malware samples, it is impossible to proceed without having an internet-connected VM. Droppers responsible for writing malware to disk often reach out to staging servers on the internet to download secondary stages, as opposed to writing them directly to disk from memory.

This can pose a challenge to an isolated VM and prevent an analyst from fully studying the execution of malware within an environment. Fortunately, it's possible to determine whether this access is required with a number of tools prior to enabling network access for your VM. These tools will be covered further in Chapter 3, Dynamic Analysis – Techniques and Tooling.

While VirtualBox does not necessarily have built-in mechanisms for safely executing in this manner, it's highly recommended that a separate network be set up, either physically or via a VLAN, for any dynamic malware analysis that requires network connectivity in order to function properly.

You have been reading a chapter from
Malware Analysis Techniques
Published in: Jun 2021
Publisher: Packt
ISBN-13: 9781839212277
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image