πŸ”¬ HIERARCHY DIGITAL EVIDENCE & FORENSIC ACQUISITION β€” Dari Volatile Memory sampai Persistent Cold Storage

Digital forensic adalah proses pengawetan, akuisisi, dan analisis bukti digital secara ilmiah dan dapat diverifikasi. Berbeda dari hacking (cari celah), forensic harus tahan terhadap cross-examination β€” setiap langkah harus reproducible dan chain of custody harus jelas. Hirarki ini memetakan evolusi persistensi bukti digital dari Level 0 (RAM β€” paling volatil, hilang dalam detik setelah power off) sampai Level 6 (cold storage/archived β€” stabil selama bertahun-tahun). Semakin rendah level, semakin mudah bukti hilang β€” tapi semakin kaya data yang bisa digali.

Cara Baca Atlas Ini

Baca dari bawah ke atas β€” dari Level 0 (RAM) yang paling volatil ke Level 6 (archived) yang paling stabil. Urutan akuisisi dalam investigasi real: Level 0 β†’ Level 1 β†’ … β†’ Level 6. Karena RAM dan network connection hilang duluan saat device mati, mereka harus dikumpulkan pertama. Untuk SOP teknis konkret, lihat forensic-imaging-analysis. Untuk tools per level, lihat ctf-tool-arsenal-universal.


Tabel Utama β€” Level 0 sampai Level 6

πŸ”¬ Level🧠 Lapisan Bukti⏱️ Volatilitas⚑ Sumber BuktiπŸ“¦ Tools Akuisisi☠️ Risiko Hilang
Level 0 β€” Volatile Memory (RAM)Detik sampai menit setelah power lossSangat Tinggi β€” hilang total saat shutdownPhysical RAM dump, pagefile, swap, /proc/kcore, hiberfil.sysLiME, Volatility (acquisition), FTK Imager (live), WinPmem, Rekall, RamCapturerPower loss = data hilang permanen. Cold boot attack: RAM data bertahan ~detik-detik 5–10 menit jika didinginkan
Level 1 β€” Network Connections & StateSaat koneksi aktifTinggi β€” hilang saat disconnectActive TCP/UDP connections, ARP cache, routing table, DNS cache, netstat output, conntrack entriesnetstat, ss, lsof, tcpdump, Wireshark (live capture), netsh, ntopng, Zeek (live)Network disconnect = state hilang. TTL setiap entri DNS/ARP dalam hitungan detik-menit
Level 2 β€” Running Processes & OS StateSelama OS menyalaTinggi β€” berubah tiap detikProcess list, open handles, loaded modules, environment variables, scheduled tasks, logged-on users, clipboard, kernel objectsSysinternals Suite (pslist, handle, listdlls), ps aux, lsof, /proc/*, autorunsc, zadigProses bisa mati kapan saja. Evil process mungkin hanya hidup 30 detik
Level 3 β€” Temporary & Transient FilesSelama sesi aktif + beberapa hariSedang β€” bisa bertahan sampai dihapus OC/cleanerBrowser cache & history, /tmp, %TEMP%, prefetch, recent files, jump lists, thumbnail cache, recycle bin, $Recycle.BinSleuth Kit, Autopsy, FRED, Magnet RAM Capture, tmp watch tools, USN journal parserDisk cleanup, CCleaner, log rotation, cache eviction. Beberapa file hanya bertahan 1–7 hari
Level 4 β€” Persistent Storage (Active)Selama file disimpanRendah β€” stabil sampai dihapus/shredFilesystem (NTFS, ext4, APFS, FAT32), LogFile, unallocated space, Boot, volume shadow copyEnCase, FTK Imager, dd, dcfldd, Guymager, Sleuth Kit, Autopsy, X-Ways ForensicsFile yang dihapus (deleted inode) bisa ditimpa kapan saja. TRIM (SSD) bikin recovery hampir mustahil
Level 5 β€” Persistent Storage (Archived / Cold)Selama media disimpanSangat Rendah β€” stabil bertahun-tahunBackup tapes, optical media (CD/DVD/BR), cold HDD/SSD, offline NAS/SAN, storage array, tape libraryHardware imaging tools (Tableau, DeepSpar, PC-3000, Atola), ddrescue, FTK Imager, EnCaseBit rot (media murah), magnetic decay (tape), NAND wear (SSD), controller failure (flash)
☠️ Level 6 β€” Cloud & Remote StorageSelama cloud provider menyimpanTergantung provider β€” dari hitungan jam (ephemeral) sampai tahun (archived S3)Cloud VM snapshots, cloud storage (S3/Blob/GCS), SaaS data (Google Workspace, Office 365, Salesforce), container layer imagesAWS forensic tools, Azure CLI, Google Takeout, Magnet AXIOM Cloud, CloudSweep (CrowdStrike), Rubrik, VeeamProvider policy hapus data. Encryption (E2EE) bikin data tidak terbaca. Legal jurisdiction issues

Peta Visual β€” Volatilitas vs Data Richness

Data Richness ↑
              β”‚  L6 ─ Cloud & Remote Storage             ●    ●●● Sangat stabil, akses terbatas
              β”‚  L5 ─ Archived Cold Storage              ● ●    ●●● Paling stabil
              β”‚  L4 ─ Active Persistent Storage          ●●●    ●● Standard forensik
              β”‚  L3 ─ Temporary & Transient Files        ●●●●    ●● Artefak kunci
              β”‚  L2 ─ Running Processes / OS State       ●●●●●   ● Hidup singkat
              β”‚  L1 ─ Network Connections                ●●●●●●  ● Hilang saat disconnect
              β”‚  L0 ─ RAM / Volatile Memory              ●●●●●●● ● Paling kaya, paling rapuh
              β”‚       └────────────────────────────────────────→ Waktu Bertahan
              β”‚
              └──────────────────────────────────→ Urutan Akuisisi (0 β†’ 6)

Kenapa Hirarki Ini Penting

1. Order of Volatility (OoV) β€” Golden Rule Forensik

Dalam investigasi forensik, akuisisi harus dimulai dari data paling volatil. Urutannya:

RAM (L0) β†’ Network State (L1) β†’ Running Processes (L2) β†’ Transient Files (L3)
β†’ Persistent Storage (L4) β†’ Archived (L5) β†’ Cloud (L6)

Kenapa? Jika Anda matikan laptop dulu baru ambil RAM β€” RAM-nya sudah hilang. Jika Anda cabut kabel network sebelum catat koneksi aktif β€” connection state-nya hilang. Setiap device yang akan di-forensik harus langsung difoto, dicatat statusnya, lalu di-dump RAM-nya SEBELUM dimatikan.

2. Setiap Level Punya β€œTembok” Berbeda

LevelTembok TerbesarContoh Real
L0 (RAM)Anti-forensics di kernel β€” rootkit sembunyikan prosesKernel mode rootkit: ps tidak tampilkan process berbahaya karena hook syscall. LiMEdump bisa detect module tersembunyi
L1 (Network)Encrypted traffic β€” tidak bisa inspeksi isiTLS 1.3 + ECH (Encrypted Client Hello) β€” metadata koneksi pun terenkripsi
L2 (Process)Malware dengan self-delete / timer killProcess running hanya 5 detik, log process pun hilang
L3 (Temp)SSD TRIM β€” overwrite data dalam detikSSD TRIM command mengosongkan block yang dihapus dalam <1 detik β€” recovery file hampir mustahil
L4 (Storage)Encryption at rest (BitLocker, FileVault, LUKS)Tanpa kunci atau recovery key, data terenkripsi tidak terbaca. Cold boot attack (RAM beku) bisa ambil kunci
L5 (Archived)Bit rot, media degradation, obsolete hardwareTape drive LTO-5 tidak bisa baca LTO-9. HDD yang disimpan 5+ tahun punya failure rate 12%+
L6 (Cloud)Jurisdiction, legal, encryption, provider cooperation gapData di server Singapura, perusahaan AS, user Indonesia β€” butuh MLAT yang bisa 6 bulan

3. Forensic Competition Biasanya Fokus di Level 2–5

Mayoritas soal CTF forensic:

  • L2 (Process) β€” dump process, cari process anomali, extract string dari memory process
  • L3 (Transient) β€” browser history analysis, prefetch extraction, jump list parsing
  • L4 (Storage) β€” NTFS $MFT analysis, file carving dari unallocated space, VSC (Volume Shadow Copy) extraction

Level 0 (RAM) dan Level 1 (Network) jarang keluar di CTF karena tooling-nya complex dan memori dump file bisa 16 GB+. Tapi di investigasi real, itu yang paling penting.


Kontrak Kompetensi Per Level

Level 0 β€” Volatile Memory (RAM)

Harus bisa:

  • Dump RAM dengan LiME (Linux), WinPmem (Windows)
  • Ekstrak proses, network socket, cmdline, environment variable dari memory dump
  • Analisis dengan Volatility 3: windows.psscan, windows.cmdline, windows.netscan, windows.malfind
  • Deteksi rootkit / hidden process via windows.modscan, windows.driverirp
  • Cari malware di memory injection region

TIDAK relevan: Filesystem analysis, timeline creation, network long-term capture

Level 1 β€” Network State

Harus bisa:

  • Capture live traffic dengan tcpdump/Wireshark
  • Analisis PCAP: follow TCP stream, ekstrak file dari HTTP/SMB/DNS, identifikasi C2 beacon
  • Filter traffic berdasarkan IP, port, protocol, time range
  • Deteksi DNS tunneling, exfiltration via DNS, slowloris, C2 heartbeat

Level 2 β€” Running Processes & OS State

Harus bisa:

  • Identifikasi process legitimate vs malicious
  • Cari process yang tidak punya parent (orphan), PPID spoofing, process hollowing
  • Baca environment variable yang mengandung credential
  • Analisis autoruns, scheduled tasks, services, drivers

Level 3 β€” Temporary & Transient Files

Harus bisa:

  • Ekstrak browser history, cache, cookies, saved passwords (Chrome, Firefox, Edge)
  • Baca prefetch file (.pf) β€” tahu executable apa yang pernah jalan, kapan, berapa kali
  • Parse $Recycle.Bin / .Trash β€” file apa yang dihapus, kapan, dari mana
  • Jump list parser β€” dokumen apa yang baru dibuka
  • Thumbnail cache β€” rekonstruksi gambar yang sudah dihapus
  • Volume Shadow Copy (VSC) β€” restore file ke versi sebelumnya

Level 4 β€” Active Persistent Storage

Harus bisa:

  • Buat forensic image (dd, dcfldd, Guymager, FTK Imager)
  • Analisis filesystem: MFT entry, inode table, allocation bitmap, journal (UsnJrnl)
  • File carving: recover deleted file berdasarkan signature (foremost, scalpel, photorec)
  • Timeline analysis: buat super timeline dengan plaso/log2timeline
  • Registry analysis: extract user activity, USB device history, MRU, network shares
  • Slack space, unallocated space, indirect block analysis

Level 5 β€” Archived & Cold Storage

Harus bisa:

  • Read media yang rusak/fail (PC-3000, DeepSpar, ddrescue)
  • Reconstruct RAID (mdadm, hardware RAID controller)
  • Extract data dari tape backup (tar, Amanda, Bacula)
  • File system reconstruction setelah format ulang

Level 6 β€” Cloud & Remote Storage

Harus bisa:

  • Know legal framework untuk cloud data request (CFAA, GDPR, UU ITE, MLAT)
  • API-based collection (AWS S3 inventory, Office 365 eDiscovery, GSuite Vault)
  • Container forensic (Docker layer analysis, Kubernetes audit log)
  • SaaS data extraction (Slack export, Teams retention, Salesforce audit)
  • Preserve metadata: timestamps, version history, ACL, shared-with info

Forensic Artifact Map β€” Windows vs Linux

Windows

ArtifactSourceLevelInformation Extracted
PrefetchC:\Windows\Prefetch*.pfL3File jalan, path, count, last run time
$UsnJrnl$MFT USN journalL4Semua perubahan file (create/modify/delete/rename) dengan timestamp
$LogFileNTFS metadata logL4Detail perubahan filesystem β€” bisa detect file timestamp manipulation
Event Log.evtx filesL3Proses jalan, login/logoff, service start/stop, error
Registry (SAM)Config\SAML4User accounts, last login, password hash
Registry (NTUSER.DAT)User profileL3MRU, typed URLs, recent docs, USB device history, network shares
AmcacheC:\Windows\AppCompat\Programs\Amcache.hveL3Application execution history bahkan setelah uninstall
ShimCacheRegistry AppCompatCacheL3Executable path + timestamp (pertahanan terhadap anti-forensics timestamp modification)
$Recycle.BinPer-user recycle binL3File dihapus, original path, deletion time
Volume Shadow CopySystem Volume InformationL3File versi sebelumnya β€” bisa bypass ransomware encryption
Browser ArtifactsUser profileL3History, cache, cookies, downloads, saved passwords
Jump ListsUser profileL3Recent documents per application
LNK FilesUser profileL3File access timestamp, target path, volume serial

Linux

ArtifactSourceLevelInformation Extracted
.bash_historyUser homeL3Command history β€” reconstruct attacker activity
auth.log / secure/var/log/L3SSH login attempts, sudo usage, user switches
syslog / journalctl/var/log/L3System-wide events, service logs, kernel messages
wtmp / btmp/var/log/L3All login/logout records (including failed)
.ssh (keys, known_hosts)User homeL3Remote connections, authorized keys, host fingerprints
/tmp + /var/tmpFilesystemL3Artifact sementara, session file, dropped tools
auditd logs/var/log/audit/L3System call audit trail β€” paling detail
$MFT (if NTFS)Mounted driveL4Filesystem transactions
/proc/*RAM-based pseudofilesystemL0–2Process info, network, modules (hilang saat shutdown)
~/.local/share/TrashUser trashL3Deleted files metadata
Chromium/Firefox profilesUser homeL3Browser history, cache, cookies
Docker/container layers/var/lib/docker/L6Container image history, running containers

Plot Twists

Plot Twist 1: SSD TRIM Membunuh File Carving

File carving (foremost, scalpel, photorec) hanya bekerja kalau data belum ditimpa. SSD TRIM mengosongkan block yang dihapus dalam <1 detik β€” bahkan sebelum Anda sempat buka forensic imager. Cara satu-satunya: non-TRIM forensic image diambil dengan alat hardware write-blocker + firmware-aware imaging (PC-3000 SSD, Atola). Jika SSD sudah di-boot tanpa write-blocker, file yang dihapus tidak bisa direcover.

Plot Twist 2: Anti-Forensics Semakin Canggih

Tools anti-forensics modern bukan sekadar β€œdelete file” β€” mereka:

  • $MFT manipulation β€” overwrite entry untuk sembunyikan file
  • Timestamp modification β€” setfile / SetMACE bikin timeline forensik kacau
  • Log wiping β€” clear event log, audit log, .bash_history
  • Secure deletion β€” wipe file + overwrite unallocated space 7x (DoD 5220.22-M)
  • Volume Shadow Copy deletion β€” vssadmin delete shadows /all
  • Encryption β€” BitLocker, VeraCrypt, FileVault β€” tanpa kunci, data tidak terbaca

Counter-forensics: $LogFile dan $UsnJrnl tetap bisa menunjukkan manipulasi β€” karena USN journal mencatat setiap perubahan termasuk perubahan timestamp. Forensik bukan melawan data β€” melawan jejak yang ditinggalkan.

Plot Twist 3: RAM Dump Bisa Ambil Kunci Enkripsi β€” Tapi Harus Cepat

Full Disk Encryption (BitLocker, FileVault, LUKS) bikin disk tidak terbaca tanpa kunci. Tapi jika device sedang ON, kunci enkripsi ada di RAM. LiME dump + Volatility windows.lsadump atau mac.keychaindump bisa extract:

  • BitLocker key (pre-boot AES key)
  • LUKS master key
  • FileVault volume key
  • TrueCrypt/VeraCrypt passphrase dari memory

Cold boot attack: Dinginkan RAM dengan compressed air β†’ RAM data bertahan 5–10 menit setelah power off β†’ boot dari USB β†’ dump RAM β†’ extract key. Ini teknik forensik tingkat lanjut yang butuh persiapan fisik.

Plot Twist 4: Chain of Custody Sama Pentingnya dengan Data Itu Sendiri

Tanpa chain of custody yang solid, data forensik tidak bisa dijadikan bukti hukum β€” bahkan kalau teknik akuisisinya sempurna. Chain of custody minimal butuh:

  • Foto/Video kondisi device saat tiba di laboratorium
  • Hash (SHA-256/MD5) setiap langkah β€” image asli, image copy, hasil ekstraksi
  • Log waktu dan personel β€” siapa memegang bukti, kapan, untuk apa
  • Write-blocker β€” pastikan device tidak termodifikasi saat akuisisi
  • Media baru steril β€” dd if=/dev/zero sebelum dipakai

Di CTF, chain of custody jarang dinilai. Di investigasi real, tanpa chain of custody = tidak ada bukti.



Digital Evidence & Acquisition Hierarchy | Level 0 (RAM) β†’ Level 6 (Cloud) Β· Order of Volatility (OoV) Β· Chain of Custody = Prasyarat Hukum Β· SSD TRIM = Musuh File Carving