Windows Forensic : Non-Volatile Data Collection Playbook

Non-volatile data adalah data persisten yang tidak hilang saat sistem crash atau power-off. Data ini tersimpan di internal hard disk, flash drive, atau external hard disk, dan diperoleh saat static data acquisition. Secara forensik, ia mengungkap artifact berharga: Windows registry, file system, database files, external device yang pernah terhubung, hingga hidden partition. Contohnya: email, dokumen, spreadsheet, dan berbagai file yang "terhapus".

Playbook ini cocok untuk :

  • Forensic Investigator / DFIR Analyst
  • Security Operation Center (SOC)
Ingat: Jaga integritas evidence - tanpa modifikasi atau penghapusan. Saat sistem dinyalakan, sebagian data bisa berubah (mapped drive, service yang jalan, aplikasi terpasang) dan perubahan itu kadang tidak persisten setelah reboot. Catat dan dokumentasikan setiap perubahan tersebut.

Di mana non-volatile data berada?

  • Hard drive (utama)
  • Swap files, slack space, unallocated drive space
  • External hard drive, USB storage, smartphone
1 Examining File Systems

Memahami Windows file system penting untuk mengakses data file system dan merekonstruksi file system events. File system terdiri dari lima bagian:

BagianIsi
File system dataStruktur file system: jenis file system, block size, jumlah allocated block
Content dataSebagian besar informasi file system beserta isinya
MetadataLokasi konten, file size, MAC timestamps
File nameNama file
Application dataFile system journal, quota statistics

Jalankan perintah berikut untuk memeriksa tanggal & waktu instalasi OS, service packs, patches, dan sub-directory yang sering auto-update (mis. driver):

dir /o:d
Prioritaskan file dengan tanggal terbaru (recently dated files).
2 ESE Databases & Search Index

ESE Database File (.edb)

Extensible Storage Engine (ESE) - juga dikenal sebagai JET Blue - adalah database management system Microsoft untuk berbagai aplikasi Windows. File-nya berekstensi .edb dan menyimpan record utama terkait sistem dan user.

FileIsi & Lokasi
Windows.edbIndex information untuk Windows search
DataStore.edbInfo Windows update - C:\Windows\SoftwareDistribution\DataStore
Exchange (.edb)Mailbox data (email, calendar, contact) - MS Exchange Server 2019
Event log (.edb)Event log data - C:\Windows\System32\winevt\Logs
Active Directory (.edb)User account, group, dan objek AD domain

ESEDatabaseView

nirsoft.net
Downloads ESEDatabaseView
:: Fokus Ke Table
        - tbHistory
        - tbComputerInfo
        - tbServiceData
        - tbFiles
        - tbDownloadJob, tbCcrDownloadData, tbPerSessionDLData
      

Membaca dan menampilkan data .edb dalam format terstruktur. Menampilkan daftar table, memungkinkan pemilihan record, lalu export ke CSV/TSV/HTML/XML atau copy ke clipboard (Ctrl+C) untuk di-paste ke Excel.

Windows Search Index Analysis

Downloads KAPE (Kroll Artifact Parser and Extractor)

Windows Search Index meng-index file dan konten agar pencarian lebih cepat, dan menyimpan semua konten yang pernah dicari user dalam Windows.edb:

C:\ProgramData\Microsoft\Search\Data\Applications\Windows

Mem-parsing file ini mengungkap evidence terkait deleted data, damaged disk, encrypted file, event bounding. Gunakan ESEDatabaseView untuk mengekstrak detail data terhapus.

Extract windows Search Windows.edb menggunakan KAPE
Uploads ke Timeline Explorer untuk filtering dan korelasi timeline
Downloads Timeline Explorer
3 SRUM Artifacts

System Resource Usage Monitor (SRUM) adalah database bawaan Windows yang melacak resource usage, push notification, data usage, dan network connectivity. Berjalan otomatis saat boot dan menyimpan data dalam ESE file SRUDB.dat:

C:\Windows\System32\SRU\SRUDB.dat

User hanya melihat sebagian data lewat tab App history di Task Manager - SRUM menyimpan jauh lebih banyak. Tool: Velociraptor, Magnet AXIOM Examine, SRUM DUMP. Berguna untuk menganalisis C2 traffic, data exfiltration, malware, dan application behavior.

Manfaat data SRUM

  • Anomaly detection - mis. high resource utilization oleh proses tak dikenal (indikasi malware).
  • IoC detection - mis. komunikasi proses ke IP asing (indikasi data breach).
  • Performance monitoring - menganalisis masalah performa selama insiden.
  • Reconstructing timeline - memahami root cause, urutan event, scope, dan dampak.

Analisis SRUM dengan Velociraptor

Downloads Velociraptor
  • Run as Administrator CMD
  • Run Velociraptor velociraptor-v0.75.6-windows-amd64.exe gui
  • Pergi ke Collected Artifacts
  • Cari sistem target
  • Pilih artifact Windows.Forensics.SRUM
  • Tab Log - lihat semua log yang dihasilkan.
  • Tab Results → source Execution Stats: running time, timestamp, username, network transfer count.
  • Source Application Resource Usage: path & lokasi aplikasi aktif → deteksi suspicious executable dari lokasi tidak lazim.
  • New Hunt untuk mengecek sistem yang mengeksekusi binary tertentu, lalu filter hasil berdasarkan nama binary.

Analisis SRUM dengan KAPE + Timeline Explorer

Downloads KAPE (Kroll Artifact Parser and Extractor)
Downloads Timeline Explorer

Berbeda dengan Velociraptor yang meng-collect dan mem-parsing dalam satu platform, alur KAPE memisahkan dua tahap: akuisisi (KAPE menarik SRUDB.dat + SOFTWARE hive) dan parsing (module !EZParser menjalankan SrumECmd untuk menghasilkan CSV), yang kemudian dianalisis di Timeline Explorer.

SRUM Kape
Kape & Timeline Explorer
Catatan retensi data application/proses di SRUM umumnya disimpan sekitar 30 hari. Untuk insiden yang lebih lama, jejaknya mungkin sudah ter-rollover
4 User Account & System Audit

Collecting User Account Information (SAM)

Info user account (account name/type, logon timestamp, failed login attempts, login location) adalah evidence berharga. Windows menyimpannya dalam file SAM (Security Account Manager):

C:\Windows\System32\config\SAM HKEY_LOCAL_MACHINE\SAM

Analisis (SAM) menggunakan Artifast

Downloads Artifast

mengambil user account info dari image file, mem-parsing metadata SAM, dan melakukan timeline analysis. Menampilkan username, account type & status, login count, login scripts, path profile, last login, password reset, registry key modification, dan failed login attempts.

Langkah Artifast:

  • Case → New untuk membuat case.
  • Case : NewIsi info case
  • Evidence : Evidence Path Jika Pilih Image maka bentuk Evidenya .E01, .dd, .raw, .vmdk
    Jika Pilih Folder Arahkan Ke Folder ex C:\Windows\System32\config\
  • Artifact Centang : User Accounts Dan User Groups
  • Klik Run untuk memproses image.

Auditing Installed Applications (WMIC)

Gunakan WMI/WMIC untuk mengekstrak software inventory dan mengidentifikasi aplikasi berbahaya/tidak dikenal.

:: Tampilkan name, version, location
wmic product get name,version
wmic product get name,version,installlocation

:: Simpan ke file teks
wmic product get name,version,installlocation /format:txt > c:\software_inventory.txt

:: Simpan ke file HTML
wmic /output:c:\software_inventory.htm product get name,version,installlocation /format:htable
Tampilkan name, version, location
Simpan ke file teks
Simpan ke file HTML

Identifying System Updates

Lihat update history (installation date, description, hotfixid / KB number) untuk mencari aktivitas mencurigakan:

wmic qfe list
5 Connected Devices & Storage Artifacts

Detecting Externally Connected Devices

Mendeteksi device membantu menentukan apakah suspect memakai external media untuk cybercrime.

  • DriveLetterView (nirsoft.net): Downloads DriveLetterView
    daftar semua drive letter assignment - local, remote network, external HDD, USB - bahkan yang tidak terpasang. Bisa export ke text/CSV/HTML/XML.

  • DevCon (learn.microsoft.com): Downloads DevCon
    command line tool untuk enable, disable, install, configure, remove device (lokal & remote).
devcon listclass <class> <port>
DriveLetterView
Devcon

Slack Space

Slack space (file slack) adalah ruang antara akhir file tersimpan dan akhir disk cluster - muncul saat file lebih kecil dari file sebelumnya di cluster sama. Residual data-nya tetap utuh dan bisa memuat informasi bermakna.

Anti-forensik: slack space bisa dipakai menyembunyikan data tanpa diketahui file system (file dibuat lebih kecil, sisa ruang diisi hidden data). Data ini invisible bagi file system sampai diubah manual - meski bukan metode teraman.

Collecting Hidden Partition Information

Hidden partition adalah bagian logis disk yang tidak bisa diakses OS - bisa berisi file, data rahasia, atau system backup.

  • Partition Logic (partitionlogic.org.uk): Downloads Partition Logic
    create, delete, erase, format, defragment, resize, copy, move partition & mengubah atribut; bisa menyalin seluruh HDD.
  • Partition Find and Mount (findandmount.com): Downloads Partition Find and Mount
    recovery partition terhapus/hilang dengan melocate & me-mount-nya kembali. Tetap berfungsi meski Boot Record / MBR hilang, rusak, atau ter-overwrite.

Windows Thumbnail Cache

Thumbnail file grafis (JPEG, BMP, PNG, GIF, TIFF) tersimpan di:

C:\Users\[User Profile]\AppData\Local\Microsoft\Windows\Explorer

File cache berupa thumbcache_***.db (*** = pixel dimension), memuat original filename, date/time, dan EXIF data. Yang penting: thumbnail file terhapus tetap tersimpan dan bisa diekstrak dengan Thumbcache Viewer / Thumbs Viewer (juga membaca iconcache_*.db).

Thumbcache Viewer :Downloads Thumbcache Viewer

Thumbcache Viewer memungkinkan Anda mengekstrak thumbnail image dari file database thumbcache_*.db dan iconcache_*.db yang terdapat pada sistem Windows. Program ini menyediakan graphical user interface (GUI) sekaligus command-line interface (CLI).

Sticky Notes (Python)

Windows 11 Sticky Notes menyimpan data dalam SQLite plum.sqlite:

C:\Users\<Username>\AppData\Local\Packages\Microsoft.MicrosoftStickyNotes_8wekyb3d8bbwe\LocalState\plum.sqlite

Gunakan script Sticky_notes.py untuk ekstraksi, lalu analisis konten mencurigakan (keyword search, timestamp, dll.).

:: Sticky_notes.py
import sqlite3
# Provide path of the Sticky Notes database
database_path = r'C:\Users\Admin\AppData\Local\Packages\Microsoft.MicrosoftStickyNotes_8wekyb3d8bbwe\LocalState\plum.sqlite'
# Database connection
conn = sqlite3.connect(database_path)
# Creating a cursor object
my_cursor = conn.cursor()
# Query to retrieve Sticky Notes data
my_cursor.execute("SELECT Text FROM Note")
# Fetch all the notes
notes = my_cursor.fetchall()
# Print the notes
for note in notes:
	print(note[0])
# Close the database connection
conn.close()

    
6 Windows Domain Information

Mengumpulkan domain information membantu memahami network environment, user & group, activity log, dan event log - sekaligus preservasi evidence untuk keperluan legal.

Domain Controller (PowerShell)

:: Info domain controller di sesi user saat ini
Get-ADDomainController

:: Domain controller di domain tertentu
Get-ADDomainController -Discover -Domain "Domain Name"

:: Domain controller di domain saat ini
Get-ADDomainController -Discover
Info domain controller di sesi user saat ini
Domain controller di domain tertentu
Domain controller di domain saat ini

Perintah NET

PerintahFungsi
net usersMelihat/mengelola user di lokal maupun domain
NET ACCOUNTSPassword settings (logon limitation) & info domain
net groupNama group account di server
net shareInfo file yang di-share
net useConnect/disconnect ke shared resource; tanpa opsi menampilkan koneksi aktif
net users
NET ACCOUNTS
net group
net share
net use
7 Examining Compressed Files

Attacker sering menyisipkan konten berbahaya ke compressed file lalu mengirimkannya via email. Periksa format seperti .zip, .rar, .gz. Tool: MailXaminer, zipdump, Cellebrite Physical Analyzer.

Analisis ZIP dengan MailXaminer

MailXaminer (mailxaminer.com) otomatis mengekstrak isi & format file dalam zip yang dicurigai.

Downloads MailXaminer
  • Tab Image di halaman Add Evidence → pilih source .zip yang di anggap malicious
  • Opsi Search → lihat isi yang telah diekstrak (otomatis) dalam format aslinya.
  • Periksa hidden content (file, chat, SMS, calendar) beserta propertinya.
  • Filter media (image, text, PDF) via checkbox berdasarkan sensitivity level.
  • Ikon settings di tab Search → advanced search: General, Proximity, Fuzzy.
Prinsip utama: jaga chain of custody, kerjakan pada image (bukan disk asli), verifikasi hash, dan dokumentasikan setiap langkah agar evidence tetap admissible.
tags