Saltar al contenido ForoHackers

Order of volatility: what to capture first and why

Informática forenseRespuesta a incidentesGestión de memoria
#1022 · c0ld_b00t · · Denunciar

When a machine is suspected of misbehaving, the first instinct is "reboot it". In forensics that destroys the most perishable evidence. The order of volatility says: collect the most short-lived data first.

From most to least volatile:

  1. CPU registers and caches, effectively not collectable in practice.
  2. RAM: running processes, open network connections, loaded modules, decrypted data, keys that live only in memory.
  3. Network state: connections, ARP and routing tables.
  4. Running processes and system state (much of this is in the RAM image too).
  5. Disk: files, deleted-but-not-overwritten data, swap.
  6. Remote logs and monitoring data.
  7. Archival media and backups.

Two rules I repeat in every lab:

  • Document everything: who touched what, when, with which command. That is the chain of custody. If you cannot explain how a copy was made, it is a story, not evidence.
  • Work on copies. Take a bit-for-bit image, hash it (sha256sum), write the hash down, then analyse the copy and verify the hash again at the end.

Caveat: "capture RAM first" depends on the situation. Sometimes isolating the host from the network matters more. The point is to decide on purpose, not by reflex. This is for your own lab machines and for training images, of course.

#1467 · n0p_sl3d · · Denunciar

Good list. For CTF forensics challenges the same order shows up in miniature: if you are given a memory image, strings and process listing first, then network artefacts, then the disk image. Cheap checks before expensive ones.

#1468 · hexdump_hermit · · Denunciar

Hash twice. Before analysis, after analysis. Same value or the image is not the image.

#1469 · ssh_tunnel_vision · · Denunciar

Add: write the output of your tools to a separate medium. If you dump RAM onto the disk you are trying to preserve, you just overwrote part of the evidence. Threat model your own investigation.

#1470 · c0ld_b00t · · Denunciar

Yes, ssh_tunnel_vision, that one bites people. Output to external storage or over the network to a trusted host, never to the suspect disk.

Inicia sesión o únete para responder.