Memory Forensics and Reporting

Video + 11 min read

Disk
What was stored
Memory (RAM)
What was happening
Report
Findings
Memory Forensics and Reporting
0:00 / 6:24 · Memory Forensics and Reporting
Chapters and transcript

Memory Forensics and Reporting The disk tells you what was stored. Memory tells you what was happening. In this final lesson, you will learn why investigators capture memory, what a live response collects from a running system, and how to turn all your work into a clear report that others can trust.

Why memory matters RAM is the computer short-term working memory. When it is turned off, RAM is cleared. A memory dump is a copy of RAM. It can hold running processes, and which program started which. Network connections. The exact command lines used to start programs. Loaded code, and data that is encrypted on disk but readable in use. And in some cases, passwords and encryption keys.

Why memory matters Memory matters because of fileless malware. Here, a document starts PowerShell, a built-in tool. The malicious code runs only in memory, and connects to an outside server. On the disk, no normal file is saved. If the computer is turned off before memory is captured, this evidence is gone for ever.

Capturing memory Memory must be captured while the computer is still running. A tool such as F T K Imager copies RAM into a file on an external drive, not the suspect disk, so you do not overwrite evidence there. The file is about the size of the installed RAM, so sixteen gigabytes of RAM gives roughly a sixteen gigabyte file. Then hash the file straight away and record it in the chain of custody.

Analysing memory Analysis is done later, on the investigator computer. Volatility is a well-known open-source framework. It lists processes, connections and command lines from a memory image. An analyst might look for a process with a strange name, or a common name like svchost running from an unusual folder. Word starting PowerShell, which normal use rarely does. Or a connection to an unknown address on an unusual port.

Live response Live response means collecting evidence from a computer while it is still running. It is used when turning it off would lose important data, or when a business server cannot be shut down. It collects, in order of volatility: the system date and time, compared with a reliable clock. A memory image. Running processes and their command lines. Network connections and listening ports. Logged-in users and sessions. Scheduled tasks and services, which attackers use to stay on a system. And key logs and selected files.

Live response On Windows, some basic information comes from built-in commands. netstat dash a n o shows network connections, with the process ID of each one. Look at this line. The computer is talking to an outside address on an unusual port, and the process ID is 4120. Write that number down.

Live response Next, tasklist lists running processes. Now match the process ID. 4120 belongs to a program called updater dot exe. That is the program talking to the outside address. In practice, the investigator runs these from a trusted USB drive, and writes down each command with the time.

Live response Live response has a cost. Every command changes the system a little. It uses memory, creates processes and may write files. This cannot be avoided, so the investigator must run trusted tools from a prepared USB drive, because an attacker may have tampered with the computer own tools. Keep actions to a minimum, and avoid browsing around. And document every command, with the time.

Writing the report The report is the final product. Managers, lawyers or a court may read it, and most are not technical. A common structure starts with a summary: what was asked and what was found, in plain language. Then scope and questions: who asked, under what authority. Then the evidence: each item, its number, hashes and how it was collected. And methods and tools, with versions, so the work can be repeated.

Writing the report Next come the findings: facts, each linked to the evidence that supports it, usually in time order. Then conclusions: what the findings mean, and how confident you are. Then limitations: what could not be examined or proven, such as encrypted data or missing logs. And finally appendices: timelines, screenshots, file lists and technical detail.

Good reporting habits Two important habits. First, separate facts from opinions. The file was deleted at 14:10 U T C. That is a fact. The user deleted it to hide evidence. That is an interpretation, so label it and explain your reasoning. Second, do not overstate. Evidence often shows which account did something, not which person. An account being used does not prove its owner was at the keyboard.

Good reporting habits More good habits. Use simple language, and explain technical words the first time. Be consistent with time: state the time zone, and use one zone throughout. Include evidence that does not fit. If something points away from your conclusion, mention it and explain it. And make it repeatable, so another examiner can follow your methods and reach the same findings.

Good reporting habits Here is a report being written. The finding is a fact, with a time in U T C, and it names the evidence that supports it. The limitation says plainly what could not be examined. Short, clear and honest. That is what makes a report trusted.

Quick check Quick check. During a live response, you want to see which process owns a connection to an unknown address. Which command shows connections with their process IDs? Choose one.

Key takeaways Let us put it together. Memory shows what was happening, including fileless malware. Capture it to an external drive, then hash it. Live response changes the system, so use trusted tools and document every command. A report links each fact to its evidence. And it separates facts from opinions. Keep practising only on systems you own or have written permission to examine. Now read the lesson below, and answer the quiz.

The disk tells you what was stored. Memory tells you what was happening. In this final lesson you will learn why investigators capture memory, what a live response collects from a running system, and how to turn all your work into a clear report that others can trust.

Why memory matters

RAM (Random Access Memory) is the computer's short-term working memory. Every program that runs is loaded into RAM. When the computer is turned off, RAM is cleared.

A copy of RAM, often called a memory dump or memory image, can contain:

  • Running processes: every program running at that moment, and which program started which
  • Network connections: which IP addresses and ports the computer was talking to
  • Command lines: the exact commands used to start programs
  • Loaded code: DLLs and drivers, including suspicious ones
  • Decrypted data: content that is encrypted on disk but readable while in use
  • Passwords and encryption keys in some cases, which may help open encrypted files or drives

Memory is especially important because of fileless malware. This type of malicious code runs directly in memory, often using built-in tools such as PowerShell, and may never save a normal file to disk. If the computer is turned off before memory is captured, this evidence is gone for ever.

Capturing and analysing memory

Memory must be captured while the computer is still running. A capture tool copies the contents of RAM into a file on an external drive. FTK Imager is one tool that can capture memory on Windows.

Some important points:

  • Save the memory file to an external drive, not to the suspect computer's own disk, so you do not overwrite evidence there.
  • The file will be about the same size as the installed RAM. A computer with 16 GB of RAM produces a file of roughly 16 GB.
  • Hash the memory file straight after capture and record it in the chain of custody, as you learned earlier.

Analysis is done later, on the investigator's own computer. Volatility is a well-known open-source framework for memory analysis. It can list processes, network connections and command lines from a memory image. An analyst might look for:

  • A process with a strange name, or a common name like svchost.exe running from an unusual folder
  • A program such as Word starting PowerShell, which normal use rarely does
  • A connection to an unknown IP address such as 203.0.113.66 on an unusual port

Live response

Live response means collecting evidence from a computer while it is still running. It is used when turning the system off would lose important data, or when a business server cannot be shut down.

A typical live response collects, in order of volatility:

  1. The current date and time of the system, compared with a reliable clock
  2. A memory image
  3. Running processes and their command lines
  4. Network connections and listening ports
  5. Logged-in users and active sessions
  6. Scheduled tasks and services, which attackers use to stay on a system
  7. Key logs and selected files

On Windows, some basic information can be viewed with built-in commands. For example, this shows network connections with the process ID of each one:

netstat -ano

And this lists running processes:

tasklist

Live response has a cost. Every command you run changes the system a little: it uses memory, creates processes and may write files. This is unavoidable, so the investigator must:

  • Run trusted tools from a prepared USB drive, because an attacker may have tampered with the computer's own tools
  • Keep actions to a minimum and avoid browsing around the system
  • Document every command, with the time, so its effects can be explained later

Writing a clear forensic report

The report is the final product of an investigation. Managers, lawyers or a court may read it, and most of them are not technical. A brilliant investigation with a confusing report fails.

A common structure:

Section What it contains
Summary Two or three short paragraphs: what was asked and what was found, in plain language
Scope and questions Who asked for the work, under what authority, and which questions were to be answered
Evidence Each item: evidence number, description, hash values, how and when it was collected
Methods and tools What was done, with tool names and versions, so the work can be repeated
Findings Facts, each linked to the evidence that supports it, usually in time order
Conclusions What the findings mean, and how confident you are
Limitations What could not be examined or proven, for example encrypted data or missing logs
Appendices Timelines, screenshots, file lists and technical detail

Good reporting habits

Keep these rules in mind when writing:

  • Separate facts from opinions. "The file was deleted at 14:10 UTC" is a fact. "The user deleted it to hide evidence" is an interpretation. Label interpretations clearly and explain the reasoning.
  • Do not overstate. Evidence often shows which account did something, not which person. If an account was used, it does not prove its owner was at the keyboard.
  • Use simple language. Explain technical words the first time, just like this course does.
  • Be consistent with time. State the time zone, and use one zone throughout.
  • Include evidence that does not fit. If something points away from your conclusion, mention it and explain it.
  • Make it repeatable. Another examiner should be able to follow your methods and reach the same findings.

What to do

Bring together everything from this path with a small practice exercise on your own computer:

  1. Open Task Manager, go to the Details tab, and note five running processes and their process IDs (PID).
  2. Open Command Prompt and run netstat -ano. Match some PIDs to the processes in Task Manager.
  3. Hash a file you choose, as you did in lesson 2, and record it.
  4. Write a one-page practice report about your own computer: a summary, the evidence (your notes and hashes), your methods, three factual findings and one limitation.

If you enjoy this work, digital forensics can be a rewarding career. Keep practising only on systems you own or have written permission to examine.

Check your understanding

Answer every question correctly to complete this lesson. If you miss one, try the quiz again.

1. Why can memory analysis find malware that a disk examination misses?

2. During a live response, why should the investigator run tools from a trusted USB drive instead of using the programs already on the suspect computer?

3. Which statement belongs in the findings section of a forensic report?

Locked: answer every quiz question above correctly to complete this lesson.

Spotted a mistake or something unclear? Report a mistake