Memory forensics means copying and studying a computer's working memory to find out what was running during an attack.
This guide is for students, newcomers to IT and anyone who has heard investigators say "don't switch it off". You do not need to be technical to help: the first person at a hacked computer can save or lose the most useful clues.
In short
- A computer's working memory, called RAM, holds what is happening right now: running programs, network connections and some passwords in use.
- That memory is lost when the computer is switched off, so turning it off too early can wipe the clues.
- Some attacks run mainly in memory and leave few traces on the disk, so memory can show what a disk check misses.
- Trained responders copy the memory to a file, seal it and study the copy with forensic tools.
What you will learn
- Explain the difference between memory and disk in one sentence.
- Spot why switching off a hacked computer can destroy evidence.
- Check that your incident plan says when to capture memory.
- Ask the right questions of an investigator or support firm.
- Working memory (RAM)
- the short-term memory a computer uses for whatever it is doing right now.
- Memory copy (memory image)
- a file that holds a snapshot of everything in memory at one moment.
- Short-lived clues (volatile data)
- evidence that is lost when the power goes off or as time passes.
What is memory forensics?
Think of a meeting room with a whiteboard and a filing cabinet. The whiteboard shows what people are working on right now. The filing cabinet holds what they have saved.
A computer works in a similar way. Its memory, or RAM, is the whiteboard: it holds the programs that are running and the data they are using. Its disk is the filing cabinet, where files are kept.
When the computer is switched off, the whiteboard is wiped. A US government guide on forensics describes such data as lost once a computer is powered down.[1]
Memory forensics is the work of copying that whiteboard before it is wiped, then studying the copy. Forensics means collecting and checking evidence with care, so others can trust what you found. It is one part of digital forensics.
Where the comparison stops working: you can glance at a whiteboard and read it. A memory copy holds raw data that only special tools can turn into a readable list of programs and connections.
Why does it matter?
Some attacks hide in memory, and memory holds clues that are gone after a restart.
If you are the first person at a hacked computer
What could happen: you switch it off to "stop the attack" and the clues in memory are lost.
Check this: follow your incident plan. Many plans say to unplug the network cable, leave the power on and call the security team.
If you are studying for a security career
What could happen: you learn disk forensics only and miss how attackers who work in memory are found.
Check this: practise on the free sample memory images that training courses and tool makers share.
If you manage an IT team
What could happen: after an attack, nobody knows how to capture memory, so the investigation has less to work with.
Check this: ask your team or support firm who would capture memory, and with what tool.
What does it look like?
Here is a short, made-up extract from a memory investigation. It shows the kind of list an investigator gets once a tool has read a memory copy.
Example only. All values are made up.
PROGRAMS RUNNING WHEN MEMORY WAS COPIED (EXAMPLE) ID Program Started by Notes 0001 explorer.exe (user desktop) 0002 outlook.exe explorer.exe 0003 winword.exe outlook.exe (1) 0004 powershell.exe winword.exe long hidden script (2) 0005 powershell.exe 0004 link to 192.0.2.10 (3)
- A Word document opened from an email.
- Word started a command tool. In a real screen, this line would show the script it ran, which may never have been saved to disk.
- The tool made a network link to an outside address. 192.0.2.10 is an address kept for examples.
Why this is risky: a document that starts a hidden script is a common sign of an attack. If the computer had been switched off, this chain could have been lost.
The safer way: leave the computer on, cut it off from the network if your plan says so, and let trained responders capture the memory.
How does it work?
Here is how a memory investigation usually runs, in plain steps. Trained responders do the capture and analysis.
- Keep the computer on. Guidance on collecting evidence says to gather the most short-lived data first, and memory comes before the disk.[2]
- Capture the memory. A capture tool copies the memory into a single file, called a memory image. Guidance warns that every action on a live system can change it, so responders use trusted tools and keep their steps small.[2]
- Seal and record. The responder makes a digital fingerprint of the file, called a hash, and records who handled it. This record is the chain of custody.
- Analyse the copy. Tools such as Volatility, a free memory analysis tool, read the image and list what it held. For Windows, that includes running programs and which program started which.[3][4]
- Report. The findings show what ran, what it connected to and what the team should check or fix next.

What a memory copy can show, in plain words:
| Clue in memory | Why it helps |
|---|---|
| Programs running, and which started which | Shows odd chains, such as a document starting a command tool.[4] |
| Network connections | Shows which outside computers the machine was talking to.[1] |
| Scripts and code held only in memory | Some attacks are designed to avoid writing files to disk.[5] |
| Password data and keys in use | Shows what an attacker may have been able to steal. It also means the image itself must be kept safe.[4] |

A worked example
Brightwell Accounts is a made-up firm of 25 people. Reza Rinaldi looks after its computers part time.
One Monday a member of staff says her laptop fan is roaring. A black window flashed when she opened an invoice from an email. Reza's first thought is to switch the laptop off.
Then he remembers the one-page incident plan. It says: unplug the network cable, leave the power on, call the support firm. He does exactly that, and writes down the time.
The support firm sends a responder, Zola Grover. She uses a trusted capture tool from a USB stick to copy the laptop's memory into a file. She makes a fingerprint of the file and records it on a chain of custody form.
Back at her desk, Zola studies the copy. The list of running programs shows the invoice opened Word, and Word started a command tool. That tool ran a long script that was never saved to disk, and it was talking to an outside address.
A virus scan of the disk had found nothing. The memory showed the attack chain. The laptop also had the firm's accounting software open. So Zola advises changing its password and the API key it uses to reach the bank feed. Those keys are non-human identities (NHIs): credentials that let software connect without a person.
The firm cleans the laptop, changes the passwords and keys, and blocks the outside address. Reza adds "capture memory" to the plan.
Myths and mistakes
| What people think | What is true |
|---|---|
| Switching off a hacked computer is always the safest first step. | It can wipe the clues in memory. Follow your incident plan, which often says to cut the network and leave the power on.[1] |
| If a virus scan finds nothing, the computer is clean. | Some attacks avoid writing files to disk, so a disk scan may miss them.[5] |
| A memory image is just a technical file. | It can hold password data and keys. Store it as carefully as any other secret. |
| Anyone can capture memory with any tool. | Every action changes a live system a little. Use trusted tools and trained people, and record each step.[2] |
| Memory forensics replaces disk forensics. | They work together. Memory shows what was happening, and the disk shows what was saved and when. |
What can I do this week?
- Read your incident plan and check what it says about switching computers off.
- Ask your IT team who would copy memory after an attack.
- Agree where memory copies would be kept, and who can open them.
- If you are learning, read the Volatility documentation and try a free practice image.
Checklist
- Our incident plan says when to leave a computer on and cut its network instead.
- Staff know to call the security team before switching off a suspect computer.
- We know who captures memory, and with which trusted tool.
- Memory images are fingerprinted and logged on a chain of custody record.
- Memory images are stored securely, with access limited to the investigators.
- After a case, we change passwords and keys that were in memory on the affected computer.
Common questions
What is the difference between RAM and storage?
RAM is short-term working memory that holds what the computer is doing right now, and it is lost at power off. Storage, such as a hard drive or SSD, keeps saved files until they are deleted. Forensics looks at both, but memory must be captured first.[1]
What is fileless malware?
It is harmful software that tries to avoid leaving files on the disk. Microsoft notes there is no single definition. Some types live only in memory, while others hide scripts inside normal system tools or settings. Memory forensics is one way to find them.[5]
What is Volatility?
Volatility is a free, open-source tool for studying memory images, maintained by the Volatility Foundation. It uses add-ons called plugins. For Windows, these can list the running programs and show which program started which.[3][4]
Can memory still be captured after a restart?
Usually not. Most of what was in memory is gone once the computer restarts or loses power. Some traces may remain in files the system writes to disk, such as a page file, but much less than a live capture.[1][3]
Is memory forensics only for big companies?
No. Any organisation can plan for it. A small firm can agree with its support company who would capture memory, and add one line to its incident plan. The tools themselves include free options.
Where next?
Ready for the detail? Read the practitioner guide: Volatility 3 Guide. It goes further into how the tool reads memory images, safe use and handling of evidence, and how defenders use its findings.
Also useful:
- For the full method: Memory Forensics Guide
- Digital Forensics for Beginners
- Fileless Malware Guide
- Credential Dumping for Beginners
Related NHI Mgmt Group resources: Digital Forensics (DFIR) Guide · Malware Analysis for Beginners · Non-Human Identities for Beginners
Key terms
- Memory forensics
- Copying and studying a computer's working memory to find evidence of an attack.
- Volatile memory
- Memory whose contents are lost when the power goes off, such as RAM.
- Memory image
- A file holding a snapshot of a computer's memory at one moment.
- Order of volatility
- The rule of collecting the most short-lived evidence first.
- Chain of custody
- A record of who collected and handled evidence, and when.
- Fileless malware
- Harmful software that tries to avoid leaving files on the disk.
- Volatility Framework
- A free, open-source tool for studying memory images.
Sources and further reading
- Kent, K., Chevalier, S., Grance, T. and Dang, H. Guide to Integrating Forensic Techniques into Incident Response, NIST Special Publication 800-86, August 2006: section 2.1 (network connections and other dynamic data) and section 3.1.2 (volatile data lost when a computer is powered down). National Institute of Standards and Technology. https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-86.pdf, accessed 28 Nov 2026.
- Brezinski, D. and Killalea, T. Guidelines for Evidence Collection and Archiving, RFC 3227 (BCP 55), February 2002: section 2.1 (order of volatility) and guidance on trusted tools and minimising changes. Internet Engineering Task Force, RFC Editor. https://www.rfc-editor.org/rfc/rfc3227, accessed 28 Nov 2026.
- Volatility 3 documentation: Volatility 3 Basics (memory layers, plugins, raw memory images and page files). Volatility Foundation. https://volatility3.readthedocs.io/en/latest/basics.html, accessed 28 Nov 2026.
- Volatility 3 documentation: Windows tutorial (windows.pslist, windows.pstree and windows.hashdump plugins). Volatility Foundation. https://volatility3.readthedocs.io/en/latest/getting-started-windows-tutorial.html, accessed 28 Nov 2026.
- Fileless threats. Microsoft Learn, Microsoft Defender for Endpoint documentation. https://learn.microsoft.com/en-us/defender-endpoint/malware/fileless-threats, accessed 28 Nov 2026.