Preliminary tasks
In this lab, you will dive into reverse engineering and malware analysis. These exercises are designed to help you understand how to dissect malicious software, examine its behaviour, and identify potential threats. We recommend reading the following materials to get familiar with the topics.
For the first task
Install and experiment with Ghidra. Ghidra is a powerful software reverse engineering framework created and maintained by the National Security Agency (NSA). It helps in analysing raw binary files and gives you a better understanding of what the file in question does.
This lab only provides a brief overview of reverse engineering. If you are interested in learning more, you can read this e-book, which includes tutorials covering x86, x86_64, 32-bit ARM, and 64-bit ARM architectures.
For the second and third tasks
What are macros in Office documents, and why could they pose a threat? How do these malicious documents work?
What about PDF files?
Take a look at the SANS DFIR short guide for analysing malicious documents. This guide introduces some of the tools we will use in this lab.
Further reading about malicious PDF and Office documents is available here. It is long but quite comprehensive. (Available in the university network, or accessible via VPN or SSH tunnelling.)
Optional: More documentation from the author of the macro-based tools used in this lab is available on the oletools project page.
For the fourth task
These resources provide useful background on the purpose of the executable:
What is a DDoS attack? How does it work, and what can it do?
What is a botnet? What are botnets, and what are they used for?
We will decompile a .NET executable to see how malware works at the source-code (C#) level, so there will be some source code reading ahead!
For the last task
Read a primer on different types of malware analysis.
Review the definition and purpose of a security sandbox from NIST.
If you are not familiar with packet capture and traffic inspection, consult the Wireshark user guide.
For volatile memory analysis, consult the Volatility 3 documentation. While the automated laboratory environment handles initial capture, Volatility can also be used directly on the memory dump.
The mutantscan plugin documentation covers scanning for mutexes in a memory image. For background on what mutexes are at the operating system level, see Microsoft’s documentation on mutex objects.
WannaCry spread by exploiting a vulnerability in SMBv1; the original Microsoft security bulletin MS17-010 describes the affected software. You can compare the domain you find in the binary against the indicators published by CISA.
Background
Malicious programs are potentially harmful to almost every internet user. One notorious historical example is the Emotet malware family. In August 2020, the Finnish National Cyber Security Centre (NCSC-FI) released a yellow-level warning highlighting the substantial risk the malware posed to organisations. A coordinated international law enforcement effort disrupted Emotet’s global infrastructure in January 2021, though it remains a classic case study in modular malware architecture. You can learn more about its operations in this CISA cybersecurity advisory.
There are many ways for malware to spread. This lab focuses on a common tactic that relies on user interaction: email attachments. An innocent-looking attachment in an innocent-looking email can easily contain something you did not expect. The attachment content is usually designed to resemble everyday correspondence that recipients feel compelled to open, such as invoices, receipts, or legal notices. While Microsoft has since disabled VBA macros by default for documents originating from the internet, malicious documents and PDF files remain widely used delivery vectors, and archive containers such as ZIP or ISO files packaging malicious scripts remain common. The ENISA Threat Landscape 2026 notes that social engineering and phishing continue to be common enabling tactics.
Emotet was primarily known as an information stealer. It acted as a remote access trojan (RAT) on the computer and could receive arbitrary commands to carry out actions on infected machines. An information stealer RAT is designed to steal information from the infected machine, typically by logging keystrokes, taking screenshots, and exfiltrating files. Emotet was also well known for its ability to download and install additional malware.
This lab is based on similar scenarios. A malicious document can do far more on your computer than you might think! However, the files here are safe educational samples, although some antivirus products may flag them. We recommend handling them in a Linux-based environment.
[!WARNING] With one exception: the malware in the final task (WannaCry) is real ransomware and must never be executed on a Windows machine! Even better, keep it completely off your Windows host machine. Exercise extreme caution!
In the first task, we begin by taking a brief look at reversing a simple x86_64 ELF binary.
In the second task, we try to identify whether a PDF or Office document is clean or malicious, and analyse what suspicious activities it performs.
In the third task, we examine an .eml file (a saved email message) and analyse its attachment.
In the fourth task, we analyse a payload that the attachment in the previous task attempts to download and install. This executable was part of a real-life incident used to deploy a botnet for DDoS attacks against Finnish government websites and other targets. The malware was originally distributed disguised as a trojan horse application promising free Steam codes (which it naturally did not provide).
In the last task of the exercise, you have the opportunity to analyse WannaCry, the infamous ransomware that caused chaos a few years ago by using worm-like propagation to spread without user interaction.