Digital Forensic Tools

Finding malware in memory

Short answer

Some malware runs only in RAM or hides inside other processes. Memory analysis can reveal it by showing odd processes, injected code and network links that disk checks may miss.

Why look in memory

Malware that is packed or encrypted on disk must unpack itself in memory to run. Some malware never writes a file. Some hides inside a normal process using injection, where code is placed into another running program. Memory is where this code is visible.

What to check

Look for the signs that do not fit normal behaviour.

  • Processes with odd names, paths or parent processes.
  • Processes seen by a memory scan but missing from the normal process list.
  • Network connections from programs that should not use the network.
  • Memory regions that are executable and not backed by a file, found by plugins such as malfind.
  • Strings, URLs or configuration data inside process memory.

Verify before concluding

Plugins give leads, not proof. Some legitimate software also creates executable memory, so a flagged region can be a false alarm. Dump the suspicious region or process, scan it with YARA rules, and look at it in a safe malware analysis setup. Then compare with logs and disk evidence.

Example

A practice image shows an ordinary-looking process with an outside connection. Malfind flags a region in it. The student dumps the region, scans it with a YARA rule, and records the result as a lead for the report.

Common mistakes

  • Calling a process malware only because a plugin flagged it.
  • Running a suspicious dumped file on the main workstation.
  • Looking only at the process list and skipping connections and injected code.
  • Not saving the memory image and plugin output for review.

Key terms

Injection
Placing code into the memory of another running process.
Fileless malware
Malware that runs mostly in memory and leaves few files.
malfind
A Volatility plugin that looks for possible injected code.
YARA
A rule format to match patterns in files and memory.

Questions you may be asked

Why can malware be seen in memory but not on disk?

It may be packed on disk, or never saved as a file, but it must be unpacked in memory to run.

What does malfind report?

Memory regions that may hold injected code, based on traits such as protection settings and no mapped file.

Free tools to practise with

Learn more

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.