Cheat sheet

Windows artefacts

The traces a program or a user leaves on a Windows host, and where to find them. The approach is in Forensics (DFIR).

CDSAForensics

Evidence of execution

ArtefactWhat it showsLocation
PrefetchProgram run, run count and last run timesC:\Windows\Prefetch\*.pf
AmcachePrograms present or run, with their SHA-1C:\Windows\AppCompat\Programs\Amcache.hve
ShimcachePrograms seen by the system (presence, not necessarily execution)SYSTEM hive (AppCompatCache)
UserAssistPrograms started from the graphical interface, per userNTUSER.DAT
BAMLast run of a program, per userSYSTEM hive (Services\bam)
SRUMResources and network volume used per applicationC:\Windows\System32\sru\SRUDB.dat
Presence or execution?Shimcache and Amcache mostly prove that a file existed; Prefetch, UserAssist and BAM prove that it was run. Always cross-check several sources.

User activity

ArtefactWhat it showsLocation
ShellBagsFolders opened in Explorer, even if deleted sinceUsrClass.dat, NTUSER.DAT
LNKFiles opened, through automatically created shortcuts%APPDATA%\Microsoft\Windows\Recent
Jump ListsRecent files per application…\Recent\AutomaticDestinations
RecentDocsRecently opened documents, per extensionNTUSER.DAT
TypedPathsPaths typed in the Explorer address barNTUSER.DAT
Recycle Bin ($I, $R)Deleted files: original path and deletion dateC:\$Recycle.Bin

Registry hives

HiveContentsLocation
SAMLocal accounts and their hashesC:\Windows\System32\config\SAM
SYSTEMConfiguration, services, Shimcache, BAMC:\Windows\System32\config\SYSTEM
SOFTWAREInstalled programs, machine Run keysC:\Windows\System32\config\SOFTWARE
SECURITYLSA secrets and security policyC:\Windows\System32\config\SECURITY
NTUSER.DATUser profile: Run keys, UserAssist, RecentDocsC:\Users\<user>\NTUSER.DAT
UsrClass.datUser ShellBags…\AppData\Local\Microsoft\Windows\UsrClass.dat

Eric Zimmerman's tools

ToolArtefact parsed
PECmdPrefetch
AmcacheParserAmcache
AppCompatCacheParserShimcache
SBECmdShellBags
LECmdLNK files
JLECmdJump Lists
MFTECmd$MFT and $UsnJrnl
RECmdRegistry (whole hives)
EvtxECmd.evtx event logs
# Example: all the Prefetch of a mounted image, as CSV for Timeline Explorer
PECmd.exe -d E:\Windows\Prefetch --csv C:\analysis --csvf prefetch.csv
# Quick collection of a host's artefacts: KAPE (!SANS_Triage targets) or Velociraptor