Module 18 · Malware Analysis · Lesson 52 of 75

Malware types and a safe analysis lab

The main families of malicious software, what each one wants, and how analysts build an isolated lab so a sample can never escape.

In this lesson · about 30 minutes

  • Tell viruses, worms, trojans, ransomware, RATs, rootkits and loaders apart
  • Describe the goals of malware analysis and its levels
  • Set up an isolated analysis lab and handle samples safely

Common families

TypeWhat it does
VirusAttaches to files and spreads when they are run
WormSpreads itself across networks with no user action (WannaCry used an SMB flaw)
TrojanPretends to be useful software and carries a hidden payload
RansomwareEncrypts files (and often steals them first) to demand payment
RAT / backdoorGives the attacker remote control
InfostealerTakes saved passwords, browser cookies and crypto wallets
Loader / dropperA small first stage that downloads or unpacks the real payload
RootkitHides itself and other malware from the operating system
Botnet agentJoins the machine to a network of bots for spam, DDoS or mining
Fileless malwareLives in memory and in scripts (PowerShell, WMI) instead of files on disk

Why analyse malware?

  • Get indicators of compromise (hashes, domains, IPs, file paths, mutexes) to hunt for other infections.
  • Understand capability: does it steal data, spread, or encrypt? That decides how urgent the response is.
  • Write detections (YARA, EDR and SIEM rules) and feed threat intelligence (Module 19).

Levels of analysis

  1. Automated: submit to a sandbox and read the report (minutes).
  2. Basic static: look at the file without running it: hashes, strings, headers, imports.
  3. Basic dynamic: run it in the lab and watch processes, files, registry and network.
  4. Advanced: reverse engineering with a disassembler and debugger (Ghidra, IDA, x64dbg).

The safe lab

  • A dedicated Windows VM (often with FLARE-VM tools) and a Linux VM (REMnux) on a host-only network, with no shared folders or clipboard.
  • Take a clean snapshot and revert after every run.
  • Fake internet services (INetSim, FakeNet-NG) so malware "talks" to you instead of the real attacker.
  • Store samples in password-protected zips (the convention is the password infected) and rename them with a harmless extension such as .bin, so nobody double-clicks one.
  • Never analyse on your work laptop, and follow your employer's rules on sharing samples: uploading a client's file to a public sandbox can leak their data.

Sorting drill

Name the family

Sort each description into the type of malware it describes.

  • Encrypts the file server and leaves a note asking for bitcoin
  • Spreads from PC to PC through an unpatched network service, with no clicks
  • A free 'PDF converter' that quietly downloads a second program
  • Grabs saved browser passwords and session cookies, then uploads them
  • Threatens to publish stolen data unless paid, after locking the files
  • A macro document whose only job is to fetch and run the next stage

0 of 6 sorted

Check your understanding0 of 3 correct

Question 1

1.Which malware spreads without any user action?

Question 2

2.Why use a host-only network in the lab?

Question 3

3.What is the risk of uploading a client's file to a public sandbox?

Quiz score: 0 of 3

Tip: answer every quiz question correctly first.

Written by Noviq Academy in its own words. All labs are simulations: no real systems are touched, and every name, address, password and hash is made up. The offensive techniques taught here are for defending systems and for authorised testing only; never scan, access or test a system without the owner's written permission. Tool and product names belong to their owners, and command output may differ slightly from yours. Read-aloud uses your device's built-in voices.