Analysing a memory image
Memory analysis means reading a RAM image with a framework such as Volatility to list processes, connections and loaded code. The frameworks rebuild...
Static analysis studies a suspicious file without running it. Dynamic analysis runs it in a safe, isolated lab and watches what it does. Most investigations use both.
Malware is software built to harm a system or steal data. In a case, the examiner often needs to know what a sample does, what it connects to and what it leaves behind. The answers help to explain how a system was affected and which other systems may be involved.
Malware analysis is a large field of its own. This page only covers the first ideas a student needs.
Static analysis means studying the file without running it. It is safer, but it can miss behaviour that is hidden or packed. Packing means the real code is compressed or scrambled and only unpacks when the program runs.
Dynamic analysis means running the sample in a controlled lab and recording what happens. You watch files created, registry changes, processes started and network connections made. The lab must be isolated, usually a virtual machine with snapshots and no route to real networks, because the sample may spread or contact its operator.
Some malware checks whether it is running in a virtual machine or a sandbox and then behaves differently. A single run may not show everything.
A common workflow starts with safe static checks, then dynamic runs, then deeper code reading where needed. Results are written up with indicators of compromise (IOCs), such as file hashes, domain names and registry keys, so other teams can search for the same traces. Follow your lab's own rules for handling live samples.
| Static | Dynamic | |
|---|---|---|
| Is the sample run? | No | Yes, in an isolated lab |
| Risk | Low | Higher, needs strict isolation |
| Shows | Code, strings, structure | Real behaviour and traces |
| Weak point | Packed or encrypted code | Samples that detect the lab |
An examiner finds an unknown program in a user's download folder. She hashes it, reads its strings and sees a web address. She then runs it in an isolated virtual machine and sees it start a new process and try to contact that address. She records the hash and address as IOCs for the incident report.
Static analysis examines the file without running it. Dynamic analysis runs it in an isolated lab and observes its behaviour.
The sample may damage the system, spread to other machines or contact its operator.
Written in our own words from public forensic training material and standards. Last reviewed 24 Nov 2026. Procedures and laws differ by country and agency. Follow your own lab's procedure.