Prerequisites
- Target system, dependencies and environment configured.
Usage
Purpose
Windows records an enormous amount about what happened on it — often without the user or attacker realising. Program execution, USB devices, file access, logons, and persistence all leave artefacts across the registry, event logs, and specialised files. This skill covers the Windows artefacts that answer the core investigative questions — what ran, when, and who did it — and where each one lives.
When to use it
Investigating a compromised or suspect Windows host (the majority of enterprise endpoints), after acquiring the disk image (and ideally memory). It's the bread-and-butter of host forensics, and knowing which artefact answers which question is what makes an investigation efficient.
The artefacts by question
"What programs ran?"
- Prefetch (
C:\Windows\Prefetch) — records executed programs, run count, and last-run times.
- Amcache / Shimcache (registry) — evidence of program execution and presence, even for deleted binaries.
- UserAssist (registry) — GUI programs the user launched.
"What happened and when?" (Event logs)
- Security log — logons (4624/4625), privilege use, account changes; the core of who-did-what.
- System / Application logs — service installs, crashes, errors.
- PowerShell / Sysmon logs — script execution and detailed process/network telemetry if enabled.
"Who did it / what did they touch?"
- Registry — user activity (
NTUSER.DAT), recently-opened files, typed paths, USB device history, network connections, persistence (Run keys).
- LNK files & Jump Lists — recently accessed files and their original paths.
- $MFT / USN Journal (filesystem) — file creation/modification/deletion timeline.
Procedure
- Frame the investigative question — what ran, when did X happen, who logged in, what was accessed, how did they persist. The question tells you which artefacts to pull; going artefact-by-artefact without a question wastes time.
- Parse the key artefacts with proven tools. Eric Zimmerman's tools are the standard for parsing Windows artefacts (registry, prefetch, MFT, event logs, LNK) into readable output:
# Eric Zimmerman tools: PECmd (prefetch), Registry Explorer/RECmd (registry),
# EvtxECmd (event logs), MFTECmd ($MFT), LECmd (LNK), JLECmd (jump lists)
- Establish execution (prefetch + amcache + userassist), timeline (event logs + MFT), user activity (NTUSER registry, LNK/jump lists), and persistence (Run keys, services, scheduled tasks) — the four pillars most cases need.
- Correlate across artefacts. No single artefact tells the whole story; a program in prefetch + a logon in the security log + a Run key in the registry together reconstruct "attacker logged in, ran X, persisted via Y". Correlation is where the investigation happens.
- Feed into a timeline (the timeline-analysis skill) so events across artefacts line up chronologically.
- Handle as evidence — parse copies from the image, maintain chain of custody, and document what each artefact showed.
Cheatsheet
question -> artefact (know which answers which)
WHAT RAN
Prefetch (C:\Windows\Prefetch) executed programs, run count, last-run [PECmd]
Amcache/Shimcache (registry) execution/presence, even deleted binaries
UserAssist (registry) GUI programs the user launched
WHEN / WHAT HAPPENED
Security.evtx logons 4624/4625, priv use, account changes [EvtxECmd]
System/App.evtx service installs, errors
PowerShell/Sysmon script + process/network telemetry (if enabled)
WHO / WHAT TOUCHED
Registry NTUSER.DAT recent files, typed paths, USB history, Run keys [RECmd]
LNK / Jump Lists recently accessed files + original paths [LECmd/JLECmd]
$MFT / USN Journal file create/modify/delete timeline [MFTECmd]
tools: Eric Zimmerman suite (the standard)
CORRELATE artefacts -> reconstruct the story ; feed a timeline
Reading the artefacts
- A malicious binary in prefetch/amcache = proof it executed (and when/how often), even if the file was later deleted — execution evidence that survives cleanup. High value.
- Logon events (4624/4625) around the incident = who accessed the system and when, including failed attempts (brute force) and lateral movement (network logons from other hosts).
- A Run key, service, or scheduled task pointing at a suspicious binary = the persistence mechanism; exactly what IR needs to eradicate.
- LNK/jump list entries = files the user (or attacker) opened and their original locations, including from now-removed USB devices or network shares.
- $MFT timestamps that don't line up (a file created after it was "modified", timestamps that look manipulated) = possible timestomping (anti-forensics) — the inconsistency is the tell.
- Correlated artefacts telling one story = the reconstructed sequence (logon → execution → persistence → access); no single artefact does this alone.
Pitfalls
- Hunting artefacts without a question. There are dozens; going through them aimlessly is slow. Let the investigative question (what ran / when / who / persistence) drive which you pull.
- Relying on one artefact. Prefetch shows execution but not who or why; correlate with logs and registry to get the full picture.
- Assuming logs are complete. PowerShell/Sysmon detail exists only if it was enabled; an attacker may also have cleared logs (a cleared security log — event 1102 — is itself a finding).
- Trusting timestamps blindly. Timestomping alters file times; cross-check
$STANDARD_INFORMATION vs $FILE_NAME timestamps and other artefacts.
- Parsing the live/original system. Work from the forensic image; touching the original changes artefacts (access times, etc.).
References
- Eric Zimmerman's tools (ericzimmerman.github.io) and SANS Windows Forensic Analysis (FOR500)
- SANS Windows forensics artefact posters
- The disk-imaging-and-hashing, memory-forensics, timeline-analysis, and chain-of-custody skills
- MITRE ATT&CK (persistence and execution artefacts)
Inputs
- Relevant source code, logs, network traces, or system specifications.
Outputs
- Analysis findings, security audit report, or generated code artifacts.
1---2name: windows-artefacts3description: Use when investigating a Windows system — the registry, event logs, prefetch, and other artefacts that reveal what ran, when, and who did it.4---5678## Prerequisites9- Target system, dependencies and environment configured.1011## Usage12### Purpose1314Windows records an enormous amount about what happened on it — often without the user or attacker realising. Program execution, USB devices, file access, logons, and persistence all leave artefacts across the registry, event logs, and specialised files. This skill covers the Windows artefacts that answer the core investigative questions — what ran, when, and who did it — and where each one lives.1516### When to use it1718Investigating a compromised or suspect Windows host (the majority of enterprise endpoints), after acquiring the disk image (and ideally memory). It's the bread-and-butter of host forensics, and knowing which artefact answers which question is what makes an investigation efficient.1920### The artefacts by question2122**"What programs ran?"**23- **Prefetch** (`C:\Windows\Prefetch`) — records executed programs, run count, and last-run times.24- **Amcache / Shimcache** (registry) — evidence of program execution and presence, even for deleted binaries.25- **UserAssist** (registry) — GUI programs the user launched.2627**"What happened and when?" (Event logs)**28- **Security log** — logons (4624/4625), privilege use, account changes; the core of who-did-what.29- **System / Application logs** — service installs, crashes, errors.30- **PowerShell / Sysmon logs** — script execution and detailed process/network telemetry if enabled.3132**"Who did it / what did they touch?"**33- **Registry** — user activity (`NTUSER.DAT`), recently-opened files, typed paths, USB device history, network connections, persistence (Run keys).34- **LNK files & Jump Lists** — recently accessed files and their original paths.35- **$MFT / USN Journal** (filesystem) — file creation/modification/deletion timeline.3637### Procedure38391. **Frame the investigative question** — what ran, when did X happen, who logged in, what was accessed, how did they persist. The question tells you which artefacts to pull; going artefact-by-artefact without a question wastes time.402. **Parse the key artefacts with proven tools.** Eric Zimmerman's tools are the standard for parsing Windows artefacts (registry, prefetch, MFT, event logs, LNK) into readable output:41 ```42 # Eric Zimmerman tools: PECmd (prefetch), Registry Explorer/RECmd (registry),43 # EvtxECmd (event logs), MFTECmd ($MFT), LECmd (LNK), JLECmd (jump lists)44 ```453. **Establish execution** (prefetch + amcache + userassist), **timeline** (event logs + MFT), **user activity** (NTUSER registry, LNK/jump lists), and **persistence** (Run keys, services, scheduled tasks) — the four pillars most cases need.464. **Correlate across artefacts.** No single artefact tells the whole story; a program in prefetch + a logon in the security log + a Run key in the registry together reconstruct "attacker logged in, ran X, persisted via Y". Correlation is where the investigation happens.475. **Feed into a timeline** (the timeline-analysis skill) so events across artefacts line up chronologically.486. **Handle as evidence** — parse copies from the image, maintain chain of custody, and document what each artefact showed.4950### Cheatsheet5152```53question -> artefact (know which answers which)5455WHAT RAN56 Prefetch (C:\Windows\Prefetch) executed programs, run count, last-run [PECmd]57 Amcache/Shimcache (registry) execution/presence, even deleted binaries58 UserAssist (registry) GUI programs the user launched5960WHEN / WHAT HAPPENED61 Security.evtx logons 4624/4625, priv use, account changes [EvtxECmd]62 System/App.evtx service installs, errors63 PowerShell/Sysmon script + process/network telemetry (if enabled)6465WHO / WHAT TOUCHED66 Registry NTUSER.DAT recent files, typed paths, USB history, Run keys [RECmd]67 LNK / Jump Lists recently accessed files + original paths [LECmd/JLECmd]68 $MFT / USN Journal file create/modify/delete timeline [MFTECmd]6970tools: Eric Zimmerman suite (the standard)71CORRELATE artefacts -> reconstruct the story ; feed a timeline72```7374### Reading the artefacts7576- **A malicious binary in prefetch/amcache** = proof it executed (and when/how often), even if the file was later deleted — execution evidence that survives cleanup. High value.77- **Logon events (4624/4625) around the incident** = who accessed the system and when, including failed attempts (brute force) and lateral movement (network logons from other hosts).78- **A Run key, service, or scheduled task pointing at a suspicious binary** = the persistence mechanism; exactly what IR needs to eradicate.79- **LNK/jump list entries** = files the user (or attacker) opened and their original locations, including from now-removed USB devices or network shares.80- **$MFT timestamps that don't line up** (a file created after it was "modified", timestamps that look manipulated) = possible timestomping (anti-forensics) — the inconsistency is the tell.81- **Correlated artefacts telling one story** = the reconstructed sequence (logon → execution → persistence → access); no single artefact does this alone.8283### Pitfalls8485- **Hunting artefacts without a question.** There are dozens; going through them aimlessly is slow. Let the investigative question (what ran / when / who / persistence) drive which you pull.86- **Relying on one artefact.** Prefetch shows execution but not who or why; correlate with logs and registry to get the full picture.87- **Assuming logs are complete.** PowerShell/Sysmon detail exists only if it was enabled; an attacker may also have cleared logs (a cleared security log — event 1102 — is itself a finding).88- **Trusting timestamps blindly.** Timestomping alters file times; cross-check `$STANDARD_INFORMATION` vs `$FILE_NAME` timestamps and other artefacts.89- **Parsing the live/original system.** Work from the forensic image; touching the original changes artefacts (access times, etc.).9091### References9293- Eric Zimmerman's tools (ericzimmerman.github.io) and SANS Windows Forensic Analysis (FOR500)94- SANS Windows forensics artefact posters95- The disk-imaging-and-hashing, memory-forensics, timeline-analysis, and chain-of-custody skills96- MITRE ATT&CK (persistence and execution artefacts)9798## Inputs99- Relevant source code, logs, network traces, or system specifications.100101## Outputs102- Analysis findings, security audit report, or generated code artifacts.