Digital Forensic Tools

Pagefile, hiberfil.sys and swap

Short answer

Pagefile.sys, hiberfil.sys and swap are disk files that can hold copies of memory content. They help when RAM was not captured, but they have limits.

Pagefile and swap

When Windows needs more working memory, it moves rarely used memory pages to a hidden file called the page file, usually pagefile.sys at the root of the system drive. Linux does a similar job with a swap partition or swap file. These files can hold pieces of past memory, such as text, passwords or parts of programs. The pieces are scattered and incomplete, so search them with strings or carving tools.

Hibernation file

When a computer hibernates, Windows writes the RAM content into hiberfil.sys. On newer Windows, Fast Startup can also make this file at shutdown, but it then holds mostly kernel data, not user sessions. The file is stored in compressed form, so it must be converted to a raw memory image before a normal analysis tool can read it. It is a snapshot of one moment and is overwritten each time.

If the drive uses full disk encryption, you need the key to read it.

How examiners use them

Take a disk image, then extract these files from it. A running system keeps them locked, so a disk image is the safer source. Search the page file for strings and URLs. Convert hiberfil.sys and analyse it like a memory image. Settings may clear the page file at shutdown, so it can be empty.

Example

A laptop was found powered off, so no RAM was captured. The examiner images the disk, extracts hiberfil.sys, converts it to a raw memory image and finds the browser and chat programs that were open at hibernation.

Common mistakes

  • Copying hiberfil.sys from a live system, which can give a damaged file.
  • Treating the page file as one continuous memory image.
  • Ignoring these files when RAM could not be captured.
  • Forgetting that Fast Startup may not keep user session data.

Key terms

Page file
A hidden file that extends memory by holding pages moved out of RAM.
Hibernation
A power state that saves RAM to disk.
Swap
The Linux space used in the same way as a page file.
Fast Startup
A Windows option that saves part of the system state to speed up the next start.

Questions you may be asked

How is hiberfil.sys useful?

It holds a compressed copy of RAM from the time of hibernation, which can be converted and analysed.

Why is the page file less complete than a RAM image?

It holds only pages moved out of memory, scattered over time.

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.