Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
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

Maintenance and snapshotting

Now that the basis for the malware analysis VM has been set up, the tools installed, and everything is ready to go, it is important to ensure that the work does not have to be repeated each time we would like to dynamically analyze a new piece of malware.

If we simply detonated each piece of malware on top of the previous samples, it would confuse our indicators of compromise (IOCs), and we would likely be unable to tell what the result of a previous piece of malware was, what the result of the piece we were analyzing was, and what was just normal system activity.

VirtualBox has a built-in feature that has us covered – Snapshots. A snapshot is exactly as it sounds – a moment-in-time representation of how the VM's filesystem, registry, and other features existed precisely when that snapshot was taken. It allows an analyst to revert a VM to a time before it was purposely infected with malware.

To take a golden-image snapshot of our newly created malware analysis VM, we'll navigate to VirtualBox's main menu, click the hamburger button just to the right of our VM name, and then click Snapshots:

Figure 1.21 – The Snapshots pane to take, manage, and delete any snapshot taken of your VM

Figure 1.21 – The Snapshots pane to take, manage, and delete any snapshot taken of your VM

Once clicked, the snapshot pane opens, presenting us with the option to take a current snapshot and name it:

Analysis tip

It's best to have highly descriptive snapshot names so that you aren't left guessing and restoring snapshots blindly in an attempt to find the correct one.

Figure 1.22 – Taking our first snapshot

Figure 1.22 – Taking our first snapshot

When OK is clicked, the VM will pause for a few moments to take an image of the moment-in-time configuration and save it for later restoration. Once complete, we'll be able to see our snapshot in the list of available restore points in VirtualBox, as shown in the following screenshot:

Figure 1.23 – The snapshots panel in VirtualBox

Figure 1.23 – The snapshots panel in VirtualBox

Congratulations! You've created your malware analysis VM and ensured that we can continue to use it even after we detonate malware in it several times, returning it to its previous state with the click of a button.

Welcome to your home for the next 10 chapters.

Analysis tip

Snapshots aren't only great for keeping your VM clean! Initial vectors of malware (such as droppers) no longer work after a given period of time. If you have an infected instance of your VM that you think you'd like to study in the future and are unsure whether you'd be able to re-infect it, take a snapshot!

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 €18.99/month. Cancel anytime